Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1770239rwl; Sun, 26 Mar 2023 08:47:46 -0700 (PDT) X-Google-Smtp-Source: AK7set8nbdpSYKwIUotRpCw9vSHBaEHho43Wg/wizvzkoKbuNDJHhcVUw7PK5RYALqU3+8FucpNY X-Received: by 2002:a05:6a20:4ca7:b0:d4:fcb2:7966 with SMTP id fq39-20020a056a204ca700b000d4fcb27966mr8354606pzb.11.1679845665911; Sun, 26 Mar 2023 08:47:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679845665; cv=none; d=google.com; s=arc-20160816; b=c6nUu7Zo5AATCKhFFqdaZ0/8ITtohjTmaZPJP1eh9xyQ2/4Orn1DnElInhIy8ENqKm mEf6Hh+MFgKJWSvaQhHVs2UpBwKgTpaj/CLOaMPIN3VMhz896rIhvdOEyJBF7A2WGNJG +5lEg7bGuMm/mC/Ll3YzxvfW8hYtIwdGA540xxkvE9PDRYHqflThVF5AF7NlYaki1lCt wbqNjoa0IIdcjnC+UXqYZ/AfGutJYN2ppGOx+RLGJe1iNg0ff/JlwuVYR0p6dw683V56 RGydt/MySLAxBOmZWfUyQVPj5nrl1P7ryjmBlJjsEIr7f9G+U9JCBknpfIW8TeZRDWID SH/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=IYlYhzGIdxyFdbkC1OSHDj6e2qyaUSiExYCtFQx/ZNA=; b=Xl0AEuJGGQEBkMXZigVaV2DiEfDKhsQTBKqpdVywIEZ/1qxpZKmFwzkU0felj04FOK UeLZiD0yX2sKXI7kAblwlRUFAj+/JnlayJ4Aq3A+tIKo4tR131NBV1D+r0B0jDpnl9J9 qO4cuWIEFEdPplnD0YuX2JeNVZDhMS7mgb9DLmJ1t6XRgDg+q017gNiD+/rubSHTzMxr gtWIAutTlIZaxAdvab019XRGUDv1R91TMjLxLgS3+Wjc7jSwmS/mgnCoZtPk464RT+pr 5d+JXqZFLGQmbzHH4IqvQcU26NigmsZLy7il4hE+7Q9YVCGu1p/kl2Lqu33CTHUVwyhZ SnYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m1-20020a63fd41000000b0050c0549c4dbsi26190521pgj.702.2023.03.26.08.47.34; Sun, 26 Mar 2023 08:47:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232498AbjCZP2w (ORCPT + 99 others); Sun, 26 Mar 2023 11:28:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229621AbjCZP2v (ORCPT ); Sun, 26 Mar 2023 11:28:51 -0400 Received: from 1wt.eu (wtarreau.pck.nerim.net [62.212.114.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1D99E4216 for ; Sun, 26 Mar 2023 08:28:49 -0700 (PDT) Received: (from willy@localhost) by mail.home.local (8.17.1/8.17.1/Submit) id 32QFSiRT010568; Sun, 26 Mar 2023 17:28:44 +0200 Date: Sun, 26 Mar 2023 17:28:44 +0200 From: Willy Tarreau To: "Paul E. McKenney" Cc: linux@weissschuh.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/8] tools/nolibc: add support for stack protector Message-ID: References: <20230325154516.7995-1-w@1wt.eu> <0d9bbc94-7ea2-4bc5-8523-29b100c0f1a1@paulmck-laptop> <35a26245-0171-44b0-8072-325576768f91@paulmck-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <35a26245-0171-44b0-8072-325576768f91@paulmck-laptop> X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 26, 2023 at 08:26:32AM -0700, Paul E. McKenney wrote: > On Sun, Mar 26, 2023 at 05:17:33PM +0200, Willy Tarreau wrote: > > On Sun, Mar 26, 2023 at 08:13:48AM -0700, Paul E. McKenney wrote: > > > On Sat, Mar 25, 2023 at 09:36:28PM -0700, Paul E. McKenney wrote: > > > > On Sat, Mar 25, 2023 at 04:45:08PM +0100, Willy Tarreau wrote: > > > > > Hello Paul, > > > > > > > > > > This is essentially Thomas' work so instead of paraphrasing his work, > > > > > I'm pasting his description below. I've tested his changes on all > > > > > supported archs, applied a tiny modification with his permission > > > > > to continue to support passing CFLAGS, and for me this is all fine. > > > > > In a short summary this adds support for stack protector to i386 and > > > > > x86_64 in nolibc, and the accompanying test to the selftest program. > > > > > > > > > > A new test category was added, "protection", which currently has a > > > > > single test. Archs that support it will report "OK" there and those > > > > > that do not will report "SKIPPED", as is already the case for tests > > > > > that cannot be run. > > > > > > > > > > This was applied on top of your dev.2023.03.20a branch. I'm reasonably > > > > > confident with the nature of the changes, so if your queue for 6.4 is > > > > > not closed yet, it can be a good target, otherwise 6.5 will be fine as > > > > > well. > > > > > > > > I have applied and pushed it out, thank you both! > > > > > > > > We are a little late in the process, but if testing goes well, I can't > > > > see why this cannot make the v6.4 merge window. > > > > > > And "make run-user" says "124 test(s) passed", which looks promising. > > > > Indeed! > > > > > But "make run" says "0 test(s) passed". > > > > > > (They initially both said "0 test(s) passed", but that was because I > > > forgot to build qemu-x86_64 after an upgrade.) > > > > > > Please see below for the full output of "make run". Am I missing > > > some other package? > > > > Hmmm I think that the output of run.out will be needed here. We'll > > need to understand whether it fails to boot the kernel or to start > > the executable. > > Ah, I knew I was forgetting something! > > I am retrying the test after rebasing Thomas's latest series directly > on top of the rest of the nolibc patches. > > In the meantime, the kernel died as shown below. Ah "great", that's a good reason. I predicted that one day this test would detect a kernel bug, we're here now ;-) Willy