You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
shmget02: reduce the shmmax test value for compat mode
As Arnd Bergmann pointed out that SHMMAX being defined as
(ULONG_MAX - (1UL << 24)), so the kernel would likely use
a large 64-bit value, while the 32-bit user space uses a
much smaller limit.
It finally results in ENOMEM failure:
shmget02.c:95: TFAIL: shmget(1644199826, 4278190080, 1536)
expected EINVAL: ENOMEM (12)
With suggest by Manfred Spraul we could reduce the value
of '/proc/sys/kernel/shmmax' for compat mode and only test
the overflow behavior with default+1.
Reported-by: Linux Kernel Functional Testing <[email protected]>
Signed-off-by: Li Wang <[email protected]>
Cc: Naresh Kamboju <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Manfred Spraul <[email protected]>
Reviewed-by: Martin Doucha <[email protected]>
0 commit comments