]> git.pld-linux.org Git - packages/kernel.git/commit
Don't register empty sysctl dirs in /proc/sys.
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 16 Dec 2003 10:33:48 +0000 (10:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
commita464038f2970591c9f4d25eb55ea0ab7089c7d43
tree9c6def108110aaf503c031884313fff87051b0ea
parent1d9df89ad877701c5f110be21bc42e9fa03874e8
Don't register empty sysctl dirs in /proc/sys.
They would be removed after registering some other sysctl(s) in the
same directory (e.g. rtc in /proc/sys/dev) and unregistering all of
them (then initially empty e.g. /proc/sys/dev disappears).
After disappearing of directory topdir ->de (for "dev") points to
structure which has been freed.
It's harmless in vanilla 2.4, but with grsecurity causes an Oops
on numeric sysctls referring to removed directory (even with all
grsecurity features disabled, only patch applied).

The same issue seems to exist in 2.6, and _probably_ can cause similar
problems in selinux.

Changed files:
    linux-2.4-sysctl-empty.patch -> 1.1
linux-2.4-sysctl-empty.patch [new file with mode: 0644]
This page took 0.06703 seconds and 4 git commands to generate.