Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp615549pxr; Mon, 11 Apr 2022 02:43:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLTKCxRtPv9/zFVQoMR+Lc3yRCgVgBjY7hMi+jn0p6iUiicFYn2OZPzOa9jnFThv7FxJPb X-Received: by 2002:aa7:c612:0:b0:41d:7ad7:4a4d with SMTP id h18-20020aa7c612000000b0041d7ad74a4dmr4320944edq.125.1649670237302; Mon, 11 Apr 2022 02:43:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649670237; cv=none; d=google.com; s=arc-20160816; b=o5LeqQzE6HaubR4R0ow+hM03HH1MsWjLgcmAfgBda3rJrFeuA4xpsCxtfm5Q/tOrL4 hXAUb5+8+/pcCoiCoTJVyseXvBvZrofwOr9RlAIAt5iizUIuOK04xnWhPU7an0a1uckv FqrLhygaJiQiIrEj0sKvG6PjC8B/J1Fs+UTx0yVOYY00is8Ty0FWD8+H3rHv9qyGgdzE AkxHbuI9V9O/ZRVaW7higsfsEMU/AK/JtofS5dlX0eXUdS2G8j8ggNx589/d9epG4IBL GS3M+GYP8AZemwqjMlb/H7ICYU7ZQ8zKegWvxEfbSWIXj+tptsgzVyAC3IJMHHnq5P66 Rr6g== 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=i7yMGdudCtk4V5KXA9i8QId3yMTCmugDvZV+rOd5YTs=; b=dDWw4LCTsVvPo6PoAQS5DzNl3vlbbd/sLOLQpz/XMUH8REEHdzz0GpTwqRs/sLJt9N E67lqOmKz0+IRdO7ePCFRux1uXh9Z5EiHJustR3yl2ecLOqGP7zVUXQegzN8qq7Ru4/l 3Rt9O/YgKhO8uF1X6KS+EZcAg8JjszHPL42uVwDrH4C2FGeun2xgSIs9SzKYI6O+GWfB HeweDcmAGgoDDZ7xo27k79NT/Z+DaHri5ZtvZnErSgYMh49cleqLvcWMtm6w8f0ZZeGK 3lYE2GYaoyKNLbz27Lg1+LJOUrS4AXnFho1p67NSffPwgO37Hc1z+Zq1x8n6XA3mqvZL /IIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=POu619hC; 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 x17-20020a170906711100b006e862e900cfsi5987778ejj.524.2022.04.11.02.43.32; Mon, 11 Apr 2022 02:43:57 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=POu619hC; 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 S237594AbiDHTQ6 (ORCPT + 99 others); Fri, 8 Apr 2022 15:16:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229676AbiDHTQ5 (ORCPT ); Fri, 8 Apr 2022 15:16:57 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11042BCB8; Fri, 8 Apr 2022 12:14:51 -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=i7yMGdudCtk4V5KXA9i8QId3yMTCmugDvZV+rOd5YTs=; b=POu619hCd/gRvJXecmp9CKGG40 bqxiQQ3Ci2VVQJw/A6gOLapVC5iqEJdJ+Kq/onNY0HIrAIxBNlmJE1gzySPSbTz/DWKEA6vulyC1v u9+3FqjjC6h6rPRxqvFZRMsSbjxYA2HrRQdYx258C/04fStqiwU2C0pdfDtOaEOveStdQNT7vGuW4 aBILc578cB8e0eTK+j/T1CHo7nKCIQhhhxbEE+KQkiLGaiw4PZY69EbBtb9YqIrid8UpnqrP7CKy5 Z3EWDRd7HJLhY+w7KoLRZsN8+EC8kaPMdD1fnwAdAGsjq4oAPYt343ikgDTbGENV67Aez3zUmkl3Q gCeCLdAQ==; 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.94.2 #2 (Red Hat Linux)) id 1ncu45-00A5Vf-01; Fri, 08 Apr 2022 19:14:37 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id E587D300130; Fri, 8 Apr 2022 21:14:35 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A70EF2B5A5C49; Fri, 8 Apr 2022 21:14:35 +0200 (CEST) Date: Fri, 8 Apr 2022 21:14:35 +0200 From: Peter Zijlstra To: Masahiro Yamada Cc: Josh Poimboeuf , Michal Marek , Nick Desaulniers , Linux Kernel Mailing List , Linux Kbuild mailing list , Sam Ravnborg , X86 ML , Arnd Bergmann , Changbin Du Subject: Re: [PATCH] kbuild: Remove CONFIG_DEBUG_SECTION_MISMATCH Message-ID: References: <7fad83ecde03540e65677959034315f8fbb3755e.1649434832.git.jpoimboe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Sat, Apr 09, 2022 at 03:29:21AM +0900, Masahiro Yamada wrote: > Is [2] caused by dead code that was not optimized out > due to the unusual inlining decisions by the compiler ? The complaint is due to SMAP validation; objtool will scream if there's a CALL in between STAC/CLAC. The thinking is that since they open a security window, we want tight code between them. We also very much don't want tracing and other funnies to happen there. As such, any CALL is dis-allowed. This weird option is having us upgrade quite a few 'inline' to '__always_inline'.