Re: [PATCH] lib/test_lockup: test module to generate lockups

Konstantin Khlebnikov
2020-02-11T13:01:19Z

On 11/02/2020 01.41, Andrew Morton wrote:
> On Mon, 10 Feb 2020 12:56:31 +0300 Konstantin Khlebnikov <khlebnikov@yandex-team.ru> wrote:
>
>> CONFIG_TEST_LOCKUP=m adds module "test_lockup" that helps to make sure
>> that watchdogs and lockup detectors are working properly.
>
> Now we'll get test robot reports "hey this makes my kernel lock up" ;)

Without module parameters it is completely save and does nothing.

>
> Is there any way in which we can close the loop here? Add a
> tools/testing/selftests script which loads the module, attempts to
> trigger a lockup and then checks whether it happened as expected?
> Sounds tricky.
>

Yes, I'll try to script this.