platform_AddPrinter.generic failed with glibc 2.27 |
||
Issue descriptioncupsd crashes with glibc 2.27 when running platform_AddPrinter.generic From the core file, I got the backtrace, is there something to do with the system call getrlimit64? (gdb) bt #0 __GI_abort () at abort.c:107 #1 0x00007064ce3a93df in do_fatal_log (priority=<optimized out>, format=0x7064ce3ab1e9 "libminijail[%d]: blocked syscall: %s") at ../minijail-8/util.c:126 #2 0x00007064ce3a8b7c in log_sigsys_handler (sig=<optimized out>, info=<optimized out>, void_context=<optimized out>) at ../minijail-8/signal_handler.c:48 #3 <signal handler called> #4 0x00007064cdcaeaa0 in __GI___getrlimit64 (resource=RLIMIT_NOFILE, rlimits=0x7fffff31fa48) at ../sysdeps/unix/sysv/linux/getrlimit64.c:38 #5 0x000061e2e0456ccc in main (argc=<optimized out>, argv=0x7fffff3203c8) at main.c:518
,
Oct 15
also found a SIGSYS on imageload when running this test with glibc 2.27 Core was generated by `/usr/sbin/imageloader'. Program terminated with signal SIGSYS, Bad system call. #0 0x000071b9a68f4dfa in getentropy (buffer=0x7ffc50893060, length=<optimized out>) at ../sysdeps/unix/sysv/linux/getentropy.c:45 45 ../sysdeps/unix/sysv/linux/getentropy.c: No such file or directory. This system call is ssize_t bytes = INLINE_SYSCALL_CALL (getrandom, buffer, end - buffer, 0);
,
Oct 17
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/f3963cdbd54d37d43e4a5bdc3ff6fe442c9c69b8 commit f3963cdbd54d37d43e4a5bdc3ff6fe442c9c69b8 Author: Yunlian Jiang <yunlian@google.com> Date: Wed Oct 17 12:55:06 2018 cups: allow prlimit64 for cupsd, getpid for lpadmin This allows prlimit64 system call for cupsd on amd64 as it is allowed on other architectures already. This also allows system call getpid for lpadmin. BUG= chromium:895481 TEST=test_that platform_AddPrinter.generic with glibc 2.27 Change-Id: I32aa98748e5fbc7f5b9ce9c3f0b04a5479b29154 Reviewed-on: https://chromium-review.googlesource.com/1283631 Commit-Ready: Yunlian Jiang <yunlian@chromium.org> Tested-by: Yunlian Jiang <yunlian@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org> [modify] https://crrev.com/f3963cdbd54d37d43e4a5bdc3ff6fe442c9c69b8/net-print/cups/files/lpadmin-seccomp-arm64.policy [modify] https://crrev.com/f3963cdbd54d37d43e4a5bdc3ff6fe442c9c69b8/net-print/cups/files/lpadmin-seccomp-x86.policy [modify] https://crrev.com/f3963cdbd54d37d43e4a5bdc3ff6fe442c9c69b8/net-print/cups/files/lpadmin-seccomp-arm.policy [modify] https://crrev.com/f3963cdbd54d37d43e4a5bdc3ff6fe442c9c69b8/net-print/cups/files/lpadmin-seccomp-amd64.policy [rename] https://crrev.com/f3963cdbd54d37d43e4a5bdc3ff6fe442c9c69b8/net-print/cups/cups-2.1.4-r17.ebuild [modify] https://crrev.com/f3963cdbd54d37d43e4a5bdc3ff6fe442c9c69b8/net-print/cups/files/cupsd-seccomp-amd64.policy
,
Oct 18
|
||
►
Sign in to add a comment |
||
Comment 1 by yunlian@chromium.org
, Oct 15