New submission from Radoslaw Madej :
Hi,
Python ctypes module creates a 'rwx' memory mapping (defined in
malloc_closure.c) which causes python to crash when running under grsecurity
enabled kernel and could also have a negative security impact.
Is there any specific need for the
Radoslaw Madej added the comment:
segfault info:
# grep 65725f6b /var/log/grsec.log
#
Jul 27 00:58:53 [kernel] grsec: Segmentation fault occurred at 65725f6b in
/home/root/syschroot/usr/bin/python2.6[python2.6:23877] uid/euid:0/0
gid/egid:0/0, parent /home/root/syschroot/bin/bash[bash:25516
Radoslaw Madej added the comment:
Arfrever, do you mean this patch?
http://bugs.python.org/file13897/issue5504-linux.patch
It does not cleanly apply to Gentoo's 2.6.5-r3 ebuild, neither it does apply to
2.6.5, 2.7 or 3.2.1 releases from the Python website.
Which python release/branch s
Radoslaw Madej added the comment:
Yes, the aforementioned patch does the job when applied manually with some
tweaking and importing ctypes does not result in a MemoryError anymore. Tested
with Python-2.7 and Python-3.1.2.
--
___
Python tracker