[LTP] [PATCH] syscalls/setsockopt09: Add another linux git
xuyang2018.jy@fujitsu.com
xuyang2018.jy@fujitsu.com
Thu Mar 10 07:07:42 CET 2022
Hi Martin
> On 09. 03. 22 3:03, xuyang2018.jy@fujitsu.com wrote:
>> Hi Martin
>>> The timeout is controlled by req.tp_retire_blk_tov and the value is in
>>> milliseconds. So usleep(req.tp_retire_blk_tov * 3000) should be enough.
>> I tested this on my vm, it still can't ensure hit the old crash before
>> print PASS log.
>
> That is probably expected. You'll need make a taint check after the
> usleep() to detect failure. See setsockopt06 which tests for similar
> use-after-free in socket timer.
I add a sleep ie setsockopt06, but it doesn't detect the kernel tainted
state in time and doesn't report "Kernel is vulnerable".
Best Regards
Yang Xu
>
More information about the ltp
mailing list