Re: INFO: rcu detected stall in corrupted (3)

From: Tetsuo Handa
Date: Sat Mar 30 2019 - 06:41:03 EST


On 2019/03/30 16:46, Thomas Gleixner wrote:
> On Sat, 30 Mar 2019, Tetsuo Handa wrote:
>> This reproducer does sched_setattr(SCHED_DEADLINE) with bogus value, as with
>> a reproducer for "INFO: rcu detected stall in sys_sendfile64" did.
>>
>> sched_setattr(0, {size=0, sched_policy=0x6 /* SCHED_DEADLINE */,
>> sched_flags=0, sched_nice=0, sched_priority=0, sched_runtime=65535,
>> sched_deadline=4611686018427453437, sched_period=0}, 0) = 0
>>
>> #syz invalid
>
> Marking this invalid is not really the right thing to do. Bogus deadline
> parameters should not cause RCU stalls. They either need to be rejected or
> handled gracefully.

But how can the scheduler be aware of various watchdogs' thresholds?

The scheduler behaves differently based on watchdog's remaining grace periods?
That sounds quite strange. If administrator tunes watchdog thresholds in a way
schedulers can't survive (or vice versa), it must be an administrator's fault.

Since this stall might occur with any combination, not closing this kind of
report will result in flood of stall reports...