-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
integer overflow in ipcs.c, do_shm() #51
Comments
karelzak
added a commit
that referenced
this issue
Mar 11, 2014
Addresses: #51 Signed-off-by: Karel Zak <kzak@redhat.com>
Thanks, but this fix still not works on x86_64 where size_t and unit64_t are the same. $ cat /proc/sys/kernel/shmall
1152921504606846720 which is 4611686018427386880 KB and greater than 2^64 bytes $ ./ipcs -ml | grep "max total"
max total shared memory (kbytes) = 18014398509480960 |
rudimeier
added a commit
to rudimeier/util-linux
that referenced
this issue
May 13, 2014
See github issue util-linux#51, comment 2 util-linux#51 Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
rudimeier
added a commit
to rudimeier/util-linux
that referenced
this issue
May 13, 2014
See github issue util-linux#51, comment 2 util-linux#51 Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
rudimeier
added a commit
to rudimeier/util-linux
that referenced
this issue
May 13, 2014
See github issue util-linux#51, comment 2 util-linux#51 Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
rudimeier
added a commit
to rudimeier/util-linux
that referenced
this issue
May 13, 2014
See github issue util-linux#51, comment 2 util-linux#51 Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
I think I have hit the same thing on hppa with 2.36.2. The ipcs/limits2 test fails for me.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/proc/sys/kernel/shmall gives a count of pages as size_t. This overflows when multiplying by pagesize:
That's why ./tests/ts/ipcs/limits2 fails on systems where shmall is large enough.
The problem got a bit worse since 56692a6.
Don't know how this should be fixed. I guess the only real fix would be to use large integer arithmetics.
The text was updated successfully, but these errors were encountered: