SELinux: security_context_str_to_sid (unconfined_u) failed with errno=-22 general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f] CPU: 0 PID: 8382 Comm: syz-executor.2 Not tainted 5.17.0-next-20220401 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 RIP: 0010:io_poll_check_events+0x1e3/0x7a0 Code: 68 48 89 d8 48 c7 44 24 60 00 00 00 00 48 c1 e8 03 42 80 3c 28 00 0f 85 55 05 00 00 48 8b 2b 48 8d 7d 28 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 0f 85 32 05 00 00 48 8b 45 28 48 8d 78 48 48 89 fa RSP: 0018:ffff88803124fa10 EFLAGS: 00010216 RAX: 0000000000000005 RBX: ffff888017605280 RCX: ffffc9000de00000 RDX: 0000000000040000 RSI: ffffffff8191f1ea RDI: 0000000000000028 RBP: 0000000000000000 R08: 0000000000000000 R09: ffff888017605307 R10: ffffffff8191f3b6 R11: 0000000000000001 R12: 0000000000000002 R13: dffffc0000000000 R14: ffff8880176052d4 R15: ffff888017605304 FS: 00007fd7849ac700(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd7849ac718 CR3: 0000000046a06000 CR4: 0000000000350ef0 Call Trace: io_apoll_task_func+0x40/0x230 tctx_task_work+0x1a3/0x1430 task_work_run+0xe2/0x1a0 get_signal+0x1cd/0x2350 arch_do_signal_or_restart+0x88/0x1a40 exit_to_user_mode_prepare+0x131/0x1a0 syscall_exit_to_user_mode+0x19/0x50 do_syscall_64+0x48/0x90 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fd787457b19 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:00007fd7849ac188 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa RAX: 0000000000000003 RBX: 00007fd78756b020 RCX: 00007fd787457b19 RDX: 0000000000000000 RSI: 0000000000100001 RDI: 0000000000000006 RBP: 00007fd7874b1f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffc04e3d4f R14: 00007fd7849ac300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:io_poll_check_events+0x1e3/0x7a0 Code: 68 48 89 d8 48 c7 44 24 60 00 00 00 00 48 c1 e8 03 42 80 3c 28 00 0f 85 55 05 00 00 48 8b 2b 48 8d 7d 28 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 0f 85 32 05 00 00 48 8b 45 28 48 8d 78 48 48 89 fa RSP: 0018:ffff88803124fa10 EFLAGS: 00010216 RAX: 0000000000000005 RBX: ffff888017605280 RCX: ffffc9000de00000 RDX: 0000000000040000 RSI: ffffffff8191f1ea RDI: 0000000000000028 RBP: 0000000000000000 R08: 0000000000000000 R09: ffff888017605307 R10: ffffffff8191f3b6 R11: 0000000000000001 R12: 0000000000000002 R13: dffffc0000000000 R14: ffff8880176052d4 R15: ffff888017605304 FS: 00007fd7849ac700(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd7849ac718 CR3: 0000000046a06000 CR4: 0000000000350ef0 debugfs: Directory 'loop0' with parent 'block' already present! SELinux: security_context_str_to_sid (unconfined_u) failed with errno=-22 loop4: detected capacity change from 0 to 264192 loop4: detected capacity change from 0 to 264192 audit: type=1401 audit(1648989874.819:37): op=security_bounded_transition seresult=denied oldcontext=system_u:system_r:kernel_t:s0 newcontext=system_u:object_r:autofs_device_t:s0 audit: type=1401 audit(1648989874.821:38): op=security_bounded_transition seresult=denied oldcontext=system_u:system_r:kernel_t:s0 newcontext=system_u:object_r:autofs_device_t:s0 SELinux: security_context_str_to_sid (unconfined_u) failed with errno=-22 ---------------- Code disassembly (best guess): 0: 68 48 89 d8 48 pushq $0x48d88948 5: c7 44 24 60 00 00 00 movl $0x0,0x60(%rsp) c: 00 d: 48 c1 e8 03 shr $0x3,%rax 11: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) 16: 0f 85 55 05 00 00 jne 0x571 1c: 48 8b 2b mov (%rbx),%rbp 1f: 48 8d 7d 28 lea 0x28(%rbp),%rdi 23: 48 89 f8 mov %rdi,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction 2f: 0f 85 32 05 00 00 jne 0x567 35: 48 8b 45 28 mov 0x28(%rbp),%rax 39: 48 8d 78 48 lea 0x48(%rax),%rdi 3d: 48 89 fa mov %rdi,%rdx