Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp99317pxu; Tue, 6 Oct 2020 01:34:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyehur70JhyGk58gsU1MCMJoLaLg14DE7RvwsYYmZ6HeftUexx47lkEwYrAztpnlrFxBrId X-Received: by 2002:a17:906:9483:: with SMTP id t3mr4157924ejx.390.1601973241153; Tue, 06 Oct 2020 01:34:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601973241; cv=none; d=google.com; s=arc-20160816; b=HO5c5GhvOrzSZDs0z9OR/kD4Wpez24hBpDjsqXqqL4AgYD2zCzksUeSbWKN4mJ4UDi u17DOQP1rn3gcOOybD6W7MDmyMq2JQMWiZAhhEeFoVbNCiEllfLpLEbfypu7ATrdrmu0 90QP9z6E61pDhuFMl/UXpYqc4o1A2EVurvsUw7dY5ueAi3fr71uj/6MCvuVe19n/HOww s14O9OIjuLakGcy5NdZ3Fx5SIRJKb103amsu2Jqt0QNZ4y80nJAMx5ngZ6wDTLYSFmSz 3UXDlb60MYTzMDcHSJ21dOgjrZsb5PgwTfEfI5qN0Bnu2GsfM3hydTxb1iF3eagWp6ur uBnw== 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:dkim-signature; bh=F8+5gkGPVqKgbh4FUVYDJTT7CPoPeJTjUg9zFd6ApBc=; b=YIy7FJaX4Uxk3PrGBSc9Dz/50nE1HN/3eEaYw6Hd7LYgPkGnE7Q3DQ4fhDV5ZEb3Er /1WdV4LsKTvp8eMkOI6xJjK4onPgNcgWUT4H7bFqsQKL+Bbux74BL6qv7b4hxa/kPGvk 8PrGqLeloAsUw1/AjH8wzg6F9fTI0XRaEmudw6l8hQUA+OwinJqo/qFbA1/UcjxYWVWi 9d9qBVRUsZ5rXR8J61wFgvlcm1ckSyqLSQubxmu81aNyP3REdAxmgjUozt5Ct+RU4ZY0 Pyq1jcPplv0E+PtgJejsHFiRutVidWpkpCBfm5+V8DkzpLdajRIq2MRhynCoqrbygVtr rsAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=UBksAM3Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ha1si1475254ejb.406.2020.10.06.01.33.37; Tue, 06 Oct 2020 01:34:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=UBksAM3Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725947AbgJFIcb (ORCPT + 99 others); Tue, 6 Oct 2020 04:32:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725891AbgJFIca (ORCPT ); Tue, 6 Oct 2020 04:32:30 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64CBEC061755 for ; Tue, 6 Oct 2020 01:32:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=F8+5gkGPVqKgbh4FUVYDJTT7CPoPeJTjUg9zFd6ApBc=; b=UBksAM3QzNyHx3FLo60CS9n/2H 7+PaJK0UVGHJWTBqKgx1ZpvScnqNTryXRdT8dQ0CIla0cmlAqqdG+JXMzDAvnJRiHpol5tPDGKPA/ V/LMi35z8P6AO4hXGrU8wZ5956xyDCN8ERBQI0VVsY1RDTqu5Ss+42DMqvjAmbo7VovQkbI2BHDVc iWNj5crABf0V+zr2SVLLeEUQdxvTiseN3HLYWtWJ7cokJPOEEv7vKCYncBpONEApGXZra5NpT1VjX uevrcQH62qbw1ocyIQPq4fX7n47BPGCKe4jtpMNqR4+ClzgYaIovWvKgwlRbqf92cHDxRP6et1cXR rAzQy3ig==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kPiOG-0008FX-P5; Tue, 06 Oct 2020 08:32:20 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id E1C533006D0; Tue, 6 Oct 2020 10:32:05 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id CA8B328B30F6D; Tue, 6 Oct 2020 10:32:05 +0200 (CEST) Date: Tue, 6 Oct 2020 10:32:05 +0200 From: Peter Zijlstra To: Brian Gerst Cc: Andy Lutomirski , the arch/x86 maintainers , LKML , "Christopherson, Sean J" Subject: Re: [PATCH 0/2] Clean up x86_32 stackprotector Message-ID: <20201006083205.GN2628@hirez.programming.kicks-ass.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 05, 2020 at 07:10:39PM -0400, Brian Gerst wrote: > On Mon, Oct 5, 2020 at 3:30 PM Andy Lutomirski wrote: > > > > x86_32 stackprotector is a maintenance nightmare. Clean it up. This > > disables stackprotector on x86_32 on GCC 8.1 and on all clang > > versions -- I'll file a bug for the latter. > > This should be doable on 64-bit too. All that would need to be done > is to remove the zero-base of the percpu segment (which would simplify > alot of other code). Like what? I don't think it'd be hard to do, but I really don't see it doing anything other than make things confusing as heck.