From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B56DC385AE59; Thu, 9 Jun 2022 05:35:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B56DC385AE59 From: "sam at gentoo dot org" To: glibc-bugs@sourceware.org Subject: [Bug nss/28752] Segfault in getpwuid when stat fails Date: Thu, 09 Jun 2022 05:35:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nss X-Bugzilla-Version: 2.34 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sam at gentoo dot org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2022 05:35:22 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28752 --- Comment #4 from Sam James --- (In reply to Sam James from comment #3) > Fixed in master with 3fdf0a205b622e40fa7e3c4ed1e4ed4d5c6c5380 and > ace9e3edbca62d978b1e8f392d8a5d78500272d9. > Sorry, thought it'd linkify: commit ace9e3edbca62d978b1e8f392d8a5d78500272d9 (origin/master, origin/HEAD, master) Author: Sam James Date: Sun Jun 5 04:57:10 2022 +0100 nss: handle stat failure in check_reload_and_get (BZ #28752) Skip the chroot test if the database isn't loaded correctly (because the chroot test uses some existing DB state). The __stat64_time64 -> fstatat call can fail if running under an (aggressive) seccomp filter, like Firefox seems to use. This manifested in a crash when using glib built with FAM support with such a Firefox build. Suggested-by: DJ Delorie Signed-off-by: Sam James Reviewed-by: DJ Delorie commit 3fdf0a205b622e40fa7e3c4ed1e4ed4d5c6c5380 Author: Sam James Date: Sun Jun 5 04:57:09 2022 +0100 nss: add assert to DB_LOOKUP_FCT (BZ #28752) It's interesting if we have a null action list, so an assert is worthwhile. Suggested-by: DJ Delorie Signed-off-by: Sam James Reviewed-by: DJ Delorie --=20 You are receiving this mail because: You are on the CC list for the bug.=