ci2 starts bisection 2023-05-04 04:58:37.225379896 +0000 UTC m=+2070.933351151
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: ca38a65c0388d7ee58a1b8605bd1b9518bd8d4a8ca39427749f231f0f834b5ae
all runs: crashed: KASAN: stack-out-of-bounds Read in __xfrm_dst_hash
testing current HEAD 19c0ed55a470d1cd766484abab04871b648560fb
testing commit 19c0ed55a470d1cd766484abab04871b648560fb gcc
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
kernel signature: c38e81a554a9c1260b23a3a4e3d647b5d9e4201b751de05106240f0ec05f40c5
all runs: crashed: KASAN: stack-out-of-bounds Read in __xfrm_dst_hash
revisions tested: 2, total time: 38m56.643916135s (build: 27m18.012220216s, test: 11m3.952711833s)
the crash still happens on HEAD
commit msg: Merge 5.15.106 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 ffffc90000007ab8 by task syz-executor.0/359
CPU: 0 PID: 359 Comm: syz-executor.0 Not tainted 5.15.106-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/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:console_lock_spinning_disable_and_check kernel/printk/printk.c:1840 [inline]
RIP: 0010:console_unlock+0x97d/0xcc0 kernel/printk/printk.c:2763
Code: e8 08 ce 08 03 84 db 74 07 c6 05 bd fe f2 04 00 e8 68 4a 00 00 f7 44 24 30 00 02 00 00 4c 8d a4 24 d0 01 00 00 74 01 fb 84 db <0f> 94 c0 22 44 24 07 3c 01 0f 84 00 f9 ff ff 0f b6 c3 85 c0 0f 84
RSP: 0018:ffffc900006d6740 EFLAGS: 00000202
RAX: 0000000000000001 RBX: 0000000000000001 RCX: 0000000000000002
RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000001
RBP: ffffc900006d69b0 R08: dffffc0000000000 R09: 0000000000000003
R10: fffff520000dacd8 R11: dffffc0000000001 R12: ffffc900006d6910
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000068
vprintk_emit+0xd1/0x250 kernel/printk/printk.c:2288
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:0x7fdc0e7200a9
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:00007fdc0e293168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fdc0e83ff80 RCX: 00007fdc0e7200a9
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000003
RBP: 00007fdc0e77bae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffa0df1aff R14: 00007fdc0e293300 R15: 0000000000022000
Memory state around the buggy address:
ffffc90000007980: f3 f3 f3 f3 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 f1 f1 f1 f1
>ffffc90000007a80: 00 00 00 00 00 00 00 f3 f3 f3 f3 f3 00 00 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 00 00 00
==================================================================
----------------
Code disassembly (best guess):
0: e8 08 ce 08 03 callq 0x308ce0d
5: 84 db test %bl,%bl
7: 74 07 je 0x10
9: c6 05 bd fe f2 04 00 movb $0x0,0x4f2febd(%rip) # 0x4f2fecd
10: e8 68 4a 00 00 callq 0x4a7d
15: f7 44 24 30 00 02 00 testl $0x200,0x30(%rsp)
1c: 00
1d: 4c 8d a4 24 d0 01 00 lea 0x1d0(%rsp),%r12
24: 00
25: 74 01 je 0x28
27: fb sti
28: 84 db test %bl,%bl
* 2a: 0f 94 c0 sete %al <-- trapping instruction
2d: 22 44 24 07 and 0x7(%rsp),%al
31: 3c 01 cmp $0x1,%al
33: 0f 84 00 f9 ff ff je 0xfffff939
39: 0f b6 c3 movzbl %bl,%eax
3c: 85 c0 test %eax,%eax
3e: 0f .byte 0xf
3f: 84 .byte 0x84