SELinux: unrecognized netlink message: protocol=0 nlmsg_type=39 sclass=netlink_route_socket pid=16122 comm=syz-executor.7 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: 16133 Comm: syz-executor.7 Not tainted 5.10.161 #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:2356 Code: 89 ee e8 9e c3 f1 ff 40 84 ed 75 43 e8 84 ca 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:ffff88804a1ffbb8 EFLAGS: 00010012 RAX: dffffc0000000000 RBX: ffff888036cb2000 RCX: ffffc9000641b000 RDX: 0000000000000037 RSI: ffffffff814e645c RDI: 00000000000001b8 RBP: 0000000000000000 R08: ffffffff8505f900 R09: 0000000000000003 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000000 R14: ffff88806ce37c70 R15: ffff88806ce37c70 FS: 00007f5ec7632700(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d621000 CR3: 000000004c19c000 CR4: 0000000000350ee0 Call Trace: __perf_remove_from_context+0x7b/0x330 kernel/events/core.c:2406 event_function_call+0x329/0x420 kernel/events/core.c:301 perf_remove_from_context+0x9b/0x1c0 kernel/events/core.c:2440 __do_sys_perf_event_open+0x27f2/0x2cb0 kernel/events/core.c:12121 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f5eca0ddb19 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:00007f5ec7632188 EFLAGS: 00000246 ORIG_RAX: 000000000000012a RAX: ffffffffffffffda RBX: 00007f5eca1f1020 RCX: 00007f5eca0ddb19 RDX: 0000000000000000 RSI: 0000000000000092 RDI: 0000000020000000 RBP: 00007f5eca137f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000008 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe8a25dd7f R14: 00007f5ec7632300 R15: 0000000000022000 Modules linked in: ---[ end trace cfa7bbb94c6f89aa ]--- RIP: 0010:event_sched_out+0x595/0xa60 kernel/events/core.c:2356 Code: 89 ee e8 9e c3 f1 ff 40 84 ed 75 43 e8 84 ca 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:ffff88804a1ffbb8 EFLAGS: 00010012 RAX: dffffc0000000000 RBX: ffff888036cb2000 RCX: ffffc9000641b000 RDX: 0000000000000037 RSI: ffffffff814e645c RDI: 00000000000001b8 RBP: 0000000000000000 R08: ffffffff8505f900 R09: 0000000000000003 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000000 R14: ffff88806ce37c70 R15: ffff88806ce37c70 FS: 00007f5ec7632700(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d621000 CR3: 000000004c19c000 CR4: 0000000000350ee0 note: syz-executor.7[16133] 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: 16133, name: syz-executor.7 INFO: lockdep is turned off. irq event stamp: 688 hardirqs last enabled at (687): [] __send_ipi_mask+0x311/0x3d0 arch/x86/kernel/kvm.c:569 hardirqs last disabled at (688): [] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:126 [inline] hardirqs last disabled at (688): [] _raw_spin_lock_irq+0x3e/0x40 kernel/locking/spinlock.c:167 softirqs last enabled at (260): [] asm_call_irq_on_stack+0x12/0x20 softirqs last disabled at (251): [] asm_call_irq_on_stack+0x12/0x20 CPU: 1 PID: 16133 Comm: syz-executor.7 Tainted: G D 5.10.161 #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:7304 percpu_down_read include/linux/percpu-rwsem.h:49 [inline] cgroup_threadgroup_change_begin include/linux/cgroup-defs.h:734 [inline] exit_signals+0x23/0x850 kernel/signal.c:2833 do_exit+0x30a/0x2740 kernel/exit.c:767 rewind_stack_do_exit+0x17/0x20 arch/x86/entry/entry_64.S:1521 RIP: 0033:0x7f5eca0ddb19 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:00007f5ec7632188 EFLAGS: 00000246 ORIG_RAX: 000000000000012a RAX: ffffffffffffffda RBX: 00007f5eca1f1020 RCX: 00007f5eca0ddb19 RDX: 0000000000000000 RSI: 0000000000000092 RDI: 0000000020000000 RBP: 00007f5eca137f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000008 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe8a25dd7f R14: 00007f5ec7632300 R15: 0000000000022000 ---------------- Code disassembly (best guess): 0: 89 ee mov %ebp,%esi 2: e8 9e c3 f1 ff callq 0xfff1c3a5 7: 40 84 ed test %bpl,%bpl a: 75 43 jne 0x4f c: e8 84 ca f1 ff callq 0xfff1ca95 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