Oops: general protection fault, probably for non-canonical address 0xdffffc0000000043: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000218-0x000000000000021f] CPU: 0 UID: 0 PID: 5908 Comm: syz.2.169 Not tainted 6.10.0-rc7-next-20240712-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:xskq_prod_submit net/xdp/xsk_queue.h:436 [inline] RIP: 0010:xsk_flush net/xdp/xsk.c:331 [inline] RIP: 0010:__xsk_map_flush+0x95/0x2b0 net/xdp/xsk.c:393 Code: 24 10 49 8d 5f e8 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 d9 ea 81 f6 48 8b 1b 48 8d 7b 08 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 72 01 00 00 8b 6b 08 48 83 c3 10 48 89 RSP: 0018:ffffc90000007ae8 EFLAGS: 00010203 RAX: 0000000000000043 RBX: 0000000000000215 RCX: ffff888021d2da00 RDX: 0000000080000100 RSI: 0000000000000010 RDI: 000000000000021d RBP: dffffc0000000000 R08: ffffffff896d0c9a R09: 1ffffffff1f5ffad R10: dffffc0000000000 R11: fffffbfff1f5ffae R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000010 R15: ffffc90014b97900 FS: 00007f52731ff6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002006e000 CR3: 000000006077a000 CR4: 00000000003506f0 DR0: fffffffffffffffc DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: xdp_do_check_flushed+0x18e/0x240 net/core/filter.c:4308 __napi_poll+0xe4/0x490 net/core/dev.c:6774 napi_poll net/core/dev.c:6840 [inline] net_rx_action+0x89b/0x1240 net/core/dev.c:6962 handle_softirqs+0x2c4/0x970 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu+0xf4/0x1c0 kernel/softirq.c:637 irq_exit_rcu+0x9/0x30 kernel/softirq.c:649 common_interrupt+0xaa/0xd0 arch/x86/kernel/irq.c:278 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693 RIP: 0010:__handle_mm_fault mm/memory.c:5640 [inline] RIP: 0010:handle_mm_fault+0xeb8/0x19a0 mm/memory.c:5837 Code: 3e 93 b1 ff 41 bd 01 00 00 00 44 8b 74 24 04 e9 10 06 00 00 4c 89 f0 48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df 42 80 3c 28 00 <4c> 8b 7c 24 20 74 08 4c 89 f7 e8 49 19 19 00 49 8b 1e 48 89 de 48 RSP: 0018:ffffc90014b97760 EFLAGS: 00000246 RAX: 1ffff1100fd00f00 RBX: 0000000000000000 RCX: ffff888021d2da00 RDX: ffffc90009899000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90014b979b8 R08: ffffffff81e235e1 R09: 0000000000000000 R10: ffffc90014b978f0 R11: fffff52002972f26 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff88807e807800 R15: 0000000000000000 do_user_addr_fault arch/x86/mm/fault.c:1389 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x2b9/0x8c0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0010:rep_movs_alternative+0x4a/0x70 arch/x86/lib/copy_user_64.S:71 Code: 75 f1 c3 cc cc cc cc 66 0f 1f 84 00 00 00 00 00 48 8b 06 48 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 df 83 f9 08 73 e8 eb c9 a4 c3 cc cc cc cc 48 89 c8 48 c1 e9 03 83 e0 07 f3 48 a5 89 c1 RSP: 0018:ffffc90014b97ad0 EFLAGS: 00050246 RAX: ffffffff84b11e01 RBX: 000000002006e040 RCX: 0000000000000040 RDX: 0000000000000000 RSI: ffffc90014b97b60 RDI: 000000002006e000 RBP: ffffc90014b97c10 R08: ffffc90014b97b9f R09: 1ffff92002972f73 R10: dffffc0000000000 R11: fffff52002972f74 R12: 0000000000000040 R13: 000000000003a580 R14: 000000002006e000 R15: ffffc90014b97b60 copy_user_generic arch/x86/include/asm/uaccess_64.h:110 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:131 [inline] _inline_copy_to_user include/linux/uaccess.h:181 [inline] _copy_to_user+0x86/0xb0 lib/usercopy.c:26 copy_to_user include/linux/uaccess.h:209 [inline] rng_dev_read+0x3be/0x6d0 drivers/char/hw_random/core.c:251 do_loop_readv_writev fs/read_write.c:761 [inline] vfs_readv+0x6c2/0xa90 fs/read_write.c:934 do_preadv fs/read_write.c:1049 [inline] __do_sys_preadv fs/read_write.c:1099 [inline] __se_sys_preadv fs/read_write.c:1094 [inline] __x64_sys_preadv+0x1c7/0x2d0 fs/read_write.c:1094 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5273775bd9 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f52731ff048 EFLAGS: 00000246 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 00007f5273903f60 RCX: 00007f5273775bd9 RDX: 0000000000000001 RSI: 0000000020000240 RDI: 0000000000000006 RBP: 00007f52737e4e60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f5273903f60 R15: 00007ffe218a1b88 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:xskq_prod_submit net/xdp/xsk_queue.h:436 [inline] RIP: 0010:xsk_flush net/xdp/xsk.c:331 [inline] RIP: 0010:__xsk_map_flush+0x95/0x2b0 net/xdp/xsk.c:393 Code: 24 10 49 8d 5f e8 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 d9 ea 81 f6 48 8b 1b 48 8d 7b 08 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 72 01 00 00 8b 6b 08 48 83 c3 10 48 89 RSP: 0018:ffffc90000007ae8 EFLAGS: 00010203 RAX: 0000000000000043 RBX: 0000000000000215 RCX: ffff888021d2da00 RDX: 0000000080000100 RSI: 0000000000000010 RDI: 000000000000021d RBP: dffffc0000000000 R08: ffffffff896d0c9a R09: 1ffffffff1f5ffad R10: dffffc0000000000 R11: fffffbfff1f5ffae R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000010 R15: ffffc90014b97900 FS: 00007f52731ff6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002006e000 CR3: 000000006077a000 CR4: 00000000003506f0 DR0: fffffffffffffffc DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 24 10 and $0x10,%al 2: 49 8d 5f e8 lea -0x18(%r15),%rbx 6: 48 89 d8 mov %rbx,%rax 9: 48 c1 e8 03 shr $0x3,%rax d: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) 12: 74 08 je 0x1c 14: 48 89 df mov %rbx,%rdi 17: e8 d9 ea 81 f6 call 0xf681eaf5 1c: 48 8b 1b mov (%rbx),%rbx 1f: 48 8d 7b 08 lea 0x8(%rbx),%rdi 23: 48 89 f8 mov %rdi,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 72 01 00 00 jne 0x1a9 37: 8b 6b 08 mov 0x8(%rbx),%ebp 3a: 48 83 c3 10 add $0x10,%rbx 3e: 48 rex.W 3f: 89 .byte 0x89