FAT-fs (loop1): bogus number of reserved sectors FAT-fs (loop1): Can't find a valid FAT filesystem general protection fault, probably for non-canonical address 0xdffffc0000000037: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x00000000000001b8-0x00000000000001bf] CPU: 1 PID: 5435 Comm: syz-executor.3 Not tainted 5.10.194 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 RIP: 0010:event_sched_out+0x595/0xa60 kernel/events/core.c:2361 Code: 89 ee e8 7e af f1 ff 40 84 ed 75 43 e8 64 b6 f1 ff 49 8d bc 24 b8 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 6a 04 00 00 41 8b ac 24 b8 01 RSP: 0018:ffff88804811fbb8 EFLAGS: 00010012 RAX: dffffc0000000000 RBX: ffff888009976000 RCX: ffffc900007fb000 RDX: 0000000000000037 RSI: ffffffff814ecbbc RDI: 00000000000001b8 RBP: 0000000000000000 R08: ffffffff8505fa40 R09: 0000000000000003 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000000 R14: ffff88806ce37c70 R15: ffff88806ce37c70 FS: 00007f23ceb15700(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2ad7d00ae0 CR3: 0000000047370000 CR4: 0000000000350ee0 Call Trace: __perf_remove_from_context+0x7b/0x330 kernel/events/core.c:2411 event_function_call+0x329/0x420 kernel/events/core.c:301 perf_remove_from_context+0x9b/0x1c0 kernel/events/core.c:2445 __do_sys_perf_event_open+0x2883/0x2d50 kernel/events/core.c:12127 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x62/0xc7 RIP: 0033:0x7f23d159fb19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f23ceb15188 EFLAGS: 00000246 ORIG_RAX: 000000000000012a RAX: ffffffffffffffda RBX: 00007f23d16b2f60 RCX: 00007f23d159fb19 RDX: 0000000000000000 RSI: 0000000000000074 RDI: 0000000020000000 RBP: 00007f23d15f9f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000006 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc5dddf82f R14: 00007f23ceb15300 R15: 0000000000022000 Modules linked in: ---[ end trace 1d2a69d63f0ab419 ]--- RIP: 0010:event_sched_out+0x595/0xa60 kernel/events/core.c:2361 Code: 89 ee e8 7e af f1 ff 40 84 ed 75 43 e8 64 b6 f1 ff 49 8d bc 24 b8 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 6a 04 00 00 41 8b ac 24 b8 01 RSP: 0018:ffff88804811fbb8 EFLAGS: 00010012 RAX: dffffc0000000000 RBX: ffff888009976000 RCX: ffffc900007fb000 RDX: 0000000000000037 RSI: ffffffff814ecbbc RDI: 00000000000001b8 RBP: 0000000000000000 R08: ffffffff8505fa40 R09: 0000000000000003 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000000 R14: ffff88806ce37c70 R15: ffff88806ce37c70 FS: 00007f23ceb15700(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2ad7d00ae0 CR3: 0000000047370000 CR4: 0000000000350ee0 note: syz-executor.3[5435] exited with preempt_count 1 BUG: sleeping function called from invalid context at include/linux/percpu-rwsem.h:49 in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 5435, name: syz-executor.3 INFO: lockdep is turned off. irq event stamp: 9430 hardirqs last enabled at (9429): [] __send_ipi_mask+0x311/0x3d0 arch/x86/kernel/kvm.c:569 hardirqs last disabled at (9430): [] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:126 [inline] hardirqs last disabled at (9430): [] _raw_spin_lock_irq+0x3e/0x40 kernel/locking/spinlock.c:167 softirqs last enabled at (9068): [] asm_call_irq_on_stack+0x12/0x20 softirqs last disabled at (9011): [] asm_call_irq_on_stack+0x12/0x20 CPU: 1 PID: 5435 Comm: syz-executor.3 Tainted: G D 5.10.194 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x107/0x167 lib/dump_stack.c:118 ___might_sleep.cold+0x141/0x16f kernel/sched/core.c:7301 percpu_down_read include/linux/percpu-rwsem.h:49 [inline] cgroup_threadgroup_change_begin include/linux/cgroup-defs.h:734 [inline] exit_signals+0x23/0x8b0 kernel/signal.c:2836 do_exit+0x27f/0x2600 kernel/exit.c:814 make_task_dead+0x6c/0x70 kernel/exit.c:935 rewind_stack_and_make_dead+0x17/0x20 arch/x86/entry/entry_64.S:1521 RIP: 0033:0x7f23d159fb19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f23ceb15188 EFLAGS: 00000246 ORIG_RAX: 000000000000012a RAX: ffffffffffffffda RBX: 00007f23d16b2f60 RCX: 00007f23d159fb19 RDX: 0000000000000000 RSI: 0000000000000074 RDI: 0000000020000000 RBP: 00007f23d15f9f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000006 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc5dddf82f R14: 00007f23ceb15300 R15: 0000000000022000 ---------------- Code disassembly (best guess): 0: 89 ee mov %ebp,%esi 2: e8 7e af f1 ff callq 0xfff1af85 7: 40 84 ed test %bpl,%bpl a: 75 43 jne 0x4f c: e8 64 b6 f1 ff callq 0xfff1b675 11: 49 8d bc 24 b8 01 00 lea 0x1b8(%r12),%rdi 18: 00 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 74 08 je 0x3a 32: 3c 03 cmp $0x3,%al 34: 0f 8e 6a 04 00 00 jle 0x4a4 3a: 41 rex.B 3b: 8b .byte 0x8b 3c: ac lods %ds:(%rsi),%al 3d: 24 b8 and $0xb8,%al 3f: 01 .byte 0x1