================================================================== BUG: KASAN: stack-out-of-bounds in jhash2 include/linux/jhash.h:138 [inline] BUG: KASAN: stack-out-of-bounds in __xfrm6_addr_hash net/xfrm/xfrm_hash.h:16 [inline] BUG: KASAN: stack-out-of-bounds in __xfrm6_daddr_saddr_hash net/xfrm/xfrm_hash.h:29 [inline] BUG: KASAN: stack-out-of-bounds in __xfrm_dst_hash net/xfrm/xfrm_hash.h:95 [inline] BUG: KASAN: stack-out-of-bounds in xfrm_dst_hash net/xfrm/xfrm_state.c:64 [inline] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x677b/0x6df0 net/xfrm/xfrm_state.c:1159 Read of size 4 at addr ffffc90000007ad0 by task dhcpcd/4652 CPU: 0 PID: 4652 Comm: dhcpcd Not tainted 6.2.0-syzkaller-12485-gf3a2439f20d9 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 print_address_description.constprop.0+0x2c/0x3c0 mm/kasan/report.c:319 print_report mm/kasan/report.c:430 [inline] kasan_report+0x11c/0x130 mm/kasan/report.c:536 jhash2 include/linux/jhash.h:138 [inline] __xfrm6_addr_hash net/xfrm/xfrm_hash.h:16 [inline] __xfrm6_daddr_saddr_hash net/xfrm/xfrm_hash.h:29 [inline] __xfrm_dst_hash net/xfrm/xfrm_hash.h:95 [inline] xfrm_dst_hash net/xfrm/xfrm_state.c:64 [inline] xfrm_state_find+0x677b/0x6df0 net/xfrm/xfrm_state.c:1159 xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2467 [inline] xfrm_tmpl_resolve+0x2f3/0xd60 net/xfrm/xfrm_policy.c:2512 xfrm_resolve_and_create_bundle+0x123/0x22a0 net/xfrm/xfrm_policy.c:2805 xfrm_bundle_lookup net/xfrm/xfrm_policy.c:3040 [inline] xfrm_lookup_with_ifid+0x447/0x1db0 net/xfrm/xfrm_policy.c:3171 xfrm_lookup net/xfrm/xfrm_policy.c:3268 [inline] xfrm_lookup_route+0x3a/0x200 net/xfrm/xfrm_policy.c:3279 ip_route_output_flow+0x118/0x150 net/ipv4/route.c:2880 ip_route_output_ports include/net/route.h:180 [inline] igmpv3_newpack+0x29d/0x11a0 net/ipv4/igmp.c:369 add_grhead+0x266/0x300 net/ipv4/igmp.c:440 add_grec+0xea5/0x1100 net/ipv4/igmp.c:574 igmpv3_send_cr net/ipv4/igmp.c:711 [inline] igmp_ifc_timer_expire+0x636/0xff0 net/ipv4/igmp.c:810 call_timer_fn+0x1da/0x800 kernel/time/timer.c:1700 expire_timers+0x2c6/0x5e0 kernel/time/timer.c:1751 __run_timers kernel/time/timer.c:2022 [inline] __run_timers kernel/time/timer.c:1995 [inline] run_timer_softirq+0x326/0x910 kernel/time/timer.c:2035 __do_softirq+0x2e3/0xae3 kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x114/0x190 kernel/softirq.c:650 irq_exit_rcu+0x9/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x97/0xc0 arch/x86/kernel/apic/apic.c:1107 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 RIP: 0010:check_kcov_mode kernel/kcov.c:173 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x25/0x70 kernel/kcov.c:207 Code: 00 00 00 66 90 f3 0f 1e fa 65 8b 05 1d b6 7e 7e 89 c1 48 8b 34 24 81 e1 00 01 00 00 65 48 8b 14 25 80 b8 03 00 a9 00 01 ff 00 <74> 0e 85 c9 74 35 8b 82 74 15 00 00 85 c0 74 2b 8b 82 50 15 00 00 RSP: 0018:ffffc9000356f268 EFLAGS: 00000246 RAX: 0000000080000000 RBX: 0000000000000410 RCX: 0000000000000000 RDX: ffff888026748000 RSI: ffffffff880f7b3e RDI: 0000000000000005 RBP: ffff888028e42c80 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000094001 R12: 0000000000000008 R13: ffff888026b02410 R14: 0000000000000000 R15: ffffc9000356f3d8 skb_put+0xbe/0x1a0 net/core/skbuff.c:2311 __nla_reserve+0x27/0xc0 lib/nlattr.c:874 __nla_put+0x27/0x40 lib/nlattr.c:1008 nla_put+0xfd/0x140 lib/nlattr.c:1067 nla_put_u32 include/net/netlink.h:1361 [inline] ctrl_fill_info+0x6ee/0xd70 net/netlink/genetlink.c:1123 ctrl_build_family_msg+0x59/0x90 net/netlink/genetlink.c:1247 ctrl_getfamily+0x342/0x540 net/netlink/genetlink.c:1323 genl_family_rcv_msg_doit.isra.0+0x1e6/0x2d0 net/netlink/genetlink.c:968 genl_family_rcv_msg net/netlink/genetlink.c:1048 [inline] genl_rcv_msg+0x4ff/0x7e0 net/netlink/genetlink.c:1065 netlink_rcv_skb+0x165/0x440 net/netlink/af_netlink.c:2574 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1076 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] netlink_unicast+0x547/0x7f0 net/netlink/af_netlink.c:1365 netlink_sendmsg+0x925/0xe30 net/netlink/af_netlink.c:1942 sock_sendmsg_nosec net/socket.c:722 [inline] sock_sendmsg+0xde/0x190 net/socket.c:745 ____sys_sendmsg+0x71c/0x900 net/socket.c:2504 ___sys_sendmsg+0x110/0x1b0 net/socket.c:2558 __sys_sendmsg+0xf7/0x1c0 net/socket.c:2587 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f2f93839163 Code: 64 89 02 48 c7 c0 ff ff ff ff eb b7 66 2e 0f 1f 84 00 00 00 00 00 90 64 8b 04 25 18 00 00 00 85 c0 75 14 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 55 c3 0f 1f 40 00 48 83 ec 28 89 54 24 1c 48 RSP: 002b:00007ffcad73da58 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000055a6d46d28c8 RCX: 00007f2f93839163 RDX: 0000000000000000 RSI: 00007ffcad73daa0 RDI: 0000000000000010 RBP: 00007ffcad751f68 R08: 0000000000000000 R09: 0000000000000000 R10: 00007ffcad7521b0 R11: 0000000000000246 R12: 0000000000000010 R13: 00007ffcad741b00 R14: 0000000000000000 R15: 000055a6d498b750 The buggy address belongs to the virtual mapping at [ffffc90000000000, ffffc90000009000) created by: map_irq_stack arch/x86/kernel/irq_64.c:48 [inline] irq_init_percpu_irqstack+0x1d0/0x320 arch/x86/kernel/irq_64.c:75 The buggy address belongs to the physical page: page:ffffea0002e60240 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xb9809 flags: 0xfff00000001000(reserved|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000001000 ffffea0002e60248 ffffea0002e60248 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffffc90000007980: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90000007a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 >ffffc90000007a80: f1 f1 00 00 00 00 00 00 00 00 f3 f3 f3 f3 00 00 ^ ffffc90000007b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90000007b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 ================================================================== ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 00 66 90 add %ah,-0x70(%rsi) 5: f3 0f 1e fa endbr64 9: 65 8b 05 1d b6 7e 7e mov %gs:0x7e7eb61d(%rip),%eax # 0x7e7eb62d 10: 89 c1 mov %eax,%ecx 12: 48 8b 34 24 mov (%rsp),%rsi 16: 81 e1 00 01 00 00 and $0x100,%ecx 1c: 65 48 8b 14 25 80 b8 mov %gs:0x3b880,%rdx 23: 03 00 25: a9 00 01 ff 00 test $0xff0100,%eax * 2a: 74 0e je 0x3a <-- trapping instruction 2c: 85 c9 test %ecx,%ecx 2e: 74 35 je 0x65 30: 8b 82 74 15 00 00 mov 0x1574(%rdx),%eax 36: 85 c0 test %eax,%eax 38: 74 2b je 0x65 3a: 8b 82 50 15 00 00 mov 0x1550(%rdx),%eax