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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1046CC4332F for ; Sun, 16 Oct 2022 04:10:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229734AbiJPEK1 (ORCPT ); Sun, 16 Oct 2022 00:10:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbiJPEKY (ORCPT ); Sun, 16 Oct 2022 00:10:24 -0400 Received: from www262.sakura.ne.jp (www262.sakura.ne.jp [202.181.97.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF8D82EF45 for ; Sat, 15 Oct 2022 21:10:21 -0700 (PDT) Received: from fsav412.sakura.ne.jp (fsav412.sakura.ne.jp [133.242.250.111]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 29G4AJdC027641; Sun, 16 Oct 2022 13:10:19 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav412.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav412.sakura.ne.jp); Sun, 16 Oct 2022 13:10:19 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav412.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 29G4AIH2027636 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Sun, 16 Oct 2022 13:10:18 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Message-ID: <80a12dd3-dae4-ccc7-e277-b2fd2cba78e2@I-love.SAKURA.ne.jp> Date: Sun, 16 Oct 2022 13:10:18 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [syzbot] WARNING in c_start Content-Language: en-US To: Yury Norov Cc: Borislav Petkov , Linus Torvalds , syzbot , syzkaller-bugs@googlegroups.com, Andrew Jones , netdev@vger.kernel.org, "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Sebastian Andrzej Siewior , Menglong Dong , Kuniyuki Iwashima , Petr Machata , Guo Ren , "Michael S . Tsirkin" , Alexander Gordeev , andriy.shevchenko@linux.intel.com, linux@rasmusvillemoes.dk, caraitto@google.com, willemb@google.com, jonolson@google.com, amritha.nambiar@intel.com, linux-kernel@vger.kernel.org References: <0000000000007647ec05eb05249c@google.com> <2eaf1386-8ab0-bd65-acee-e29f1c5a6623@I-love.SAKURA.ne.jp> <23488f06-c4b4-8bd8-b0bc-85914ba4d1c6@I-love.SAKURA.ne.jp> From: Tetsuo Handa In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/10/16 10:12, Yury Norov wrote: > On Sun, Oct 16, 2022 at 09:24:57AM +0900, Tetsuo Handa wrote: >> I'm asking you not to use BUG_ON()/WARN_ON() etc. which breaks syzkaller. > > It's not me who added WARN_ON() in the cpumask_check(). You're asking > a wrong person. Because you broke the kernel testing. It was obvious that passing "cpu + 1" instead of "cpu" will trivially hit cpu == nr_cpumask_bits condition. If your patch were reviewed and tested, we would not have done this discussion. > > What for do we have WARN_ON(), if we can't use it? WARN_ON() could be used which should not happen. But cpu == nr_cpumask_bits condition shall happen in your patch. RCs are not for fixing bugs that causes boot failures. Such bugs should have been tested and fixed before patches are sent to linux.git . > >> Just printing messages (without "BUG:"/"WARNING:" string which also breaks >> syzkaller) like below diff is sufficient for people to realize that they're >> doing something wrong. >> >> Again, please do revert "cpumask: fix checking valid cpu range" immediately. > > The revert is already in Jakub's batch for -rc2, AFAIK. OK.