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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E8A52C32771 for ; Wed, 28 Sep 2022 23:08:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=h8RFSwyH9gkGxFca7ztwj9jStN5HJiui9NvbrDkD22k=; b=L/qO9mT0NIDHrJ OG+nwV179i9QHsR5KTBzrWKk6nQFdfWCBO2hjxS7Qu7hBCiz5nEyz343vipd11oMZdkJOnIyxz7tX I6DRB4paVEbMWu0Kjql93ZgmeKqTNsrWlY/aaXflHxjS6yKoShIr/zSNp48L20dHbIJX5ePudqlOJ VvWKQ6l6wOcrYJu+Pe+zn8v3SiA9HZYhndmf6KzeasSaBKcSTB0qoKdBUm1lbpgIfCLfm6RSwxwSS pAp5opaNi8nx5UQf/1hF4k68KCzeTH0sw9bSqILzuMrxjEdmWIjocr7ivVleC6SYOqbz0l3nL8uHw ZLXtua0kBXHE/Om14iIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1odg8S-000bsD-HJ; Wed, 28 Sep 2022 23:06:36 +0000 Received: from mail-qv1-xf35.google.com ([2607:f8b0:4864:20::f35]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1odg8P-000brs-Mn for linux-arm-kernel@lists.infradead.org; Wed, 28 Sep 2022 23:06:34 +0000 Received: by mail-qv1-xf35.google.com with SMTP id d1so9109601qvs.0 for ; Wed, 28 Sep 2022 16:06:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=rOdQ2BRERV7zL+T7IaesD2A0gwVZ2UwwP2s3/GYWoCc=; b=LdtLLhmDhjDwi4NVuZ1pJTpHVdhaZONxDFnvMHIde8LHifJwe3kNlpcjXCgHSECaAn k38wUwHr3oKnw7CgoDggoqRrPEdOtSDIpy6hsyTdXC4d2yCzuhDgg8abSDFJVBIzExk+ 32qefQ4/7xOB1sinZ068/mCrbAeT17tC83MYPqLDeLOc5mnwJgjmDwFFN7kw94lQ4WO7 7NfDMgXVbWVJQRsDbKI4aXhxfPb+bqd4gHEOZzIFZwZRhSD3ru34B9eH/dmYvJOgjzc5 o+k83d3BGsD10AbEnT9AaexbGIXcLWkJXoXkgItEEC5ywFZw5hBJc0jBD/74Ss2I4LUj niAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=rOdQ2BRERV7zL+T7IaesD2A0gwVZ2UwwP2s3/GYWoCc=; b=Jr2vaU+ZMKu6UY/q4HkGjLgGH3SeThUogZH1jBd/oD/zZhITcHXR+5AfbHaw8/sni/ TaHpPXXkEsrcXznfUHQz5ziU6839ZjxegJtDaW5+yNvA0PEVe5YmHrLsMYzxnuJCgbrw UVojbdZrnedgH0ntwrfaNWXUOp3+9aQj3Ladx1ZkErTnXxnZCYVo4STnVw2AU15SA+fw w8tziW/PMNHCHgAomwzCjx+GWqczKkja2SPVPc7cq3Ljsac6AJ/xAAjA0UB+ZLhK/SUx FzPh1Zh1Dkf3jTxa1NAd1aNQ8clP+OvqxPGcKzGIRTMuHscVi0o42i2PBDCnMKZjtGeN tHBw== X-Gm-Message-State: ACrzQf0qOTvjViG5ucgPX0WY+2JSOEjKPmQDCGqkExu5ay6AXnTPXkg0 jsWdkfwsxxLH9eY516Citmo= X-Google-Smtp-Source: AMsMyM5wHIpoDiSwffOIuoBnlDBxUmFLUHdJycPk6YJF0sLQ6Dm1iErTPnjiFfPS2nqsaqVrKJRIBw== X-Received: by 2002:a05:6214:62a:b0:4ac:b768:ac53 with SMTP id a10-20020a056214062a00b004acb768ac53mr381437qvx.120.1664406390812; Wed, 28 Sep 2022 16:06:30 -0700 (PDT) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id u4-20020a05622a010400b00342e86b3bdasm4461476qtw.12.2022.09.28.16.06.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Sep 2022 16:06:30 -0700 (PDT) Message-ID: <729030b4-c341-966f-05ed-3754122cb4f7@gmail.com> Date: Wed, 28 Sep 2022 16:06:22 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] ARM: ubsan: select ARCH_HAS_UBSAN_SANITIZE_ALL Content-Language: en-US To: Kees Cook , Ard Biesheuvel Cc: linux-arm-kernel@lists.infradead.org, Seung-Woo Kim , Russell King , Arnd Bergmann , Linus Walleij , "Russell King (Oracle)" , "Steven Rostedt (Google)" , Nick Hawkins , John Crispin , Masahiro Yamada , Nicolas Schier , Nick Desaulniers , open list , bcm-kernel-feedback-list@broadcom.com, anand.gore@broadcom.com, william.zhang@broadcom.com References: <20220928174739.802806-1-f.fainelli@gmail.com> <202209281100.5311EE081B@keescook> From: Florian Fainelli In-Reply-To: <202209281100.5311EE081B@keescook> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220928_160633_794322_925190F3 X-CRM114-Status: GOOD ( 16.44 ) 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 On 9/28/22 11:01, Kees Cook wrote: > On Wed, Sep 28, 2022 at 10:47:39AM -0700, Florian Fainelli wrote: >> From: Seung-Woo Kim >> >> To enable UBSAN on ARM, this patch enables ARCH_HAS_UBSAN_SANITIZE_ALL >> from arm confiuration. Basic kernel bootup test is passed on arm with >> CONFIG_UBSAN_SANITIZE_ALL enabled. >> >> Signed-off-by: Seung-Woo Kim >> [florian: rebased against v6.0-rc7] >> Signed-off-by: Florian Fainelli > > Ah-ha, thanks for testing this. What devices did you check this on? I > know boot-up on arm32 can be very device-specific. This was tested on an ARCH_BRCMSTB system which is using an ARMv8 CPU booted in AArch32 mode, so virtually equivalent to armv7l. A raspberry Pi 4B is also happily booting with it. > > Which UBSAN configs did you try? All CONFIG_UBSAN_* work with the exception of CONFIG_UBSAN_ALIGNMENT on my ARCH_BRCMSTB system, however it works fine on the Raspberry Pi 4B. Florian _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel