[PATCH] change compat shmget size arg to signed

Stephen Rothwell sfr at canb.auug.org.au
Fri Feb 24 11:12:42 EST 2006


On Fri, 24 Feb 2006 00:27:17 +0100 Olaf Hering <olh at suse.de> wrote:
>
>  On Fri, Feb 24, Stephen Rothwell wrote:
> 
> > Does the ltp test fail on a standard kernel(where SHMMAX is 0x2000000), or
> > only on a SLES kernel (where SHMMAX is ULONG_MAX)?
> 
> It fails with SLES9 and SLES10. SLES9 has 0x2000000 as default.

So what was shm_ctlmax set to when the test was run.

I am trying to figure out why this test:

if (size < SHMMIN || size > shm_ctlmax)
                return -EINVAL;

Doesn't return -EINVAL for size == 0xffffffff if shm_ctlmax is 0x2000000?

-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20060224/a14ef0ea/attachment.pgp 


More information about the Linuxppc64-dev mailing list