Tuesday, January 21, 2014

strcpy buffer overflow

pstrcpy solves the problem. Maybe strcpy is just too dangerous to use.

Wednesday, January 15, 2014

Disk partitioning in Linux

OK, I'm too late to start doing this.

A disk provides a sector interface. A partition is an abstraction of a disk, simply to restrict accesses to a subset of its sectors. A file system builds on top of a partition, and provides block accesses.

Used gdisk. It reported "Secondary header is placed too early on the disk!". When that problem is automatically fixed.

Don't waste time fixing plus sign in kernel extra version.

Thursday, September 5, 2013

What is a system

When people say "systems research", "I'm a systems guy", and so forth, what do they mean? What other research and other guys are out there? Networks, for example.

What an OS does is to present abstractions to the user. Underneath, it translates user-issued logical operations to physical ones.

Expanding from this thought, can a system be defined as a

Wednesday, February 22, 2012

CPAN, Perl modules, and yum

Many tools out there to learn:

perldoc -q 'How do I install a module from CPAN'

Do a 'yum update' after installing a "repository package" such as CPAN

Wednesday, January 19, 2011

Understanding Linux top output:

wa = wiating for IO
us = userspace
sy = system/kernel
ni = nice processs
id = idle
hi = hardware interrupts
si = software interrupts

Wednesday, September 15, 2010

Overlay network vs. Virtual machine

Both are another layer of abstraction above the native resource. Anyway we can leverage existing studies in VM to overlay network?

Wednesday, July 14, 2010

Installing TraceFS

  1. Need to copy over fs.h and syscalls.h
  2. System crashed when doing "mount -t tracefs"