From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D6DEC433C1 for ; Mon, 29 Mar 2021 17:55:09 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 77F5F60238 for ; Mon, 29 Mar 2021 17:55:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 77F5F60238 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=67MAEcwfovoIle6IwE7D7Vfb5lpdwKSKY4qRMhZyCD0=; b=c8D3uSFrPSsUnnssp8txNafEr ARq8NyKBuO+udREBX2FIDESpBY4XGSMmnJMX5eiZKPK/abWRPGnNVI6n1IxEGlYolKu4kGDFCdD0F QE1bvxmFGAKlKH2jZXO0Ki5hhfTADcUDroGa4gf0PtHIQrpxIK6XBz1e0lcKsU83Fvs7BX50SnHsd CjA/HiK/b53RuIWQjT7yYmjStwKrOLYLlupXiHODb8TrBPGJSWiT61bWPTjzcW7wVnJN6ErhDFkzu 7psogVEu4aAMRMlStNG6/uCz5ZIngGVJXmQwd7+i50NyBfDjfCkjr6T2i/TcIpfNdhLEFeea9X4R+ EZ+At3N2A==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lQw3o-000wgm-V9; Mon, 29 Mar 2021 17:52:21 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lQoxL-000Zev-J7 for linux-arm-kernel@desiato.infradead.org; Mon, 29 Mar 2021 10:17:11 +0000 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=2m63iLs4WAe9lYjvi0CAGkdEF4a/0HxPdd40RsaZgHE=; b=WH3GhciGiivzPVqarJPEbgm6dg HmA9csvWS1ewiKkhYLFnjLdP4E8nMDfKNaFEznbOk+m1gy/Ot5ga+UUAXH0Up6SKWzHj25G2hXrOj rI6fuYybyGe/tHZa2X2XgI+TOw619mF/DbhrXiIjdKbFxagH5bEi+FvO3vfPXaboAVawl6cNMlWfY 5sEgYOy50bNzQUzpLHK4h22E2YvLnpGvSBdGL8c55Fx1JXUtG1sQ4ohr7DmEgdcS5jZsv0Q0oEkQO xfTUR0JxCeExqBCXQ0r7Tn56EYAfMz4ZzC861Wjwm27DZ3tkwFqcMW7zzCVYGD7mIWseETzrxB91q ltWyrNHg==; Received: from mail.kernel.org ([198.145.29.99]) by casper.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lQoAI-001K17-6Y for linux-arm-kernel@lists.infradead.org; Mon, 29 Mar 2021 09:26:43 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id B45876193C; Mon, 29 Mar 2021 09:26:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617009979; bh=2m63iLs4WAe9lYjvi0CAGkdEF4a/0HxPdd40RsaZgHE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YDnyZC5YOgX7yXRUjz9IGEO0C6G0nFmFS/eHflmgry96kPs8l5LfKHOfjeOx1269E 9AKlzXbO73/J3hgxgOJ3WYU8xLgMtAhEyA/YTdmezdrEGiYR1Fre1yP8TTftBagrNC wv3RmU15M+bgWdIZUnlXbkpLQVt1BkWh1L3AI4zr5NW//9NVSaS2METzlmPoClL74i AehOpRfLKdbxWuSRWc036zO/qqoOyDZ9y25rnaJCDrzPrUmzQzv1Kko/WdUBeMJZgk Cci7SrTHk1S6Jj+IJPSSAgN+6ISiauwjudqnn+snE9Psh1UV2z4bwsdwYP57+VxxFj sjSV9H1gLbeMQ== Date: Mon, 29 Mar 2021 11:26:12 +0200 From: Jessica Yu To: Sami Tolvanen Cc: Kees Cook , Nathan Chancellor , Nick Desaulniers , Masahiro Yamada , Will Deacon , Arnd Bergmann , Tejun Heo , "Paul E. McKenney" , Christoph Hellwig , Peter Zijlstra , bpf@vger.kernel.org, linux-hardening@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 04/17] module: ensure __cfi_check alignment Message-ID: References: <20210323203946.2159693-1-samitolvanen@google.com> <20210323203946.2159693-5-samitolvanen@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210323203946.2159693-5-samitolvanen@google.com> X-OS: Linux gunter 5.11.6-1-default x86_64 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210329_102633_443704_7BF9F883 X-CRM114-Status: UNSURE ( 7.24 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org +++ Sami Tolvanen [23/03/21 13:39 -0700]: >CONFIG_CFI_CLANG_SHADOW assumes the __cfi_check() function is page >aligned and at the beginning of the .text section. While Clang would >normally align the function correctly, it fails to do so for modules >with no executable code. > >This change ensures the correct __cfi_check() location and >alignment. It also discards the .eh_frame section, which Clang can >generate with certain sanitizers, such as CFI. > >Link: https://bugs.llvm.org/show_bug.cgi?id=46293 >Signed-off-by: Sami Tolvanen Acked-by: Jessica Yu Thanks! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel