ci2 starts bisection 2024-01-18 23:24:36.021079595 +0000 UTC m=+42999.786736328 bisecting fixing commit since 7f2e600bf63a9cda882a6c86de04183e5061e8ee building syzkaller on 97de9cfcb0b25b95878e2eaaf3652a2faa8dd8f4 ensuring issue is reproducible on original commit 7f2e600bf63a9cda882a6c86de04183e5061e8ee testing commit 7f2e600bf63a9cda882a6c86de04183e5061e8ee gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7b0327e20708ddf5c5abc962618ac1411deabaa31b57407a8e5f2160c8d72e4f all runs: crashed: KASAN: use-after-free Read in fuse_copy_one representative crash: KASAN: use-after-free Read in fuse_copy_one, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 7f2e600bf63a9cda882a6c86de04183e5061e8ee gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 028986d08ca9563f02283f10ec2a412fd40930aa059623595e7bc495c0439c64 all runs: crashed: KASAN: use-after-free Read in fuse_copy_one representative crash: KASAN: use-after-free Read in fuse_copy_one, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed kconfig minimization: base=4920 full=6155 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 [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit 7f2e600bf63a9cda882a6c86de04183e5061e8ee gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5b4f7ff2cc35416163acf34936932f8606550a902d03b651ba9e71502ce28f04 all runs: crashed: KASAN: use-after-free Read in fuse_copy_one representative crash: KASAN: use-after-free Read in fuse_copy_one, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 7f2e600bf63a9cda882a6c86de04183e5061e8ee gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9c4fc81156e539167be7c802e1e499e0c4a844baab866ed107a82d193aa200d7 all runs: crashed: KASAN: use-after-free Read in fuse_copy_one representative crash: KASAN: use-after-free Read in fuse_copy_one, 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 7f2e600bf63a9cda882a6c86de04183e5061e8ee gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 26e610e769c6e98d0d4f69b739148d3edcbb1ba6dc53b53afa2bf3f57d4b098b all runs: crashed: KASAN: use-after-free Read in fuse_copy_one representative crash: KASAN: use-after-free Read in fuse_copy_one, types: [KASAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 7f2e600bf63a9cda882a6c86de04183e5061e8ee gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 00d090c91a3a3e4f9236b2a04b446b36858757dc0a013102ce305b3d536f209f all runs: crashed: KASAN: use-after-free Read in fuse_copy_one representative crash: KASAN: use-after-free Read in fuse_copy_one, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 7f2e600bf63a9cda882a6c86de04183e5061e8ee gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 failed building 7f2e600bf63a9cda882a6c86de04183e5061e8ee: 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 [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], 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: 59d54579eb3f29497096137accc2428a874d760964f1e699a85f92953a989f06 all runs: crashed: KASAN: use-after-free Read in fuse_copy_one representative crash: KASAN: use-after-free Read in fuse_copy_one, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 39m25.060564938s (build: 14m35.671409954s, test: 22m53.482273474s) crash still not fixed or there were kernel test errors commit msg: Revert "ipv6: remove max_size check inline with ipv4" crash: KASAN: use-after-free Read in fuse_copy_one ================================================================== BUG: KASAN: use-after-free in fuse_copy_do fs/fuse/dev.c:773 [inline] BUG: KASAN: use-after-free in fuse_copy_one+0x84/0x310 fs/fuse/dev.c:1023 Read of size 256 at addr ffff888120bc0810 by task syz-executor.1/512 CPU: 0 PID: 512 Comm: syz-executor.1 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 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x148/0x190 mm/kasan/generic.c:189 memcpy+0x24/0x60 mm/kasan/shadow.c:65 fuse_copy_do fs/fuse/dev.c:773 [inline] fuse_copy_one+0x84/0x310 fs/fuse/dev.c:1023 fuse_copy_args+0x84/0x360 fs/fuse/dev.c:1041 fuse_dev_do_read.constprop.0+0x144b/0x1c30 fs/fuse/dev.c:1316 fuse_dev_read+0x13d/0x1e0 fs/fuse/dev.c:1383 call_read_iter include/linux/fs.h:2196 [inline] new_sync_read+0x353/0x6d0 fs/read_write.c:404 vfs_read+0x347/0x4b0 fs/read_write.c:485 ksys_read+0x111/0x210 fs/read_write.c:623 __do_sys_read fs/read_write.c:633 [inline] __se_sys_read fs/read_write.c:631 [inline] __x64_sys_read+0x6e/0xb0 fs/read_write.c:631 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:0x7f2330e8fdb9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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:00007f23309b00c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f2330fb01f0 RCX: 00007f2330e8fdb9 RDX: 0000000000002020 RSI: 0000000020002140 RDI: 0000000000000003 RBP: 00007f2330eecad0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f2330fb01f0 R15: 00007ffd17e91d78 Allocated by task 504: kasan_save_stack+0x26/0x50 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:433 [inline] ____kasan_kmalloc mm/kasan/common.c:512 [inline] ____kasan_kmalloc mm/kasan/common.c:471 [inline] __kasan_kmalloc+0xae/0xe0 mm/kasan/common.c:521 kasan_kmalloc include/linux/kasan.h:227 [inline] __kmalloc+0x2d5/0x4e0 mm/slub.c:4427 kmalloc include/linux/slab.h:608 [inline] __d_alloc+0x593/0x8a0 fs/dcache.c:1760 d_alloc+0x3c/0x210 fs/dcache.c:1823 d_alloc_parallel+0xdc/0x1090 fs/dcache.c:2575 __lookup_slow+0x106/0x3d0 fs/namei.c:1648 lookup_slow fs/namei.c:1680 [inline] walk_component+0x3a1/0x690 fs/namei.c:1976 lookup_last fs/namei.c:2431 [inline] path_lookupat+0x11f/0x6b0 fs/namei.c:2455 filename_lookup+0x192/0x510 fs/namei.c:2484 user_path_at_empty+0x3a/0x60 fs/namei.c:2883 user_path_at include/linux/namei.h:57 [inline] do_mount fs/namespace.c:3334 [inline] __do_sys_mount fs/namespace.c:3545 [inline] __se_sys_mount fs/namespace.c:3522 [inline] __x64_sys_mount+0x1a0/0x280 fs/namespace.c:3522 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 Freed by task 6: kasan_save_stack+0x26/0x50 mm/kasan/common.c:38 kasan_set_track+0x25/0x30 mm/kasan/common.c:45 kasan_set_free_info+0x24/0x40 mm/kasan/generic.c:370 ____kasan_slab_free mm/kasan/common.c:365 [inline] ____kasan_slab_free mm/kasan/common.c:327 [inline] __kasan_slab_free+0x111/0x150 mm/kasan/common.c:373 kasan_slab_free include/linux/kasan.h:193 [inline] slab_free_hook mm/slub.c:1723 [inline] slab_free_freelist_hook+0x94/0x1a0 mm/slub.c:1749 slab_free mm/slub.c:3519 [inline] kmem_cache_free_bulk mm/slub.c:3660 [inline] kmem_cache_free_bulk+0x3be/0x7a0 mm/slub.c:3647 kfree_bulk include/linux/slab.h:460 [inline] kfree_rcu_work+0x418/0x8b0 kernel/rcu/tree.c:3295 process_one_work+0x62c/0xec0 kernel/workqueue.c:2317 worker_thread+0x48e/0xdb0 kernel/workqueue.c:2464 kthread+0x324/0x3e0 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Last potentially related work creation: kasan_save_stack+0x26/0x50 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd8/0xf0 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 kvfree_call_rcu+0x98/0x8e0 kernel/rcu/tree.c:3596 copy_name fs/dcache.c:2844 [inline] __d_move+0x3f1/0x13a0 fs/dcache.c:2907 __d_unalias fs/dcache.c:3021 [inline] d_splice_alias+0x8a7/0xb40 fs/dcache.c:3084 fuse_lookup+0x5a6/0x15a0 fs/fuse/dir.c:631 __lookup_slow+0x19b/0x3d0 fs/namei.c:1663 lookup_slow fs/namei.c:1680 [inline] walk_component+0x3a1/0x690 fs/namei.c:1976 link_path_walk.part.0+0x57b/0xb30 fs/namei.c:2303 link_path_walk fs/namei.c:2228 [inline] path_parentat+0x8f/0x160 fs/namei.c:2502 __filename_parentat+0x19e/0x630 fs/namei.c:2526 filename_parentat fs/namei.c:2544 [inline] filename_create+0x95/0x3e0 fs/namei.c:3822 do_mkdirat+0x9c/0x2c0 fs/namei.c:4086 __do_sys_mkdir fs/namei.c:4116 [inline] __se_sys_mkdir fs/namei.c:4114 [inline] __x64_sys_mkdir+0xd5/0x120 fs/namei.c:4114 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 The buggy address belongs to the object at ffff888120bc0800 which belongs to the cache kmalloc-rcl-512 of size 512 The buggy address is located 16 bytes inside of 512-byte region [ffff888120bc0800, ffff888120bc0a00) The buggy address belongs to the page: page:ffffea000482f000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x120bc0 head:ffffea000482f000 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 0000000000000000 dead000000000122 ffff88810004c300 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Reclaimable, gfp_mask 0x1d20d0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 473, ts 44391522179, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook mm/page_alloc.c:2604 [inline] prep_new_page+0x1a2/0x310 mm/page_alloc.c:2610 get_page_from_freelist+0x1ce2/0x30a0 mm/page_alloc.c:4484 __alloc_pages+0x2d1/0x2620 mm/page_alloc.c:5776 __alloc_pages_node include/linux/gfp.h:591 [inline] alloc_pages_node include/linux/gfp.h:605 [inline] alloc_pages include/linux/gfp.h:618 [inline] alloc_slab_page mm/slub.c:1793 [inline] allocate_slab+0x39d/0x530 mm/slub.c:1932 new_slab mm/slub.c:1995 [inline] ___slab_alloc.constprop.0+0x3ca/0x890 mm/slub.c:3028 __slab_alloc.constprop.0+0x42/0x80 mm/slub.c:3115 slab_alloc_node mm/slub.c:3206 [inline] slab_alloc mm/slub.c:3248 [inline] __kmalloc+0x49f/0x4e0 mm/slub.c:4423 kmalloc include/linux/slab.h:608 [inline] __d_alloc+0x593/0x8a0 fs/dcache.c:1760 d_alloc+0x3c/0x210 fs/dcache.c:1823 d_alloc_parallel+0xdc/0x1090 fs/dcache.c:2575 __lookup_slow+0x106/0x3d0 fs/namei.c:1648 lookup_slow fs/namei.c:1680 [inline] walk_component+0x3a1/0x690 fs/namei.c:1976 lookup_last fs/namei.c:2431 [inline] path_lookupat+0x11f/0x6b0 fs/namei.c:2455 filename_lookup+0x192/0x510 fs/namei.c:2484 user_path_at_empty+0x3a/0x60 fs/namei.c:2883 user_path_at include/linux/namei.h:57 [inline] do_mount fs/namespace.c:3334 [inline] __do_sys_mount fs/namespace.c:3545 [inline] __se_sys_mount fs/namespace.c:3522 [inline] __x64_sys_mount+0x1a0/0x280 fs/namespace.c:3522 page_owner free stack trace missing Memory state around the buggy address: ffff888120bc0700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888120bc0780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888120bc0800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888120bc0880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888120bc0900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================