general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] CPU: 1 PID: 11632 Comm: syz-executor.2 Not tainted 6.9.0-rc6-syzkaller-01785-g628bc3e5a1be #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:nf_tproxy_laddr4+0xb7/0x340 net/ipv4/netfilter/nf_tproxy_ipv4.c:62 Code: 89 c5 31 ff 89 c6 e8 68 95 8b f7 85 ed 0f 84 ab 01 00 00 e8 1b 91 8b f7 eb 05 e8 14 91 8b f7 48 83 c3 18 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 da 8a f0 f7 48 8b 1b e8 12 6b 78 RSP: 0018:ffffc90000a08318 EFLAGS: 00010206 RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff888063e2da00 RDX: 0000000080000100 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 0000000000000001 R08: ffffffff8a0a9958 R09: 0000000000000001 R10: 0000000000000002 R11: ffff888063e2da00 R12: 00000000bb1414ac R13: 0000000000000000 R14: 00000000bb1414ac R15: dffffc0000000000 FS: 0000555561f0b480(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3c79cd56c6 CR3: 0000000067104000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nft_tproxy_eval_v4 net/netfilter/nft_tproxy.c:56 [inline] nft_tproxy_eval+0xa9a/0x1a00 net/netfilter/nft_tproxy.c:168 expr_call_ops_eval net/netfilter/nf_tables_core.c:240 [inline] nft_do_chain+0x4ad/0x1da0 net/netfilter/nf_tables_core.c:288 nft_do_chain_inet+0x418/0x6b0 net/netfilter/nft_chain_filter.c:161 nf_hook_entry_hookfn include/linux/netfilter.h:154 [inline] nf_hook_slow+0xc3/0x220 net/netfilter/core.c:626 nf_hook include/linux/netfilter.h:269 [inline] NF_HOOK+0x29e/0x450 include/linux/netfilter.h:312 __netif_receive_skb_one_core net/core/dev.c:5625 [inline] __netif_receive_skb+0x2bf/0x650 net/core/dev.c:5739 process_backlog+0x391/0x7d0 net/core/dev.c:6068 __napi_poll+0xcb/0x490 net/core/dev.c:6722 napi_poll net/core/dev.c:6791 [inline] net_rx_action+0x7bb/0x10a0 net/core/dev.c:6907 __do_softirq+0x2c6/0x980 kernel/softirq.c:554 invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu+0xf2/0x1c0 kernel/softirq.c:633 irq_exit_rcu+0x9/0x30 kernel/softirq.c:645 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:lock_acquire+0xc/0x550 kernel/locking/lockdep.c:5722 Code: c0 c3 cc cc cc cc 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 55 48 89 e5 41 57 41 56 <41> 55 41 54 53 48 83 e4 e0 48 81 ec 20 01 00 00 4c 89 4c 24 28 4c RSP: 0018:ffffc900112bfd48 EFLAGS: 00000246 RAX: ffffffff81e44a6c RBX: ffff888063e2df40 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88807afd4da0 RBP: ffffc900112bfd58 R08: 0000000000000001 R09: 0000000000000000 R10: ffffc900112bfe40 R11: fffff52002257fcc R12: dffffc0000000000 R13: ffffc900112bffd8 R14: ffffffff81e44a7a R15: 1ffff1100c7c5be8 __might_fault+0xc6/0x120 mm/memory.c:6220 clear_rseq_cs kernel/rseq.c:257 [inline] rseq_ip_fixup kernel/rseq.c:291 [inline] __rseq_handle_notify_resume+0x63a/0x14e0 kernel/rseq.c:329 rseq_handle_notify_resume include/linux/rseq.h:38 [inline] resume_user_mode_work include/linux/resume_user_mode.h:62 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x114/0x370 kernel/entry/common.c:218 do_syscall_64+0x102/0x240 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f773b0a9175 Code: 24 0c 89 3c 24 48 89 4c 24 18 e8 f6 b9 ff ff 4c 8b 54 24 18 48 8b 54 24 10 41 89 c0 8b 74 24 0c 8b 3c 24 b8 e6 00 00 00 0f 05 <44> 89 c7 48 89 04 24 e8 4f ba ff ff 48 8b 04 24 48 83 c4 28 f7 d8 RSP: 002b:00007ffea2ea11d0 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6 RAX: 0000000000000000 RBX: 0000000000000038 RCX: 00007f773b0a9175 RDX: 00007ffea2ea1210 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007ffea2ea129c R08: 0000000000000000 R09: 00007f773bd250b0 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000032 R13: 00000000000344e1 R14: 00000000000342b6 R15: 0000000000000014 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:nf_tproxy_laddr4+0xb7/0x340 net/ipv4/netfilter/nf_tproxy_ipv4.c:62 Code: 89 c5 31 ff 89 c6 e8 68 95 8b f7 85 ed 0f 84 ab 01 00 00 e8 1b 91 8b f7 eb 05 e8 14 91 8b f7 48 83 c3 18 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 da 8a f0 f7 48 8b 1b e8 12 6b 78 RSP: 0018:ffffc90000a08318 EFLAGS: 00010206 RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff888063e2da00 RDX: 0000000080000100 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 0000000000000001 R08: ffffffff8a0a9958 R09: 0000000000000001 R10: 0000000000000002 R11: ffff888063e2da00 R12: 00000000bb1414ac R13: 0000000000000000 R14: 00000000bb1414ac R15: dffffc0000000000 FS: 0000555561f0b480(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3c79cd56c6 CR3: 0000000067104000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 89 c5 mov %eax,%ebp 2: 31 ff xor %edi,%edi 4: 89 c6 mov %eax,%esi 6: e8 68 95 8b f7 call 0xf78b9573 b: 85 ed test %ebp,%ebp d: 0f 84 ab 01 00 00 je 0x1be 13: e8 1b 91 8b f7 call 0xf78b9133 18: eb 05 jmp 0x1f 1a: e8 14 91 8b f7 call 0xf78b9133 1f: 48 83 c3 18 add $0x18,%rbx 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 df mov %rbx,%rdi 34: e8 da 8a f0 f7 call 0xf7f08b13 39: 48 8b 1b mov (%rbx),%rbx 3c: e8 .byte 0xe8 3d: 12 6b 78 adc 0x78(%rbx),%ch