Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp503003imw; Fri, 15 Jul 2022 07:27:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vUxos/SuDqh7e88Q2kawqBt/qe4iyZfT87qXvob7pKVheSXiJ5Y6DJApquiJHhiJj4mF8A X-Received: by 2002:a05:6402:4306:b0:43a:b794:9f9f with SMTP id m6-20020a056402430600b0043ab7949f9fmr19446948edc.205.1657895277132; Fri, 15 Jul 2022 07:27:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657895277; cv=none; d=google.com; s=arc-20160816; b=g92uUmamKfDVkCZbJrwqKgWF9Fej9LOd9jIhhgKHHNFazmkOKeV3CjJjG1IzXWt8BD BJAprncfoFbt0qcGjYCd2hxTIrQaX35aYQs9L6y6sg1m2+A9OzO/AYNY+aUcS2NJVMiP vf+TSwR4PM9ypSSqJsU2zJq2kH0Dgm9qzTaj93X4wKQGAyNgKbVCSCM+uphJP//14Yip qTVi5fRigWZ2I9iZ5fAH7hLF3uMccI+rB2I5/6C2REGMo3vMCrH7u3mZWhuCXGSMgqrg FZZo5seWeguMBqMxbKMAsINV+ZaPWD1T5G9e5Q+pK0Tg2VwzoDcvQ5M+J9OQ9OPdq+kF A4Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=f788TtK/eHpNhrNsYGPkgCt0mOw+hX9zsW5mFiJBMF4=; b=NV9UomOpN8Wf4OoSa6VbG+OgHmPuR975bYwQ2FTqBAYlr6bAup67uQn2kHAnQWBRJn OlGk+zoxMdycMNkmDj/6mdHkrHoKHLoos6gyLGuPe3GDnTV3ZlV+gXKnb316Ol+9QWsI S88yEUTJCdDS0xTKYfiM/UeSCb4XQd4haMB60oG4U9Wg8Mrd60IhkI7wjpW7EQbJQJSa pBXVNGgQTQl9Hh8h0DGDkbiTEJc4XDnXnYkBkKH0YT0XzwuAy6k+vVBIX0849H9p6p8X 11Y8Df5KNxM1ZgNV2/5ETwERgz5a523nAmpNFD03mMydkGzrrEM5KRRNU8GPHyufjoAP SQhA== 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 m9-20020a170906720900b0072acf4013b2si30925ejk.831.2022.07.15.07.27.09; Fri, 15 Jul 2022 07:27: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; 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 S230301AbiGOOIC (ORCPT + 99 others); Fri, 15 Jul 2022 10:08:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235253AbiGOOH7 (ORCPT ); Fri, 15 Jul 2022 10:07:59 -0400 Received: from www262.sakura.ne.jp (www262.sakura.ne.jp [202.181.97.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB7CB6871A for ; Fri, 15 Jul 2022 07:07:51 -0700 (PDT) Received: from fsav115.sakura.ne.jp (fsav115.sakura.ne.jp [27.133.134.242]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 26FE7SDI047462; Fri, 15 Jul 2022 23:07:28 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav115.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav115.sakura.ne.jp); Fri, 15 Jul 2022 23:07:28 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav115.sakura.ne.jp) Received: from [192.168.1.9] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 26FE7SnE047455 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Fri, 15 Jul 2022 23:07:28 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Message-ID: <6d84da13-8c7b-129e-a40c-cadc80a609f4@I-love.SAKURA.ne.jp> Date: Fri, 15 Jul 2022 23:07:27 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v2] ARM: spectre-v2: fix smp_processor_id() warning Content-Language: en-US To: "Russell King (Oracle)" Cc: Marc Zyngier , Tony Lindgren , LKML , Linux ARM , Dmitry Vyukov References: <795c9463-452e-bf64-1cc0-c318ccecb1da@I-love.SAKURA.ne.jp> <421c1ca9-f553-4c0a-d963-2fdeb270dbcc@I-love.SAKURA.ne.jp> <3188347c-3375-b728-cd08-ea4421d823cd@I-love.SAKURA.ne.jp> From: Tetsuo Handa In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_NONE 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 2022/07/15 22:36, Russell King (Oracle) wrote: > On Fri, Jul 15, 2022 at 10:09:01PM +0900, Tetsuo Handa wrote: >> syzbot is reporting that CONFIG_HARDEN_BRANCH_PREDICTOR=y + >> CONFIG_DEBUG_PREEMPT=y on ARM32 causes "BUG: using smp_processor_id() in >> preemptible code" message [1], for this check was not designed to handle >> attempts to access kernel memory like >> >> ---------- >> int main() { return *(char *) -1; } >> ---------- >> >> . Although Russell King commented that this BUG: message might help finding >> possible exploit attempts [2], this is not a kernel's problem that worth >> giving up fuzz testing. > > But shutting up a valid warning when the real problem is still there is > also not acceptable. Then, at least for now can we stop emitting the BUG: string? I showed an idea at https://lkml.kernel.org/r/fa786d1c-db06-f7f1-9ac9-6a468c1e8d81@I-love.SAKURA.ne.jp but I got no response. Since syzkaller stops fuzz testing upon encountering BUG: or WARNING: string, ARM32 might be failing to find other bugs for 491 days due to this problem. If you don't want to stop emitting this BUG: string, we might want to teach syzkaller to build ARM32 kernels with CONFIG_HARDEN_BRANCH_PREDICTOR=n.