Re: [PATCH v2] panic: Taint kernel if fault injection has been used

From: Steven Rostedt
Date: Wed Dec 07 2022 - 00:18:52 EST




On December 6, 2022 11:45:17 PM EST, Alexei Starovoitov <alexei.starovoitov@xxxxxxxxx> wrote:
>On Tue, Dec 6, 2022 at 8:39 PM Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
>> >
>> > [ 49.281382] general protection fault, probably for non-canonical address 0x57e006e00000000: 0000 [#1] PREEMPT SMP KASAN
>> > [ 49.282226] CPU: 6 PID: 1688 Comm: test_progs Tainted: G B O 6.1.0-rc7-01508-gf0c5a2d9f234 #4343
>> > [ 49.283751] RIP: 0010:rethook_trampoline_handler+0xff/0x1d0
>> > [ 49.289900] Call Trace:
>> > [ 49.290083] <TASK>
>> > [ 49.290248] arch_rethook_trampoline_callback+0x6c/0xa0
>> > [ 49.290631] arch_rethook_trampoline+0x2c/0x50
>> > [ 49.290964] ? lock_release+0xad/0x3f0
>> > [ 49.291245] ? bpf_prog_test_run_tracing+0x235/0x380
>> > [ 49.291609] trace_clock_x86_tsc+0x10/0x10
>> >
>> > This is just running bpf selftests in parallel mode on 16-cpu VM on bpf-next.
>> > Notice 'Tained' flags.
>> > Please take a look.
>> >
>>
>> "G - Proprietary module" - "O - out of tree module"
>>
>> Can you reproduce this without those taints?
>
>Lol. That question is exactly the reason why my Nack stands.

I only said the above *because* of your comment ;-)

-- Steve


--
Sent from my Android device with K-9 Mail. Please excuse my brevity and top posting.