This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Overflow?
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: Li Guanglei <guanglei at cn dot ibm dot com>
- Cc: Eugene Teo <eteo at redhat dot com>, systemtap at sourceware dot org
- Date: 20 Nov 2006 13:06:46 -0500
- Subject: Re: Overflow?
- References: <455EB8E8.5000904@redhat.com> <45615DBD.8010804@cn.ibm.com> <45615E1E.3050005@redhat.com> <45617E9E.9000106@cn.ibm.com>
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