[Bug libc/22678] New: prlimit fails for RLIM_INFINITY values on 32-bit machines
aurelien at aurel32 dot net
sourceware-bugzilla@sourceware.org
Fri Jan 5 13:05:00 GMT 2018
https://sourceware.org/bugzilla/show_bug.cgi?id=22678
Bug ID: 22678
Summary: prlimit fails for RLIM_INFINITY values on 32-bit
machines
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: aurelien at aurel32 dot net
CC: drepper.fsp at gmail dot com
Target Milestone: ---
prlimit called without a new value fails on 32-bit machines if any of the soft
or hard limits are infinity. This is because prlimit does not translate
old_rlimit from RLIM64_INFINITY to RLIM_INFINITY, but checks that the value
returned by the prlimit64 syscall fits into a 32-bit value, like it is done for
example in getrlimit. Note that on the other hand new_rlimit is correctly
translated from RLIM_INFINITY to RLIM64_INFINITY before calling the syscall.
Patch will follow on the mailing list.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list