Re: [syzbot] WARNING in c_start
From: Tetsuo Handa
Date: Sun Oct 16 2022 - 00:10:55 EST
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.