ci2 starts bisection 2023-03-04 22:30:40.606662961 +0000 UTC m=+267655.545352309 bisecting fixing commit since c73b4619ad86a2a29fc998e950e98bcdfa2f6d8f building syzkaller on ab32d50881df9f96f2af301aadca62ad00b7e099 ensuring issue is reproducible on original commit c73b4619ad86a2a29fc998e950e98bcdfa2f6d8f testing commit c73b4619ad86a2a29fc998e950e98bcdfa2f6d8f gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 84d9c3bd8e8ecf629a154bfc5f175dda56a5d68e05b96141d1b80c929258633c all runs: crashed: KASAN: stack-out-of-bounds Read in __xfrm_dst_hash testing current HEAD 5448b2fda85f2d90de03f053226f721ba2f7e731 testing commit 5448b2fda85f2d90de03f053226f721ba2f7e731 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 8e8f042774a32ff2afbb07f54d883e4f95058ead147396a4dbea6f9d3318e061 all runs: crashed: KASAN: stack-out-of-bounds Read in __xfrm_dst_hash revisions tested: 2, total time: 21m51.072593282s (build: 13m17.80628204s, test: 6m10.709569949s) the crash still happens on HEAD commit msg: Merge 5.15.94 into android13-5.15-lts crash: KASAN: stack-out-of-bounds Read in __xfrm_dst_hash ================================================================== 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+0x3dd/0x4d0 net/xfrm/xfrm_hash.h:95 Read of size 4 at addr ffffc900001d0ab8 by task syz-executor.0/391 CPU: 1 PID: 391 Comm: syz-executor.0 Not tainted 5.15.94-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x105/0x148 lib/dump_stack.c:106 print_address_description+0x87/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0x179/0x1c0 mm/kasan/report.c:444 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 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+0x3dd/0x4d0 net/xfrm/xfrm_hash.h:95 xfrm_dst_hash net/xfrm/xfrm_state.c:63 [inline] xfrm_state_find+0x2fb/0x2c80 net/xfrm/xfrm_state.c:1092 xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2393 [inline] xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:2438 [inline] xfrm_resolve_and_create_bundle+0x57c/0x28e0 net/xfrm/xfrm_policy.c:2731 xfrm_bundle_lookup net/xfrm/xfrm_policy.c:2966 [inline] xfrm_lookup_with_ifid+0x7dd/0x1900 net/xfrm/xfrm_policy.c:3097 xfrm_lookup net/xfrm/xfrm_policy.c:3194 [inline] xfrm_lookup_route+0x1d/0x120 net/xfrm/xfrm_policy.c:3205 ip_route_output_flow+0x1c3/0x2f0 net/ipv4/route.c:2889 ip_route_output_ports include/net/route.h:169 [inline] igmpv3_newpack+0x40a/0xf70 net/ipv4/igmp.c:369 add_grhead+0x70/0x310 net/ipv4/igmp.c:440 add_grec+0x104b/0x1340 net/ipv4/igmp.c:574 igmpv3_send_cr net/ipv4/igmp.c:711 [inline] igmp_ifc_timer_expire+0x735/0xd20 net/ipv4/igmp.c:810 call_timer_fn+0x28/0x1c0 kernel/time/timer.c:1427 expire_timers kernel/time/timer.c:1472 [inline] __run_timers+0x675/0x850 kernel/time/timer.c:1743 run_timer_softirq+0x4a/0xb0 kernel/time/timer.c:1756 __do_softirq+0x26d/0x5bf kernel/softirq.c:565 invoke_softirq kernel/softirq.c:425 [inline] __irq_exit_rcu+0x50/0xf0 kernel/softirq.c:647 irq_exit_rcu+0x9/0x10 kernel/softirq.c:659 sysvec_apic_timer_interrupt+0x9a/0xc0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:vprintk_emit+0xcc/0x250 kernel/printk/printk.c:2288 Code: e8 99 ec ff ff 41 89 c6 83 fb fe 49 bc 00 00 00 00 00 fc ff df 74 31 bf 01 00 00 00 e8 0d 3b f6 ff e8 58 15 00 00 85 c0 74 64 7f 01 00 00 bf 01 00 00 00 e8 95 3c f6 ff 65 8b 05 66 07 b5 7e RSP: 0018:ffffc900006c69c0 EFLAGS: 00000206 RAX: 0000000080000001 RBX: 0000000000000246 RCX: 0000000000000002 RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000001 RBP: ffffc900006c6a68 R08: dffffc0000000000 R09: 0000000000000003 R10: fffff520000d8d28 R11: dffffc0000000001 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000050 R15: ffffc900006c6a00 vprintk_default+0x18/0x20 kernel/printk/printk.c:2299 vprintk+0x49/0x50 kernel/printk/printk_safe.c:50 _printk+0xca/0x10a kernel/printk/printk.c:2309 __nla_validate_parse+0x2234/0x27f0 lib/nlattr.c:603 __nla_parse+0x27/0x30 lib/nlattr.c:688 nla_parse_nested_deprecated include/net/netlink.h:1231 [inline] __rtnl_newlink net/core/rtnetlink.c:3311 [inline] rtnl_newlink+0x54b/0x1b30 net/core/rtnetlink.c:3510 rtnetlink_rcv_msg+0x5e8/0xa70 net/core/rtnetlink.c:5587 netlink_rcv_skb+0x1c7/0x3c0 net/netlink/af_netlink.c:2533 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:5605 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline] netlink_unicast+0x6eb/0x930 net/netlink/af_netlink.c:1356 netlink_sendmsg+0x7a2/0xba0 net/netlink/af_netlink.c:1952 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg net/socket.c:724 [inline] ____sys_sendmsg+0x492/0x790 net/socket.c:2412 ___sys_sendmsg+0x215/0x2a0 net/socket.c:2466 __sys_sendmsg net/socket.c:2495 [inline] __do_sys_sendmsg net/socket.c:2504 [inline] __se_sys_sendmsg+0x162/0x1f0 net/socket.c:2502 __x64_sys_sendmsg+0x76/0x80 net/socket.c:2502 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fde261c90a9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fde25d3c168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fde262e8f80 RCX: 00007fde261c90a9 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 00007fde26224ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc15d6b4ef R14: 00007fde25d3c300 R15: 0000000000022000 Memory state around the buggy address: ffffc900001d0980: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900001d0a00: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 >ffffc900001d0a80: 00 00 00 00 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 ^ ffffc900001d0b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900001d0b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: e8 99 ec ff ff callq 0xffffec9e 5: 41 89 c6 mov %eax,%r14d 8: 83 fb fe cmp $0xfffffffe,%ebx b: 49 bc 00 00 00 00 00 movabs $0xdffffc0000000000,%r12 12: fc ff df 15: 74 31 je 0x48 17: bf 01 00 00 00 mov $0x1,%edi 1c: e8 0d 3b f6 ff callq 0xfff63b2e 21: e8 58 15 00 00 callq 0x157e 26: 85 c0 test %eax,%eax 28: 74 64 je 0x8e * 2a: e8 7f 01 00 00 callq 0x1ae <-- trapping instruction 2f: bf 01 00 00 00 mov $0x1,%edi 34: e8 95 3c f6 ff callq 0xfff63cce 39: 65 8b 05 66 07 b5 7e mov %gs:0x7eb50766(%rip),%eax # 0x7eb507a6