ci2 starts bisection 2024-01-23 13:37:15.476830152 +0000 UTC m=+33623.950197243 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: be24ae0d5faa502bd2df8a407bd955e6a9fd10b06e2035b0727a909f90396200 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 [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: 7c0fa7886c6b13ff1042f29a3a1d9902a4ae596f3b82f91842df3eccea88cf30 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: 76640d359b0c7317b13e1894606f938198e9f2292bcd3a1e26feee2a7c4880ed 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 [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: abcfe45e85126b97eb0fed863c11506e5b33a29198078fc8772d30b15afe8d3c 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 [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], 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: 2b8707aa7a4183d21b1d8a8b7f64a1190edee0fdd63f22185c5d64ae1695abfc 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 [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: b8b43f965aca92082fa604d617b13486034e40d211079a21010f206bf3299c18 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 [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing current HEAD 1c3a1f32bcbdc0591d0eab67b745f1f4d3ecef6b testing commit 1c3a1f32bcbdc0591d0eab67b745f1f4d3ecef6b gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 724237ab9835794b6244d2b2f822d23f32c7b4d17531d21ee8cbbde740d70382 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: 45m32.887335246s (build: 14m19.59910771s, test: 29m10.011196396s) crash still not fixed or there were kernel test errors commit msg: Revert "ipv6: remove max_size check inline with ipv4" 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 syz-executor.0/341 CPU: 0 PID: 341 Comm: syz-executor.0 Not tainted 5.15.147-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:372 add_grhead+0x235/0x320 net/ipv4/igmp.c:443 add_grec+0xbef/0xec0 net/ipv4/igmp.c:577 igmpv3_send_cr net/ipv4/igmp.c:714 [inline] igmp_ifc_timer_expire+0x46e/0xb10 net/ipv4/igmp.c:813 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:ext4_sb_block_valid+0x184/0x3e0 fs/ext4/block_validity.c:315 Code: 9c 8f ff 49 8d bc 24 e0 02 00 00 48 8b 75 d0 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 28 02 00 00 <49> 8b 9c 24 e0 02 00 00 48 85 db 0f 84 bb 00 00 00 48 b8 00 00 00 RSP: 0018:ffffc900006078d0 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: ffff88810ae57400 RCX: 0000000000001d5c RDX: 1ffff110215b5c5c RSI: ffff88811f5e5900 RDI: ffff88810adae2e0 RBP: ffffc90000607908 R08: 0000000000000001 R09: ffff88811f5e58c7 R10: ffffed1023ebcb18 R11: 0000000000000001 R12: ffff88810adae000 R13: 0000000000001d5c R14: 0000000000001d5b R15: 0000000000040000 ext4_inode_block_valid+0x3f/0x60 fs/ext4/block_validity.c:346 __check_block_validity.constprop.0+0x16f/0x2b0 fs/ext4/inode.c:417 ext4_map_blocks+0x8c5/0x1450 fs/ext4/inode.c:716 ext4_getblk+0x11f/0x5e0 fs/ext4/inode.c:847 ext4_bread+0xc/0x120 fs/ext4/inode.c:900 ext4_append+0x1f8/0x5b0 fs/ext4/namei.c:83 ext4_init_new_dir+0x241/0x4f0 fs/ext4/namei.c:2981 ext4_mkdir+0x353/0x890 fs/ext4/namei.c:3027 vfs_mkdir+0x1d5/0x430 fs/namei.c:4071 do_mkdirat+0x152/0x2c0 fs/namei.c:4096 __do_sys_mkdirat fs/namei.c:4111 [inline] __se_sys_mkdirat fs/namei.c:4109 [inline] __x64_sys_mkdirat+0xf4/0x140 fs/namei.c:4109 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f8c040c1467 Code: 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 02 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc93dc3468 EFLAGS: 00000202 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007ffc93dc34f0 RCX: 00007f8c040c1467 RDX: 00000000000001ff RSI: 00007ffc93dc34f0 RDI: 00000000ffffff9c RBP: 00007ffc93dc34cc R08: 0000000000000004 R09: 00007ffc93dc3206 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000032 R13: 000000000000a327 R14: 000000000000a325 R15: 0000000000000005 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), 2 bytes skipped: 0: ff 49 8d decl -0x73(%rcx) 3: bc 24 e0 02 00 mov $0x2e024,%esp 8: 00 48 8b add %cl,-0x75(%rax) b: 75 d0 jne 0xffffffdd d: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 14: fc ff df 17: 48 89 fa mov %rdi,%rdx 1a: 48 c1 ea 03 shr $0x3,%rdx 1e: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 22: 0f 85 28 02 00 00 jne 0x250 * 28: 49 8b 9c 24 e0 02 00 mov 0x2e0(%r12),%rbx <-- trapping instruction 2f: 00 30: 48 85 db test %rbx,%rbx 33: 0f 84 bb 00 00 00 je 0xf4 39: 48 rex.W 3a: b8 .byte 0xb8 3b: 00 00 add %al,(%rax)