This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Overflow?


Li Guanglei <guanglei@cn.ibm.com> writes:

> asmlinkage long sys_open(const char __user *filename, int flags, int mode)
> [...]
> Nov 20 18:00:01 localhost kernel: lgl, sys_open:
> name:/lib/libselinux.so.1, flags:0, mode:-1074164556

The mode argument is optional, and is only set when flags includes
O_CREAT.

> [...]  anyone has idea about why mode will be a negative value?
> [...]

(By the way, those large negative numbers you were seeing are in the
neighbourhood of the thread stack.)

- FChE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]