ci2 starts bisection 2023-11-12 15:31:43.424077153 +0000 UTC m=+104063.200457842 bisecting fixing commit since 80529b4968a8052f894d00021a576d8a2d89aa08 building syzkaller on d80eec66c939240cfc674221138f637197659116 ensuring issue is reproducible on original commit 80529b4968a8052f894d00021a576d8a2d89aa08 testing commit 80529b4968a8052f894d00021a576d8a2d89aa08 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b45e25b72dbeeb520a7886938c791b06c7bb5210c3389cdc83d93a08056ee024 run #0: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #1: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #2: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #3: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #4: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #5: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #6: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #7: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #8: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #9: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #10: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #11: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #12: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #13: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #14: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #15: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #16: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #17: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #18: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #19: crashed: KASAN: use-after-free Read in unix_stream_read_actor representative crash: KASAN: use-after-free Read in unix_stream_read_actor, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 80529b4968a8052f894d00021a576d8a2d89aa08 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e2762150c0a3e17a8f4e43a5fbf9f0549f4690f4e3a18ada334720dac7338710 run #0: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #1: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #2: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #3: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #4: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #5: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #6: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #7: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #8: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #9: crashed: KASAN: use-after-free Read in __skb_datagram_iter representative crash: KASAN: use-after-free Read in unix_stream_read_actor, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed kconfig minimization: base=3703 full=7267 leaves diff=1983 split chunks (needed=false): <1983> split chunk #0 of len 1983 into 5 parts testing without sub-chunk 1/5 disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit 80529b4968a8052f894d00021a576d8a2d89aa08 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: dd46487f5be59633796fff832f446e0ad44ce5bb158be783d148ebeae6fdee32 run #0: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #1: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #2: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #3: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #4: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #5: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #6: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #7: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #8: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #9: crashed: KASAN: use-after-free Read in __skb_datagram_iter representative crash: KASAN: use-after-free Read in unix_stream_read_actor, 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 80529b4968a8052f894d00021a576d8a2d89aa08 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 80971113aeae17a3804228f1884c77a609c77af7184f4e9b8f633c660361bedf run #0: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #1: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #2: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #3: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #4: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #5: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #6: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #7: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #8: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #9: crashed: KASAN: use-after-free Read in unix_stream_read_actor representative crash: KASAN: use-after-free Read in unix_stream_read_actor, types: [KASAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit 80529b4968a8052f894d00021a576d8a2d89aa08 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 86645bbba2fa67dc771335c6c41d7a8b62598d894f664d705f1cd2a5fa7a3c38 all runs: crashed: KASAN: use-after-free Read in unix_stream_read_actor representative crash: KASAN: use-after-free Read in unix_stream_read_actor, 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 80529b4968a8052f894d00021a576d8a2d89aa08 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 312e783d4e0c495c69a726618bad482840eefe93dd20b5e1622ce9e2bcf216ae run #0: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #1: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #2: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #3: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #4: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #5: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #6: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #7: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #8: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #9: crashed: KASAN: use-after-free Read in unix_stream_read_actor representative crash: KASAN: use-after-free Read in __skb_datagram_iter, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 80529b4968a8052f894d00021a576d8a2d89aa08 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ee9f25a68501e3fdb92b01733686c074366e39f7b07035eabe0d0449cf29fe57 run #0: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #1: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #2: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #3: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #4: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #5: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #6: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #7: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #8: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #9: crashed: KASAN: use-after-free Read in __skb_datagram_iter representative crash: KASAN: use-after-free Read in __skb_datagram_iter, types: [KASAN] the chunk can be dropped disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed determining the merge base between 80529b4968a8052f894d00021a576d8a2d89aa08 and 1b907d0507354b74a4f2c286380cd6059af79248 8bb7eca972ad531c9b149c0a51ab43a417385813/Linux 5.15 is a merge base, check if it has the bug testing commit 8bb7eca972ad531c9b149c0a51ab43a417385813 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1baec4cc57c3d5a5360a2ee6097bfc7ad5f4699432d9714ebf86159bfe7ed539 run #0: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #1: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #2: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #3: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #4: crashed: KASAN: use-after-free Read in unix_stream_read_actor run #5: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #6: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #7: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #8: crashed: KASAN: use-after-free Read in __skb_datagram_iter run #9: crashed: KASAN: use-after-free Read in __skb_datagram_iter representative crash: KASAN: use-after-free Read in __skb_datagram_iter, types: [KASAN] testing current HEAD 1b907d0507354b74a4f2c286380cd6059af79248 testing commit 1b907d0507354b74a4f2c286380cd6059af79248 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6b22387be225c7ef3d5e10a23796c8e0217262cc762a096d91a91316b5e0c336 run #0: crashed: KASAN: slab-use-after-free Read in unix_stream_read_actor run #1: crashed: KASAN: slab-use-after-free Read in unix_stream_read_actor run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK representative crash: KASAN: slab-use-after-free Read in unix_stream_read_actor, types: [KASAN] crash still not fixed/happens on the oldest tested release reproducer is flaky (1.00 repro chance estimate) revisions tested: 9, total time: 1h29m49.903343726s (build: 27m4.425568074s, test: 1h0m0.174098141s) crash still not fixed or there were kernel test errors commit msg: Merge tag '6.7-rc-smb3-client-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6 crash: KASAN: slab-use-after-free Read in unix_stream_read_actor ================================================================== BUG: KASAN: slab-use-after-free in unix_stream_read_actor+0x90/0xa0 net/unix/af_unix.c:2866 Read of size 4 at addr ffff88810a625404 by task syz-executor.0/3278 CPU: 0 PID: 3278 Comm: syz-executor.0 Not tainted 6.6.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xf8/0x260 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0x163/0x540 mm/kasan/report.c:475 kasan_report+0x142/0x170 mm/kasan/report.c:588 unix_stream_read_actor+0x90/0xa0 net/unix/af_unix.c:2866 unix_stream_recv_urg+0x16c/0x2a0 net/unix/af_unix.c:2587 unix_stream_read_generic+0x1dc0/0x1ed0 net/unix/af_unix.c:2666 unix_stream_recvmsg+0x165/0x1e0 net/unix/af_unix.c:2903 sock_recvmsg_nosec net/socket.c:1044 [inline] sock_recvmsg net/socket.c:1066 [inline] ____sys_recvmsg+0x273/0x4f0 net/socket.c:2803 ___sys_recvmsg+0x4c5/0x6e0 net/socket.c:2845 __sys_recvmsg net/socket.c:2875 [inline] __do_sys_recvmsg net/socket.c:2885 [inline] __se_sys_recvmsg net/socket.c:2882 [inline] __x64_sys_recvmsg+0x194/0x220 net/socket.c:2882 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0xe0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fd1a0b20ae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd1a06610c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002f RAX: ffffffffffffffda RBX: 00007fd1a0c40120 RCX: 00007fd1a0b20ae9 RDX: 0000000040010083 RSI: 0000000020000140 RDI: 0000000000000004 RBP: 00007fd1a0b6c47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fd1a0c40120 R15: 00007ffecacad648 Allocated by task 3277: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x4b/0x60 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x6d/0x3d0 mm/slab.h:763 slab_alloc_node mm/slub.c:3478 [inline] kmem_cache_alloc_node+0x186/0x2c0 mm/slub.c:3523 __alloc_skb+0x1a7/0x870 net/core/skbuff.c:641 alloc_skb include/linux/skbuff.h:1286 [inline] alloc_skb_with_frags+0x89/0x570 net/core/skbuff.c:6331 sock_alloc_send_pskb+0x7f3/0x8f0 net/core/sock.c:2780 sock_alloc_send_skb include/net/sock.h:1884 [inline] queue_oob+0x101/0x7f0 net/unix/af_unix.c:2147 unix_stream_sendmsg+0xd31/0x1210 net/unix/af_unix.c:2301 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0x4a8/0x780 net/socket.c:2584 ___sys_sendmsg+0x227/0x2a0 net/socket.c:2638 __sys_sendmsg net/socket.c:2667 [inline] __do_sys_sendmsg net/socket.c:2676 [inline] __se_sys_sendmsg+0x14a/0x1d0 net/socket.c:2674 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0xe0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b Freed by task 3277: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x28/0x40 mm/kasan/generic.c:522 ____kasan_slab_free+0xf8/0x1c0 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:164 [inline] slab_free_hook mm/slub.c:1800 [inline] slab_free_freelist_hook mm/slub.c:1826 [inline] slab_free mm/slub.c:3809 [inline] kmem_cache_free+0x26f/0x480 mm/slub.c:3831 queue_oob+0x49b/0x7f0 net/unix/af_unix.c:2178 unix_stream_sendmsg+0xd31/0x1210 net/unix/af_unix.c:2301 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0x4a8/0x780 net/socket.c:2584 ___sys_sendmsg+0x227/0x2a0 net/socket.c:2638 __sys_sendmsg net/socket.c:2667 [inline] __do_sys_sendmsg net/socket.c:2676 [inline] __se_sys_sendmsg+0x14a/0x1d0 net/socket.c:2674 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0xe0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b The buggy address belongs to the object at ffff88810a6253c0 which belongs to the cache skbuff_head_cache of size 224 The buggy address is located 68 bytes inside of freed 224-byte region [ffff88810a6253c0, ffff88810a6254a0) The buggy address belongs to the physical page: page:ffffea0004298940 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a625 memcg:ffff88810c02e601 flags: 0x200000000000800(slab|node=0|zone=2) page_type: 0xffffffff() raw: 0200000000000800 ffff8881088ec640 dead000000000122 0000000000000000 raw: 0000000000000000 00000000000c000c 00000001ffffffff ffff88810c02e601 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 3277, tgid 3275 (syz-executor.0), ts 76846435247, free_ts 76547468977 prep_new_page mm/page_alloc.c:1544 [inline] get_page_from_freelist+0x32c9/0x3680 mm/page_alloc.c:3312 __alloc_pages+0x255/0x650 mm/page_alloc.c:4568 alloc_pages_mpol+0x13d/0x310 mm/mempolicy.c:2133 alloc_slab_page+0x6a/0x160 mm/slub.c:1870 allocate_slab mm/slub.c:2017 [inline] new_slab+0x70/0x260 mm/slub.c:2070 ___slab_alloc+0x8f3/0xe60 mm/slub.c:3223 __slab_alloc mm/slub.c:3322 [inline] __slab_alloc_node mm/slub.c:3375 [inline] slab_alloc_node mm/slub.c:3468 [inline] kmem_cache_alloc_node+0x200/0x2c0 mm/slub.c:3523 __alloc_skb+0x1a7/0x870 net/core/skbuff.c:641 alloc_skb include/linux/skbuff.h:1286 [inline] alloc_skb_with_frags+0x89/0x570 net/core/skbuff.c:6331 sock_alloc_send_pskb+0x7f3/0x8f0 net/core/sock.c:2780 sock_alloc_send_skb include/net/sock.h:1884 [inline] queue_oob+0x101/0x7f0 net/unix/af_unix.c:2147 unix_stream_sendmsg+0xd31/0x1210 net/unix/af_unix.c:2301 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0x4a8/0x780 net/socket.c:2584 ___sys_sendmsg+0x227/0x2a0 net/socket.c:2638 __sys_sendmsg net/socket.c:2667 [inline] __do_sys_sendmsg net/socket.c:2676 [inline] __se_sys_sendmsg+0x14a/0x1d0 net/socket.c:2674 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0xe0 arch/x86/entry/common.c:82 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1137 [inline] free_unref_page_prepare+0x7db/0x8e0 mm/page_alloc.c:2347 free_unref_page_list+0xae/0x620 mm/page_alloc.c:2533 release_pages+0x174d/0x18f0 mm/swap.c:1042 tlb_batch_pages_flush mm/mmu_gather.c:98 [inline] tlb_flush_mmu_free mm/mmu_gather.c:293 [inline] tlb_flush_mmu+0x273/0x3d0 mm/mmu_gather.c:300 tlb_finish_mmu+0xb6/0x1c0 mm/mmu_gather.c:392 exit_mmap+0x411/0x960 mm/mmap.c:3321 __mmput+0x61/0x290 kernel/fork.c:1349 exit_mm+0x113/0x1b0 kernel/exit.c:567 do_exit+0x7ea/0x23f0 kernel/exit.c:858 do_group_exit+0x1b9/0x280 kernel/exit.c:1021 get_signal+0x114b/0x12a0 kernel/signal.c:2904 arch_do_signal_or_restart+0x91/0x600 arch/x86/kernel/signal.c:309 exit_to_user_mode_loop+0x63/0xb0 kernel/entry/common.c:168 exit_to_user_mode_prepare+0x5c/0xa0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x2b/0x1c0 kernel/entry/common.c:296 do_syscall_64+0x50/0xe0 arch/x86/entry/common.c:88 Memory state around the buggy address: ffff88810a625300: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff88810a625380: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb >ffff88810a625400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88810a625480: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc ffff88810a625500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================