New issue
Advanced search Search tips

Issue 895481 link

Starred by 1 user

Issue metadata

Status: Verified
Owner: ----
Closed: Oct 18
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 834385



Sign in to add a comment

platform_AddPrinter.generic failed with glibc 2.27

Project Member Reported by yunlian@chromium.org, Oct 15

Issue description

cupsd 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

 
Cc: michael....@intel.corp-partner.google.com
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);

Project Member

Comment 3 by bugdroid1@chromium.org, 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

Status: Verified (was: Untriaged)

Sign in to add a comment