From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by sourceware.org (Postfix) with ESMTPS id A35573858D35 for ; Fri, 3 Dec 2021 14:55:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A35573858D35 Received: by mail-yb1-xb2d.google.com with SMTP id d10so10230210ybn.0 for ; Fri, 03 Dec 2021 06:55:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XjUWeSQmS3zKYNWet1Y/pxqqdmb3mSFuPRfN6HjkzEM=; b=YRAfhwcnnBcQwU1w5BQsumTKV63Oiz+ullCJNbA5bna1+0s3bP53p+bMZGftQcjNVi 71DlwNpFC5QnELOaDfkDtuT6SfyNKp/HKzQnBrIR442HsVOX85YKK3a0pt/MkHWeHwFa eZQt6XtD6Qe+yglq4Q/DLqqr/gTEadnm8JwbJmAM518MwL48HwEMEvgNMD7Gt7iLwRGs VfkrrvTpwKRSOVZYDM90EC2uMGtrXqiPrDdOnGs99hqu2psy8lJH5Xp/VW+hznEtPzKj WyhfQ6YK0p8aNRW5E9HidNL0lwQtnSsBwld51zirEa1yP0sLQHN9go3XZbNShCkcFcQ9 ayBw== X-Gm-Message-State: AOAM530m/K1oybn8LxlgRPVcO0v6lKufU6yCebtutHwxbwHh5hwCZ60R hWPkawKgdM9/5z7lRRAFqE+awZbWrJXHqD4oh7EVAO6QxXKWcw== X-Google-Smtp-Source: ABdhPJyQS7EyYy/gw6xz+WnTJSp9sG0qi0csAcJtn9tooma8gxWzmO01dSjYEGwVvaxj361fLfK8ex2iymnPCVI32m4= X-Received: by 2002:a25:25d2:: with SMTP id l201mr23296616ybl.136.1638543323177; Fri, 03 Dec 2021 06:55:23 -0800 (PST) MIME-Version: 1.0 References: <20211203143805.04797c96@anfink-laptop> In-Reply-To: <20211203143805.04797c96@anfink-laptop> From: Adhemerval Zanella Date: Fri, 3 Dec 2021 11:55:12 -0300 Message-ID: Subject: Re: segmentation fault with glibc-2.34 To: Andreas Fink Cc: libc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Dec 2021 14:55:25 -0000 On Fri, Dec 3, 2021 at 10:38 AM Andreas Fink via Libc-help wrote: > > Hello, > I have observed a crash in firefox with glibc-2.34 and have found a > small reproducer. > Is the sigsys signal handler valid? If yes, then there is a bug in > glibc-2.34. > If it is invalid to set the result in the context, I think the firefox > sandbox is doing dodgy things. > > gcc test.c -lseccomp > strace ./a.out The seccomp filter *explicitly* blocks newfstatat, which might be used by getpwuid. > > This test reproducer does not segfault with 2.33 (it gives a > "Permission denied") > > Cheers > Andreas