ci2 starts bisection 2023-12-24 10:49:43.853771857 +0000 UTC m=+154787.177657417
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.40
kernel signature: d2ef04c05d97002866251aedc03ff2dfbecc7f0c0889ffdbde437864a328f021
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 [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed
testing commit c73b4619ad86a2a29fc998e950e98bcdfa2f6d8f gcc
compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40
kernel signature: 3509589b5bfcc8e0623e582f81e9deb2383dcc0fa546a6d8c438f45961e15d58
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 [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed
kconfig minimization: base=4920 full=6157 leaves diff=251
split chunks (needed=false): <251>
split chunk #0 of len 251 into 5 parts
testing without sub-chunk 1/5
disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed
testing commit c73b4619ad86a2a29fc998e950e98bcdfa2f6d8f gcc
compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40
kernel signature: ab1b28c55e0c6faf2d20ed9f9299c830c7678000fd5ce4f77c18b6c88c54acfa
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 chunk can be dropped
testing without sub-chunk 2/5
disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed
testing commit c73b4619ad86a2a29fc998e950e98bcdfa2f6d8f gcc
compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40
kernel signature: e12b1f75858b468b5d6853c672321792e6a39b1bf934fdac02c7eedf9e6f9793
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 chunk can be dropped
testing without sub-chunk 3/5
disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed
testing commit c73b4619ad86a2a29fc998e950e98bcdfa2f6d8f gcc
compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40
kernel signature: 1685145a8733ee55a0a17135a4b1158a4419ac20fd719103054fa02c0e2db353
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 chunk can be dropped
testing without sub-chunk 4/5
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.40
kernel signature: bad7e5f202a6a3b1e1cd35bf5fdd805c4690b4fbc307ba1e00ad297a055efa30
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 chunk can be dropped
testing without sub-chunk 5/5
disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed
testing commit c73b4619ad86a2a29fc998e950e98bcdfa2f6d8f gcc
compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40
failed building c73b4619ad86a2a29fc998e950e98bcdfa2f6d8f: scripts/extract-cert.c:46:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
scripts/extract-cert.c:60:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
scripts/sign-file.c:89:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
scripts/sign-file.c:103:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
net/socket.c:1172: undefined reference to `wext_handle_ioctl'
net/socket.c:3366: undefined reference to `compat_wext_handle_ioctl'
net/core/net-procfs.c:343: undefined reference to `wext_proc_exit'
net/core/net-procfs.c:327: undefined reference to `wext_proc_init'
minimized to 47 configs; suspects: [HID_ZEROPLUS USB_NET_GL620A USB_NET_MCS7830 USB_NET_NET1080 USB_NET_PLUSB USB_NET_RNDIS_HOST USB_NET_SMSC75XX USB_NET_SMSC95XX USB_NET_SR9700 USB_NET_SR9800 USB_NET_ZAURUS USB_OHCI_HCD USB_OHCI_HCD_PCI USB_OHCI_HCD_PLATFORM USB_OTG USB_OTG_FSM USB_PRINTER USB_SERIAL USB_SERIAL_FTDI_SIO USB_SERIAL_GENERIC USB_SERIAL_PL2303 USB_STORAGE_ALAUDA USB_STORAGE_CYPRESS_ATACB USB_STORAGE_DATAFAB USB_STORAGE_FREECOM USB_STORAGE_ISD200 USB_STORAGE_JUMPSHOT USB_STORAGE_KARMA USB_STORAGE_ONETOUCH USB_STORAGE_SDDR09 USB_STORAGE_SDDR55 USB_STORAGE_USBAT USB_TRANCEVIBRATOR USB_U_AUDIO USB_U_ETHER USB_U_SERIAL USB_WDM WLAN WLAN_VENDOR_ATH WLAN_VENDOR_ATMEL WLAN_VENDOR_BROADCOM WLAN_VENDOR_INTERSIL WLAN_VENDOR_MARVELL WLAN_VENDOR_MEDIATEK WLAN_VENDOR_MICROCHIP WLAN_VENDOR_RALINK WLAN_VENDOR_REALTEK WLAN_VENDOR_RSI WLAN_VENDOR_ZYDAS X86_PM_TIMER X86_X32 ZEROPLUS_FF]
disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed
testing current HEAD 28e3f5851a993d680ac5a14fd70cce739e78375d
testing commit 28e3f5851a993d680ac5a14fd70cce739e78375d gcc
compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40
kernel signature: 908bf348ba7614a810bf1b34a32e1821b05190bdc7ea3b07c3f53409a6cd4010
run #0: crashed: KASAN: stack-out-of-bounds Read in xfrm_state_find
run #1: crashed: KASAN: stack-out-of-bounds Read in xfrm_state_find
run #2: crashed: KASAN: stack-out-of-bounds Read in xfrm_state_find
run #3: crashed: KASAN: stack-out-of-bounds Read in xfrm_state_find
run #4: crashed: KASAN: stack-out-of-bounds Read in xfrm_state_find
run #5: crashed: KASAN: stack-out-of-bounds Read in xfrm_state_find
run #6: crashed: KASAN: stack-out-of-bounds Read in xfrm_state_find
run #7: crashed: KASAN: stack-out-of-bounds Read in xfrm_state_find
run #8: OK
run #9: OK
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: 7, total time: 44m8.418355978s (build: 14m31.459145622s, test: 27m43.570537914s)
crash still not fixed or there were kernel test errors
commit msg: Revert "HID: core: store the unique system identifier in hid_device"
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.141-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/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:2892
ip_route_output_ports include/net/route.h:169 [inline]
igmpv3_newpack+0x2a8/0xde0 net/ipv4/igmp.c:370
add_grhead+0x235/0x320 net/ipv4/igmp.c:441
add_grec+0xbef/0xec0 net/ipv4/igmp.c:575
igmpv3_send_cr net/ipv4/igmp.c:712 [inline]
igmp_ifc_timer_expire+0x46e/0xb10 net/ipv4/igmp.c:811
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:648 [inline]
irq_exit_rcu+0x64/0x110 kernel/softirq.c:660
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 64 53 af 00 fb f4 eb b7 4c 89 e7 e8 17 f6 ff ff 4c 8b 65 f8 c9 c3 e8 8c d5 bb fd
RSP: 0018:ffffffff85007c90 EFLAGS: 00000246
RAX: 0000000000004000 RBX: ffff8881061e9065 RCX: ffffffff83d8bbf4
RDX: 1ffffffff0a03848 RSI: 0000000000000008 RDI: ffffffff8501c240
RBP: ffffffff85007c98 R08: 0000000000000000 R09: ffffffff8501c247
R10: fffffbfff0a03848 R11: 0000000000000001 R12: ffffffff8501c240
R13: ffff888105182800 R14: ffff888105182804 R15: ffff8881061e9064
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:738
arch_call_rest_init+0x9/0xc init/main.c:890
start_kernel+0x366/0x383 init/main.c:1137
x86_64_start_reservations+0x29/0x2b arch/x86/kernel/head64.c:527
x86_64_start_kernel+0x8e/0x92 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 64 53 af 00 verw 0xaf5364(%rip) # 0xaf538c
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 call 0xfffff64c
35: 4c 8b 65 f8 mov -0x8(%rbp),%r12
39: c9 leave
3a: c3 ret
3b: e8 8c d5 bb fd call 0xfdbbd5cc