public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/17380] New: setuid()/setxid() testsuite and runtime failure
@ 2014-09-12 10:22 jpsinthemix at verizon dot net
  2014-09-12 10:41 ` [Bug nptl/17380] " siddhesh at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jpsinthemix at verizon dot net @ 2014-09-12 10:22 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug nptl/17380] setuid()/setxid() testsuite and runtime failure
  2014-09-12 10:22 [Bug nptl/17380] New: setuid()/setxid() testsuite and runtime failure jpsinthemix at verizon dot net
@ 2014-09-12 10:41 ` siddhesh at redhat dot com
  2014-09-13  0:25 ` jpsinthemix at verizon dot net
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: siddhesh at redhat dot com @ 2014-09-12 10:41 UTC (permalink / raw)
  To: glibc-bugs

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

Siddhesh Poyarekar <siddhesh at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |siddhesh at redhat dot com

--- Comment #1 from Siddhesh Poyarekar <siddhesh at redhat dot com> ---
This sounds like the following fedora bug report:

https://bugzilla.redhat.com/show_bug.cgi?id=1120473

It's a gcc bug that you need to fix and then rebuild glibc with the fixed gcc.

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug nptl/17380] setuid()/setxid() testsuite and runtime failure
  2014-09-12 10:22 [Bug nptl/17380] New: setuid()/setxid() testsuite and runtime failure jpsinthemix at verizon dot net
  2014-09-12 10:41 ` [Bug nptl/17380] " siddhesh at redhat dot com
@ 2014-09-13  0:25 ` jpsinthemix at verizon dot net
  2014-09-13  0:28 ` jpsinthemix at verizon dot net
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jpsinthemix at verizon dot net @ 2014-09-13  0:25 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #2 from John Stanley <jpsinthemix at verizon dot net> ---
(In reply to Siddhesh Poyarekar from comment #1)
> This sounds like the following fedora bug report:
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1120473
> 
> It's a gcc bug that you need to fix and then rebuild glibc with the fixed
> gcc.

Thanks much. I thought I has that patch applied, but didn't; my mistake.
Thanks again

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug nptl/17380] setuid()/setxid() testsuite and runtime failure
  2014-09-12 10:22 [Bug nptl/17380] New: setuid()/setxid() testsuite and runtime failure jpsinthemix at verizon dot net
  2014-09-12 10:41 ` [Bug nptl/17380] " siddhesh at redhat dot com
  2014-09-13  0:25 ` jpsinthemix at verizon dot net
@ 2014-09-13  0:28 ` jpsinthemix at verizon dot net
  2014-09-13  7:44 ` schwab@linux-m68k.org
  2014-09-17  7:21 ` schwab@linux-m68k.org
  4 siblings, 0 replies; 6+ messages in thread
From: jpsinthemix at verizon dot net @ 2014-09-13  0:28 UTC (permalink / raw)
  To: glibc-bugs

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

John Stanley <jpsinthemix at verizon dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from John Stanley <jpsinthemix at verizon dot net> ---
Closing, as fixed..

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug nptl/17380] setuid()/setxid() testsuite and runtime failure
  2014-09-12 10:22 [Bug nptl/17380] New: setuid()/setxid() testsuite and runtime failure jpsinthemix at verizon dot net
                   ` (2 preceding siblings ...)
  2014-09-13  0:28 ` jpsinthemix at verizon dot net
@ 2014-09-13  7:44 ` schwab@linux-m68k.org
  2014-09-17  7:21 ` schwab@linux-m68k.org
  4 siblings, 0 replies; 6+ messages in thread
From: schwab@linux-m68k.org @ 2014-09-13  7:44 UTC (permalink / raw)
  To: glibc-bugs

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

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |MOVED

--- Comment #4 from Andreas Schwab <schwab@linux-m68k.org> ---
Not a glibc bug.

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug nptl/17380] setuid()/setxid() testsuite and runtime failure
  2014-09-12 10:22 [Bug nptl/17380] New: setuid()/setxid() testsuite and runtime failure jpsinthemix at verizon dot net
                   ` (3 preceding siblings ...)
  2014-09-13  7:44 ` schwab@linux-m68k.org
@ 2014-09-17  7:21 ` schwab@linux-m68k.org
  4 siblings, 0 replies; 6+ messages in thread
From: schwab@linux-m68k.org @ 2014-09-17  7:21 UTC (permalink / raw)
  To: glibc-bugs

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

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mhw at netris dot org

--- Comment #5 from Andreas Schwab <schwab@linux-m68k.org> ---
*** Bug 17398 has been marked as a duplicate of this bug. ***

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-09-17  7:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-12 10:22 [Bug nptl/17380] New: setuid()/setxid() testsuite and runtime failure jpsinthemix at verizon dot net
2014-09-12 10:41 ` [Bug nptl/17380] " siddhesh at redhat dot com
2014-09-13  0:25 ` jpsinthemix at verizon dot net
2014-09-13  0:28 ` jpsinthemix at verizon dot net
2014-09-13  7:44 ` schwab@linux-m68k.org
2014-09-17  7:21 ` schwab@linux-m68k.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).