================================================================== BUG: KASAN: null-ptr-deref in io_poll_remove_entry io_uring/poll.c:180 [inline] BUG: KASAN: null-ptr-deref in io_poll_remove_entries+0x358/0x598 io_uring/poll.c:218 Read of size 8 at addr 0000000000000008 by task syz-executor.4/5226 CPU: 0 PID: 5226 Comm: syz-executor.4 Not tainted 6.1.21-syzkaller #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+0x108/0x170 lib/dump_stack.c:106 print_report+0xe4/0x4c0 mm/kasan/report.c:398 kasan_report+0xd4/0x130 mm/kasan/report.c:495 kasan_check_range+0x264/0x2a4 mm/kasan/generic.c:189 __kasan_check_read+0x2c/0x3c mm/kasan/shadow.c:31 io_poll_remove_entry io_uring/poll.c:180 [inline] io_poll_remove_entries+0x358/0x598 io_uring/poll.c:218 __io_arm_poll_handler+0x4e4/0x7f4 io_uring/poll.c:619 io_arm_poll_handler+0x5b8/0xad8 io_uring/poll.c:750 io_queue_async+0x90/0x704 io_uring/io_uring.c:1877 io_queue_sqe io_uring/io_uring.c:1908 [inline] io_req_task_submit+0x160/0x1d0 io_uring/io_uring.c:1251 handle_tw_list+0x278/0x444 io_uring/io_uring.c:1035 tctx_task_work+0x108/0x814 io_uring/io_uring.c:1087 task_work_run+0x240/0x2f0 kernel/task_work.c:179 get_signal+0x1394/0x158c kernel/signal.c:2635 do_signal arch/arm64/kernel/signal.c:1076 [inline] do_notify_resume+0x3ac/0x3470 arch/arm64/kernel/signal.c:1129 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+0x18c/0x190 arch/arm64/kernel/entry.S:581 ================================================================== BUG: sleeping function called from invalid context at arch/arm64/mm/fault.c:603 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 5226, name: syz-executor.4 preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 INFO: lockdep is turned off. CPU: 1 PID: 5226 Comm: syz-executor.4 Tainted: G B 6.1.21-syzkaller #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+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 __might_resched+0x37c/0x4d8 kernel/sched/core.c:9938 __might_sleep+0x90/0xe4 kernel/sched/core.c:9867 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:576 io_poll_remove_entry io_uring/poll.c:180 [inline] io_poll_remove_entries+0x358/0x598 io_uring/poll.c:218 __io_arm_poll_handler+0x4e4/0x7f4 io_uring/poll.c:619 io_arm_poll_handler+0x5b8/0xad8 io_uring/poll.c:750 io_queue_async+0x90/0x704 io_uring/io_uring.c:1877 io_queue_sqe io_uring/io_uring.c:1908 [inline] io_req_task_submit+0x160/0x1d0 io_uring/io_uring.c:1251 handle_tw_list+0x278/0x444 io_uring/io_uring.c:1035 tctx_task_work+0x108/0x814 io_uring/io_uring.c:1087 task_work_run+0x240/0x2f0 kernel/task_work.c:179 get_signal+0x1394/0x158c kernel/signal.c:2635 do_signal arch/arm64/kernel/signal.c:1076 [inline] do_notify_resume+0x3ac/0x3470 arch/arm64/kernel/signal.c:1129 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+0x18c/0x190 arch/arm64/kernel/entry.S:581 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=000000010dacf000 [0000000000000008] pgd=080000010f047003, p4d=080000010f047003, pud=08000001114a9003, pmd=0000000000000000 Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 5226 Comm: syz-executor.4 Tainted: G B W 6.1.21-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : io_poll_remove_entry io_uring/poll.c:180 [inline] pc : io_poll_remove_entries+0x358/0x598 io_uring/poll.c:218 lr : io_poll_remove_entry io_uring/poll.c:180 [inline] lr : io_poll_remove_entries+0x358/0x598 io_uring/poll.c:218 sp : ffff800023227420 x29: ffff800023227430 x28: ffff0000c81a2d00 x27: 1fffe0001b4fa348 x26: dfff800000000000 x25: 0000000000000000 x24: 0000000000000000 x23: ffff0000da7d1a84 x22: 0000000000000000 x21: ffff0000c81a2d08 x20: 0000000000000002 x19: 0000000000000008 x18: 1fffe000368bab76 x17: 0000000000000000 x16: ffff800012023a40 x15: 0000000000000000 x14: 0000000000000002 x13: 0000000000000001 x12: 0000000000040000 x11: 000000000003ffff x10: ffff800027187000 x9 : 0000000000000000 x8 : 0000000000000000 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff800023226c18 x4 : ffff800015662680 x3 : ffff8000081adf4c x2 : 0000000000000001 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: io_poll_remove_entry io_uring/poll.c:180 [inline] io_poll_remove_entries+0x358/0x598 io_uring/poll.c:218 __io_arm_poll_handler+0x4e4/0x7f4 io_uring/poll.c:619 io_arm_poll_handler+0x5b8/0xad8 io_uring/poll.c:750 io_queue_async+0x90/0x704 io_uring/io_uring.c:1877 io_queue_sqe io_uring/io_uring.c:1908 [inline] io_req_task_submit+0x160/0x1d0 io_uring/io_uring.c:1251 handle_tw_list+0x278/0x444 io_uring/io_uring.c:1035 tctx_task_work+0x108/0x814 io_uring/io_uring.c:1087 task_work_run+0x240/0x2f0 kernel/task_work.c:179 get_signal+0x1394/0x158c kernel/signal.c:2635 do_signal arch/arm64/kernel/signal.c:1076 [inline] do_notify_resume+0x3ac/0x3470 arch/arm64/kernel/signal.c:1129 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+0x18c/0x190 arch/arm64/kernel/entry.S:581 Code: 52800101 91002313 aa1303e0 977d10a0 (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: 977d10a0 bl 0xfffffffffdf4428c * 10: c8dffe74 ldar x20, [x19] <-- trapping instruction