================================================================== BUG: KASAN: null-ptr-deref in io_poll_remove_entry io_uring/poll.c:182 [inline] BUG: KASAN: null-ptr-deref in io_poll_remove_entries+0x358/0x598 io_uring/poll.c:220 Read of size 8 at addr 0000000000000008 by task syz-executor632/5944 CPU: 0 PID: 5944 Comm: syz-executor632 Not tainted 6.3.0-rc1-syzkaller-gfe15c26ee26e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 print_report+0xe4/0x514 mm/kasan/report.c:433 kasan_report+0xd4/0x130 mm/kasan/report.c:536 kasan_check_range+0x264/0x2a4 mm/kasan/generic.c:187 __kasan_check_read+0x2c/0x3c mm/kasan/shadow.c:31 io_poll_remove_entry io_uring/poll.c:182 [inline] io_poll_remove_entries+0x358/0x598 io_uring/poll.c:220 __io_arm_poll_handler+0x4e4/0x7f4 io_uring/poll.c:603 io_arm_poll_handler+0x5b8/0xc74 io_uring/poll.c:734 io_queue_async+0x90/0x4e4 io_uring/io_uring.c:2057 io_queue_sqe io_uring/io_uring.c:2088 [inline] io_req_task_submit+0x18c/0x218 io_uring/io_uring.c:1425 io_poll_task_func+0xad0/0xdc4 handle_tw_list io_uring/io_uring.c:1184 [inline] tctx_task_work+0x304/0xe68 io_uring/io_uring.c:1246 task_work_run+0x240/0x2f0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x2180/0x3c90 arch/arm64/kernel/signal.c:1302 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 ================================================================== BUG: sleeping function called from invalid context at arch/arm64/mm/fault.c:603 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 5944, name: syz-executor632 preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 INFO: lockdep is turned off. CPU: 0 PID: 5944 Comm: syz-executor632 Tainted: G B 6.3.0-rc1-syzkaller-gfe15c26ee26e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 __might_resched+0x374/0x4d0 kernel/sched/core.c:10058 __might_sleep+0x90/0xe4 kernel/sched/core.c:9987 do_page_fault+0x308/0xac4 arch/arm64/mm/fault.c:603 do_translation_fault+0x94/0xc8 arch/arm64/mm/fault.c:695 do_mem_abort+0x74/0x200 arch/arm64/mm/fault.c:831 el1_abort+0x3c/0x5c arch/arm64/kernel/entry-common.c:367 el1h_64_sync_handler+0x60/0xac arch/arm64/kernel/entry-common.c:427 el1h_64_sync+0x64/0x68 arch/arm64/kernel/entry.S:586 io_poll_remove_entry io_uring/poll.c:182 [inline] io_poll_remove_entries+0x358/0x598 io_uring/poll.c:220 __io_arm_poll_handler+0x4e4/0x7f4 io_uring/poll.c:603 io_arm_poll_handler+0x5b8/0xc74 io_uring/poll.c:734 io_queue_async+0x90/0x4e4 io_uring/io_uring.c:2057 io_queue_sqe io_uring/io_uring.c:2088 [inline] io_req_task_submit+0x18c/0x218 io_uring/io_uring.c:1425 io_poll_task_func+0xad0/0xdc4 handle_tw_list io_uring/io_uring.c:1184 [inline] tctx_task_work+0x304/0xe68 io_uring/io_uring.c:1246 task_work_run+0x240/0x2f0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x2180/0x3c90 arch/arm64/kernel/signal.c:1302 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008 Mem abort info: ESR = 0x0000000096000006 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x06: level 2 translation fault Data abort info: ISV = 0, ISS = 0x00000006 CM = 0, WnR = 0 user pgtable: 4k pages, 48-bit VAs, pgdp=000000010e20b000 [0000000000000008] pgd=080000010e208003, p4d=080000010e208003, pud=080000010e48a003, pmd=0000000000000000 Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 5944 Comm: syz-executor632 Tainted: G B W 6.3.0-rc1-syzkaller-gfe15c26ee26e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : io_poll_remove_entry io_uring/poll.c:182 [inline] pc : io_poll_remove_entries+0x358/0x598 io_uring/poll.c:220 lr : io_poll_remove_entry io_uring/poll.c:182 [inline] lr : io_poll_remove_entries+0x358/0x598 io_uring/poll.c:220 sp : ffff80001e277480 x29: ffff80001e277490 x28: ffff0000cae10b00 x27: 1fffe00019bf6720 x26: dfff800000000000 x25: 0000000000000000 x24: 0000000000000000 x23: ffff0000cdfb3944 x22: 0000000000000000 x21: ffff0000cae10b08 x20: 0000000000000001 x19: 0000000000000008 x18: 1fffe000368951b6 x17: ffff800015cdd000 x16: ffff800012461004 x15: ffff0001b44a8dbc x14: ffff0001b44a8db8 x13: 1fffe000368951b6 x12: 0000000000000001 x11: ff808000081bc408 x10: 0000000000000000 x9 : 0000000000000000 x8 : 0000000000000000 x7 : 1fffe000368951b7 x6 : ffff80000828dc14 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff8000081bc3c4 x2 : 0000000000000001 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: io_poll_remove_entry io_uring/poll.c:182 [inline] io_poll_remove_entries+0x358/0x598 io_uring/poll.c:220 __io_arm_poll_handler+0x4e4/0x7f4 io_uring/poll.c:603 io_arm_poll_handler+0x5b8/0xc74 io_uring/poll.c:734 io_queue_async+0x90/0x4e4 io_uring/io_uring.c:2057 io_queue_sqe io_uring/io_uring.c:2088 [inline] io_req_task_submit+0x18c/0x218 io_uring/io_uring.c:1425 io_poll_task_func+0xad0/0xdc4 handle_tw_list io_uring/io_uring.c:1184 [inline] tctx_task_work+0x304/0xe68 io_uring/io_uring.c:1246 task_work_run+0x240/0x2f0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x2180/0x3c90 arch/arm64/kernel/signal.c:1302 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 Code: 52800101 91002313 aa1303e0 977a7554 (c8dffe74) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: 52800101 mov w1, #0x8 // #8 4: 91002313 add x19, x24, #0x8 8: aa1303e0 mov x0, x19 c: 977a7554 bl 0xfffffffffde9d55c * 10: c8dffe74 ldar x20, [x19] <-- trapping instruction