ci2 starts bisection 2023-10-18 04:37:36.080415388 +0000 UTC m=+123848.054197825 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: 2912e4b1b84b9899e1a3840dad462d38a0958d736dac12f543bef5293e228cb9 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 [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], 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: aaa8ab8a39d679271d471fb4e8f2ac79b9db70273ef06bae78c05d8b2b61fe5f 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 [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], 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: b9bdb7b42b587045e3d4fec5cbf9d6ebae7b393171c10064625d5866a5c26ea8 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 [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], 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: 987aa55636f6e0560667f53df7abe7eaa6d4a66b7c10f4801f8ae95f5cae1955 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 [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: 7d75802e8c3b2cc50c0a318f1f83bf7e4db9c070c364d9ff233db513db3c8794 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: 709d4419c4fb1d36b9c217aba00444efed9517d28350bac8fd51492e61d457ef 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 [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], 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 [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing current HEAD 754f8cc9b7de7629e6aefa505dfc24c36a36d236 testing commit 754f8cc9b7de7629e6aefa505dfc24c36a36d236 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c571022fbdc752e5b61e08a2a362232adeee7b6bbc97fc437c9bd772ebd2aee7 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: 39m20.429966542s (build: 14m28.349316344s, test: 23m1.428904549s) crash still not fixed or there were kernel test errors commit msg: Revert "pwm: atmel-tcb: Convert to platform remove callback returning void" 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 ffff88811eec4410 by task syz-executor.0/466 CPU: 1 PID: 466 Comm: syz-executor.0 Not tainted 5.15.132-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/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:2153 [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:0x7f84d5172db9 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:00007f84d4c930c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f84d52931f0 RCX: 00007f84d5172db9 RDX: 0000000000002020 RSI: 0000000020002140 RDI: 0000000000000003 RBP: 00007f84d51cfad0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f84d52931f0 R15: 00007ffca0e37278 Allocated by task 458: 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:1644 lookup_slow fs/namei.c:1676 [inline] walk_component+0x3a1/0x690 fs/namei.c:1972 lookup_last fs/namei.c:2427 [inline] path_lookupat+0x11f/0x6b0 fs/namei.c:2451 filename_lookup+0x192/0x510 fs/namei.c:2480 user_path_at_empty+0x3a/0x60 fs/namei.c:2853 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 301: 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:3282 process_one_work+0x62c/0xec0 kernel/workqueue.c:2317 worker_thread+0x48e/0xdb0 kernel/workqueue.c:2464 kthread+0x324/0x3e0 kernel/kthread.c:319 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:3583 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:1659 lookup_slow fs/namei.c:1676 [inline] walk_component+0x3a1/0x690 fs/namei.c:1972 link_path_walk.part.0+0x57b/0xb30 fs/namei.c:2299 link_path_walk fs/namei.c:2224 [inline] path_parentat+0x8f/0x160 fs/namei.c:2498 filename_parentat+0x192/0x550 fs/namei.c:2521 filename_create+0x93/0x3e0 fs/namei.c:3746 do_mkdirat+0x9c/0x2c0 fs/namei.c:4009 __do_sys_mkdir fs/namei.c:4039 [inline] __se_sys_mkdir fs/namei.c:4037 [inline] __x64_sys_mkdir+0xd5/0x120 fs/namei.c:4037 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 ffff88811eec4400 which belongs to the cache kmalloc-rcl-512 of size 512 The buggy address is located 16 bytes inside of 512-byte region [ffff88811eec4400, ffff88811eec4600) The buggy address belongs to the page: page:ffffea00047bb100 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11eec4 head:ffffea00047bb100 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 385, ts 49026361868, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook mm/page_alloc.c:2602 [inline] prep_new_page+0x1a2/0x310 mm/page_alloc.c:2608 get_page_from_freelist+0x1ce2/0x30a0 mm/page_alloc.c:4482 __alloc_pages+0x217/0x2330 mm/page_alloc.c:5773 __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:1644 lookup_slow fs/namei.c:1676 [inline] walk_component+0x3a1/0x690 fs/namei.c:1972 lookup_last fs/namei.c:2427 [inline] path_lookupat+0x11f/0x6b0 fs/namei.c:2451 filename_lookup+0x192/0x510 fs/namei.c:2480 user_path_at_empty+0x3a/0x60 fs/namei.c:2853 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: ffff88811eec4300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88811eec4380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88811eec4400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88811eec4480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88811eec4500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================