[PATCH] Linux: Avoid calling malloc indirectly from __get_nprocs
Richard W.M. Jones
rjones@redhat.com
Wed Jun 30 14:18:06 GMT 2021
For context:
https://bugzilla.redhat.com/show_bug.cgi?id=1975693#c15
qemu uses a seccomp filter to block (probably incorrectly)
sched_getaffinity, so this system call fails. Currently glibc
believes this means that the buffer is too small and doubles it until
it runs out of stack/memory and crashes.
A patch is going to be submitted to qemu to remove the seccomp filter
from this syscall, but it seems like glibc still shouldn't assume
sched_getaffinity is always callable.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
More information about the Libc-alpha
mailing list