This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/17380] New: setuid()/setxid() testsuite and runtime failure


https://sourceware.org/bugzilla/show_bug.cgi?id=17380

            Bug ID: 17380
           Summary: setuid()/setxid() testsuite and runtime failure
           Product: glibc
           Version: 2.20
            Status: NEW
          Severity: critical
          Priority: P2
         Component: nptl
          Assignee: unassigned at sourceware dot org
          Reporter: jpsinthemix at verizon dot net
                CC: drepper.fsp at gmail dot com

Created attachment 7783
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7783&action=edit
Patch to revert the commits associated with bug reports 17135 and 13347

I have built glibc-2.20 on an i686-pc-linux-gnu system and as a result I have
an unbootable system; here is a partial systemd log:

Sep 11 06:05:20 b-movie dbus-daemon[173]: Failed to drop supplementary groups:
Function not implemented
Sep 11 06:05:20 b-movie dbus-daemon[173]: Failed to start message bus: Failed
to set GID to 998: Function not implemented
Sep 11 06:05:45 b-movie systemd[1]: Failed to register match for Disconnected
message: Connection timed out
Sep 11 06:05:45 b-movie systemd-logind[172]: Failed to add match for
NameOwnerChanged: Connection timed out
Sep 11 06:05:45 b-movie systemd-logind[172]: Failed to fully start up daemon:
Connection timed out
Sep 11 06:06:10 b-movie systemd[1]: Failed to register match for Disconnected
message: Connection timed out
Sep 11 06:06:10 b-movie systemd[1]: systemd-logind.service: main process
exited, code=exited, status=1/FAILURE
Sep 11 06:06:10 b-movie systemd[1]: Failed to start Login Service.
Sep 11 06:06:10 b-movie systemd[1]: Unit systemd-logind.service entered failed
state.
Sep 11 06:06:10 b-movie systemd[1]: dbus.service: main process exited,
code=exited, status=1/FAILURE
Sep 11 06:06:10 b-movie systemd[1]: Unit dbus.service entered failed state.
Sep 11 06:06:10 b-movie systemd-networkd[177]: Failed change group ID: Function
not implemented <-----------------XXX
Sep 11 06:06:10 b-movie systemd[1]: systemd-networkd.service: main process
exited, code=exited, status=1/FAILURE
Sep 11 06:06:10 b-movie systemd[1]: Failed to start Network Service.
Sep 11 06:06:10 b-movie systemd[1]: Unit systemd-networkd.service entered
failed state.

The working systemd has: linux-3.16.2, gcc-4.9.1, glibc-2.19.90, binutils-2.24,
dbus-1.8.6, and systemd-216.


I configured glibc-2.20, using

../$SRCTOP/configure \
  --prefix=/$PREFIX \
  --libexecdir=/$PREFIX/lib \
  --enable-obsolete-rpc \
  --disable-profile \
  --enable-add-ons \
  --enable-kernel=2.6.32

and get the following test failures:

FAIL: nptl/tst-cleanupx4
FAIL: nptl/tst-robustpi8
FAIL: nptl/tst-setuid3   <-----XXX
Summary of test results:
      3 FAIL
   1705 PASS
    120 XFAIL
      4 XPASS
Makefile:321: recipe for target 'tests' failed


For nptl/tst-setuid3, I get the result:

  tst-setuid3: setuid (1): Function not implemented

which also appears in the systemd journal (see XXX above).


As a quick test I reverted both of the following commits relevant to
nptl/tst-setuid2/3:

  nptl: Fix abort in case of set*id failure [BZ #17135]
 
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=771eb1415fde935e377111f69364a5d92a29e67d

  Check for syscall error in the SETXID implementation in NPTL (bug 13347)
 
https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=13f7fe35ae2b0ea55dc4b9628763aafdc8bdc30c

and then the system boots and runs fine.

I haven't tried reverting only the latter commit, while keeping the first one.

For reference I've attached the reversion patch that I used.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]