ci2 starts bisection 2023-07-06 03:52:30.853488114 +0000 UTC m=+46056.893938749
bisecting fixing commit since c73b4619ad86a2a29fc998e950e98bcdfa2f6d8f
building syzkaller on ab32d50881df9f96f2af301aadca62ad00b7e099
ensuring issue is reproducible on original commit c73b4619ad86a2a29fc998e950e98bcdfa2f6d8f
testing commit c73b4619ad86a2a29fc998e950e98bcdfa2f6d8f gcc
compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2
kernel signature: 9f42e2e32aed6642f0b47a2c10cb0fb139cd82b3a3ee1b7c974f49d16e6151db
all runs: crashed: KASAN: stack-out-of-bounds Read in xfrm_state_find
representative crash: KASAN: stack-out-of-bounds Read in xfrm_state_find, types: [KASAN]
check whether we can drop unnecessary instrumentation
disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed
testing commit c73b4619ad86a2a29fc998e950e98bcdfa2f6d8f gcc
compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2
kernel signature: 3955b8e031a6089baa99f19baa3e46745b2fb28ea3d3db4ceef12c496e6a8cd5
all runs: crashed: KASAN: stack-out-of-bounds Read in xfrm_state_find
representative crash: KASAN: stack-out-of-bounds Read in xfrm_state_find, types: [KASAN]
the bug reproduces without the instrumentation
disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed
testing current HEAD 879959450ec776f8dde010ed124876a4fe0bbb69
testing commit 879959450ec776f8dde010ed124876a4fe0bbb69 gcc
compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2
kernel signature: c761eda925df08e60597a491c71c573acb42d927a0cf70657106a632c7dbf21e
all runs: crashed: KASAN: stack-out-of-bounds Read in xfrm_state_find
representative crash: KASAN: stack-out-of-bounds Read in xfrm_state_find, types: [KASAN]
crash still not fixed/happens on the oldest tested release
revisions tested: 3, total time: 1h13m8.849371189s (build: 56m38.633945545s, test: 14m51.780123405s)
crash still not fixed on HEAD or HEAD had kernel test errors
commit msg: Revert "gpio: Allow per-parent interrupt data"
crash: KASAN: stack-out-of-bounds Read in xfrm_state_find
==================================================================
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:63 [inline]
BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x4f95/0x5b20 net/xfrm/xfrm_state.c:1092
Read of size 4 at addr ffffc90000007b88 by task swapper/0/0
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.15.119-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x38/0x49 lib/dump_stack.c:106
print_address_description.constprop.0+0x24/0x160 mm/kasan/report.c:248
__kasan_report mm/kasan/report.c:427 [inline]
kasan_report.cold+0x82/0xdb 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 net/xfrm/xfrm_hash.h:95 [inline]
xfrm_dst_hash net/xfrm/xfrm_state.c:63 [inline]
xfrm_state_find+0x4f95/0x5b20 net/xfrm/xfrm_state.c:1092
xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2393 [inline]
xfrm_tmpl_resolve+0x271/0xb40 net/xfrm/xfrm_policy.c:2438
xfrm_resolve_and_create_bundle+0x125/0x20c0 net/xfrm/xfrm_policy.c:2731
xfrm_bundle_lookup net/xfrm/xfrm_policy.c:2966 [inline]
xfrm_lookup_with_ifid+0x408/0x1c50 net/xfrm/xfrm_policy.c:3097
xfrm_lookup net/xfrm/xfrm_policy.c:3194 [inline]
xfrm_lookup_route+0x1f/0x150 net/xfrm/xfrm_policy.c:3205
ip_route_output_flow+0x259/0x2d0 net/ipv4/route.c:2889
ip_route_output_ports include/net/route.h:169 [inline]
igmpv3_newpack+0x297/0xdd0 net/ipv4/igmp.c:369
add_grhead+0x235/0x320 net/ipv4/igmp.c:440
add_grec+0xbef/0xec0 net/ipv4/igmp.c:574
igmpv3_send_cr net/ipv4/igmp.c:711 [inline]
igmp_ifc_timer_expire+0x46e/0xb10 net/ipv4/igmp.c:810
call_timer_fn+0x28/0x190 kernel/time/timer.c:1427
expire_timers kernel/time/timer.c:1472 [inline]
__run_timers.part.0+0x45c/0x840 kernel/time/timer.c:1743
__run_timers kernel/time/timer.c:1721 [inline]
run_timer_softirq+0x9c/0x180 kernel/time/timer.c:1756
__do_softirq+0x1c1/0x5c8 kernel/softirq.c:565
invoke_softirq kernel/softirq.c:425 [inline]
__irq_exit_rcu kernel/softirq.c:647 [inline]
irq_exit_rcu+0x64/0x110 kernel/softirq.c:659
sysvec_apic_timer_interrupt+0x9d/0xc0 arch/x86/kernel/apic/apic.c:1096
asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:native_irq_disable arch/x86/include/asm/irqflags.h:40 [inline]
RIP: 0010:arch_local_irq_disable arch/x86/include/asm/irqflags.h:75 [inline]
RIP: 0010:acpi_safe_halt drivers/acpi/processor_idle.c:110 [inline]
RIP: 0010:acpi_idle_do_entry+0x18e/0x200 drivers/acpi/processor_idle.c:570
Code: 4c 89 e2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 75 5a 49 8b 04 24 a8 08 75 c5 66 90 0f 00 2d 44 42 b6 00 fb f4 eb b7 4c 89 e7 e8 17 f6 ff ff 4c 8b 65 f8 c9 c3 e8 1c a6 61 fd
RSP: 0018:ffffffff85807c90 EFLAGS: 00000246
RAX: 0000000000004000 RBX: ffff8881065d7065 RCX: ffffffff84322b14
RDX: 1ffffffff0b03448 RSI: 0000000000000008 RDI: ffffffff8581a240
RBP: ffffffff85807c98 R08: 0000000000000000 R09: ffffffff8581a247
R10: fffffbfff0b03448 R11: 0000000000000001 R12: ffffffff8581a240
R13: ffff8881047af000 R14: ffff8881047af004 R15: ffff8881065d7064
acpi_idle_enter+0x2aa/0x460 drivers/acpi/processor_idle.c:705
cpuidle_enter_state+0x189/0xe00 drivers/cpuidle/cpuidle.c:249
cpuidle_enter+0x4a/0xa0 drivers/cpuidle/cpuidle.c:364
call_cpuidle kernel/sched/idle.c:158 [inline]
cpuidle_idle_call kernel/sched/idle.c:239 [inline]
do_idle+0x3f7/0x5a0 kernel/sched/idle.c:306
cpu_startup_entry+0x1b/0x20 kernel/sched/idle.c:403
rest_init+0x10e/0x140 init/main.c:736
arch_call_rest_init+0x9/0xc init/main.c:889
start_kernel+0x36b/0x388 init/main.c:1144
x86_64_start_reservations+0x29/0x2b arch/x86/kernel/head64.c:527
x86_64_start_kernel+0x93/0x97 arch/x86/kernel/head64.c:508
secondary_startup_64_no_verify+0xb0/0xbb
Memory state around the buggy address:
ffffc90000007a80: 00 00 f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00
ffffc90000007b00: 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00
>ffffc90000007b80: 00 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00
^
ffffc90000007c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffffc90000007c80: 00 00 00 00 00 f1 f1 f1 f1 00 f3 f3 f3 00 00 00
==================================================================
----------------
Code disassembly (best guess):
0: 4c 89 e2 mov %r12,%rdx
3: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
a: fc ff df
d: 48 c1 ea 03 shr $0x3,%rdx
11: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1)
15: 75 5a jne 0x71
17: 49 8b 04 24 mov (%r12),%rax
1b: a8 08 test $0x8,%al
1d: 75 c5 jne 0xffffffe4
1f: 66 90 xchg %ax,%ax
21: 0f 00 2d 44 42 b6 00 verw 0xb64244(%rip) # 0xb6426c
28: fb sti
29: f4 hlt
* 2a: fa cli <-- trapping instruction
2b: eb b7 jmp 0xffffffe4
2d: 4c 89 e7 mov %r12,%rdi
30: e8 17 f6 ff ff callq 0xfffff64c
35: 4c 8b 65 f8 mov -0x8(%rbp),%r12
39: c9 leaveq
3a: c3 retq
3b: e8 1c a6 61 fd callq 0xfd61a65c