forked to background, child pid 4645 [ 30.660281][ T4646] 8021q: adding VLAN 0 to HW filter on device bond0 [ 30.670665][ T4646] eql: remember to turn off Van-Jacobson compression on your slave devices [ 30.916963][ T4730] ssh-keygen (4730) used greatest stack depth: 16024 bytes left Starting sshd: OK syzkaller Warning: Permanently added '10.128.0.92' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 51.728904][ T5154] ================================================================== [ 51.737020][ T5154] BUG: KASAN: use-after-free in gadgetfs_kill_sb+0x33/0x100 [ 51.744339][ T5154] Write of size 4 at addr ffff88802a065040 by task syz-executor154/5154 [ 51.752651][ T5154] [ 51.754966][ T5154] CPU: 1 PID: 5154 Comm: syz-executor154 Not tainted 6.1.0-syzkaller-13139-gf9ff5644bcc0 #0 [ 51.765013][ T5154] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 51.775052][ T5154] Call Trace: [ 51.778316][ T5154] [ 51.781235][ T5154] dump_stack_lvl+0x1b1/0x290 [ 51.785998][ T5154] ? nf_tcp_handle_invalid+0x630/0x630 [ 51.791441][ T5154] ? __wake_up_klogd+0xcd/0x100 [ 51.796283][ T5154] ? panic+0x710/0x710 [ 51.800344][ T5154] ? _printk+0xc0/0x100 [ 51.804490][ T5154] ? _raw_spin_lock_irqsave+0x8e/0x100 [ 51.809939][ T5154] print_address_description+0x74/0x340 [ 51.815483][ T5154] print_report+0x107/0x1f0 [ 51.819977][ T5154] ? __virt_addr_valid+0x21b/0x2d0 [ 51.825094][ T5154] ? __phys_addr+0xb5/0x160 [ 51.829588][ T5154] ? gadgetfs_kill_sb+0x33/0x100 [ 51.834510][ T5154] kasan_report+0xcd/0x100 [ 51.839125][ T5154] ? gadgetfs_kill_sb+0x33/0x100 [ 51.844051][ T5154] ? gadgetfs_get_tree+0x20/0x20 [ 51.848976][ T5154] kasan_check_range+0x2a7/0x2e0 [ 51.853907][ T5154] gadgetfs_kill_sb+0x33/0x100 [ 51.858660][ T5154] deactivate_locked_super+0xa7/0xf0 [ 51.863944][ T5154] get_tree_single+0xd0/0x160 [ 51.868610][ T5154] vfs_get_tree+0x88/0x270 [ 51.873014][ T5154] __se_sys_fsconfig+0xbc0/0x1060 [ 51.878028][ T5154] ? __x64_sys_fsconfig+0xc0/0xc0 [ 51.883037][ T5154] ? lockdep_hardirqs_on_prepare+0x428/0x790 [ 51.889005][ T5154] ? syscall_enter_from_user_mode+0x2e/0x1d0 [ 51.894974][ T5154] ? lockdep_hardirqs_on+0x8d/0x130 [ 51.900162][ T5154] ? __x64_sys_fsconfig+0x1c/0xc0 [ 51.905177][ T5154] do_syscall_64+0x3d/0xb0 [ 51.909588][ T5154] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 51.915472][ T5154] RIP: 0033:0x7f30d255fe09 [ 51.919876][ T5154] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 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 c0 ff ff ff f7 d8 64 89 01 48 [ 51.939922][ T5154] RSP: 002b:00007fffe3583a38 EFLAGS: 00000246 ORIG_RAX: 00000000000001af [ 51.948327][ T5154] RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 00007f30d255fe09 [ 51.956291][ T5154] RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000003 [ 51.964250][ T5154] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001 [ 51.972205][ T5154] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000c9da [ 51.980171][ T5154] R13: 00007fffe3583a4c R14: 00007fffe3583a60 R15: 00007fffe3583a50 [ 51.988135][ T5154] [ 51.991137][ T5154] [ 51.993449][ T5154] Allocated by task 5151: [ 51.997763][ T5154] kasan_set_track+0x3d/0x60 [ 52.002353][ T5154] __kasan_kmalloc+0x97/0xb0 [ 52.006939][ T5154] gadgetfs_fill_super+0x2f9/0x8a0 [ 52.012035][ T5154] get_tree_single+0xb4/0x160 [ 52.016701][ T5154] vfs_get_tree+0x88/0x270 [ 52.021098][ T5154] __se_sys_fsconfig+0xbc0/0x1060 [ 52.026110][ T5154] do_syscall_64+0x3d/0xb0 [ 52.030514][ T5154] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 52.036401][ T5154] [ 52.038717][ T5154] Freed by task 5151: [ 52.042698][ T5154] kasan_set_track+0x3d/0x60 [ 52.047285][ T5154] kasan_save_free_info+0x27/0x40 [ 52.052300][ T5154] ____kasan_slab_free+0xd6/0x120 [ 52.057316][ T5154] slab_free_freelist_hook+0x12e/0x1a0 [ 52.062766][ T5154] __kmem_cache_free+0x71/0x110 [ 52.067601][ T5154] gadgetfs_kill_sb+0x8a/0x100 [ 52.072350][ T5154] deactivate_locked_super+0xa7/0xf0 [ 52.077622][ T5154] put_fs_context+0x90/0x7a0 [ 52.082195][ T5154] fscontext_release+0x61/0x80 [ 52.086943][ T5154] __fput+0x3ba/0x880 [ 52.090910][ T5154] task_work_run+0x243/0x300 [ 52.095488][ T5154] do_exit+0x644/0x2150 [ 52.099632][ T5154] do_group_exit+0x1fd/0x2b0 [ 52.104205][ T5154] __x64_sys_exit_group+0x3b/0x40 [ 52.109212][ T5154] do_syscall_64+0x3d/0xb0 [ 52.113614][ T5154] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 52.119493][ T5154] [ 52.121805][ T5154] The buggy address belongs to the object at ffff88802a065000 [ 52.121805][ T5154] which belongs to the cache kmalloc-1k of size 1024 [ 52.135847][ T5154] The buggy address is located 64 bytes inside of [ 52.135847][ T5154] 1024-byte region [ffff88802a065000, ffff88802a065400) [ 52.149102][ T5154] [ 52.151411][ T5154] The buggy address belongs to the physical page: [ 52.157803][ T5154] page:ffffea0000a81800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2a060 [ 52.167955][ T5154] head:ffffea0000a81800 order:3 compound_mapcount:0 subpages_mapcount:0 compound_pincount:0 [ 52.177998][ T5154] flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) [ 52.185965][ T5154] raw: 00fff00000010200 ffff888012841dc0 dead000000000122 0000000000000000 [ 52.194528][ T5154] raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 [ 52.203091][ T5154] page dumped because: kasan: bad access detected [ 52.209482][ T5154] page_owner tracks the page as allocated [ 52.215176][ T5154] page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5059, tgid 5059 (sshd), ts 51612855816, free_ts 46187228809 [ 52.235821][ T5154] get_page_from_freelist+0x742/0x7c0 [ 52.241190][ T5154] __alloc_pages+0x259/0x560 [ 52.245768][ T5154] alloc_slab_page+0xbd/0x190 [ 52.250451][ T5154] allocate_slab+0x5e/0x3c0 [ 52.254939][ T5154] ___slab_alloc+0x782/0xe20 [ 52.259512][ T5154] __kmem_cache_alloc_node+0x25b/0x340 [ 52.264958][ T5154] __kmalloc_node_track_caller+0x9c/0x190 [ 52.270666][ T5154] __alloc_skb+0x12c/0x2c0 [ 52.275069][ T5154] tcp_stream_alloc_skb+0x3c/0x300 [ 52.280172][ T5154] tcp_sendmsg_locked+0xd80/0x40f0 [ 52.285264][ T5154] tcp_sendmsg+0x2c/0x40 [ 52.289489][ T5154] sock_write_iter+0x3d4/0x540 [ 52.294238][ T5154] vfs_write+0x7dc/0xc50 [ 52.298464][ T5154] ksys_write+0x177/0x2a0 [ 52.302779][ T5154] do_syscall_64+0x3d/0xb0 [ 52.307179][ T5154] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 52.313057][ T5154] page last free stack trace: [ 52.317714][ T5154] free_pcp_prepare+0x751/0x780 [ 52.322558][ T5154] free_unref_page+0x19/0x4c0 [ 52.327219][ T5154] __unfreeze_partials+0x1a5/0x1e0 [ 52.332321][ T5154] put_cpu_partial+0x106/0x170 [ 52.337072][ T5154] qlist_free_all+0x2b/0x70 [ 52.341560][ T5154] kasan_quarantine_reduce+0x156/0x170 [ 52.347002][ T5154] __kasan_slab_alloc+0x1f/0x70 [ 52.351841][ T5154] kmem_cache_alloc+0x1b3/0x350 [ 52.356680][ T5154] getname_flags+0xb8/0x4e0 [ 52.361168][ T5154] __se_sys_newfstatat+0xcb/0x7d0 [ 52.366180][ T5154] do_syscall_64+0x3d/0xb0 [ 52.370578][ T5154] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 52.376461][ T5154] [ 52.378775][ T5154] Memory state around the buggy address: [ 52.384386][ T5154] ffff88802a064f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 52.392431][ T5154] ffff88802a064f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 52.400474][ T5154] >ffff88802a065000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.408518][ T5154] ^ [ 52.414652][ T5154] ffff88802a065080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.422695][ T5154] ffff88802a065100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 52.430737][ T5154] ================================================================== [ 52.470090][ T5154] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 52.477404][ T5154] CPU: 1 PID: 5154 Comm: syz-executor154 Not tainted 6.1.0-syzkaller-13139-gf9ff5644bcc0 #0 [ 52.487452][ T5154] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 52.497488][ T5154] Call Trace: [ 52.500759][ T5154] [ 52.503676][ T5154] dump_stack_lvl+0x1b1/0x290 [ 52.508337][ T5154] ? nf_tcp_handle_invalid+0x630/0x630 [ 52.513774][ T5154] ? panic+0x710/0x710 [ 52.517826][ T5154] ? lock_release+0x81/0x820 [ 52.522398][ T5154] ? vscnprintf+0x59/0x80 [ 52.526712][ T5154] panic+0x2d6/0x710 [ 52.530593][ T5154] ? check_panic_on_warn+0x1d/0xa0 [ 52.535688][ T5154] ? memcpy_page_flushcache+0x100/0x100 [ 52.541231][ T5154] ? _raw_spin_unlock_irqrestore+0x110/0x120 [ 52.547201][ T5154] ? _raw_spin_unlock+0x40/0x40 [ 52.552032][ T5154] ? print_report+0x1b4/0x1f0 [ 52.556693][ T5154] check_panic_on_warn+0x80/0xa0 [ 52.561619][ T5154] ? gadgetfs_kill_sb+0x33/0x100 [ 52.566548][ T5154] end_report+0x47/0x90 [ 52.570688][ T5154] kasan_report+0xda/0x100 [ 52.575091][ T5154] ? gadgetfs_kill_sb+0x33/0x100 [ 52.580008][ T5154] ? gadgetfs_get_tree+0x20/0x20 [ 52.584925][ T5154] kasan_check_range+0x2a7/0x2e0 [ 52.589848][ T5154] gadgetfs_kill_sb+0x33/0x100 [ 52.594591][ T5154] deactivate_locked_super+0xa7/0xf0 [ 52.599859][ T5154] get_tree_single+0xd0/0x160 [ 52.604521][ T5154] vfs_get_tree+0x88/0x270 [ 52.608917][ T5154] __se_sys_fsconfig+0xbc0/0x1060 [ 52.613925][ T5154] ? __x64_sys_fsconfig+0xc0/0xc0 [ 52.618927][ T5154] ? lockdep_hardirqs_on_prepare+0x428/0x790 [ 52.624893][ T5154] ? syscall_enter_from_user_mode+0x2e/0x1d0 [ 52.630860][ T5154] ? lockdep_hardirqs_on+0x8d/0x130 [ 52.636045][ T5154] ? __x64_sys_fsconfig+0x1c/0xc0 [ 52.641143][ T5154] do_syscall_64+0x3d/0xb0 [ 52.645543][ T5154] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 52.651421][ T5154] RIP: 0033:0x7f30d255fe09 [ 52.655822][ T5154] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 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 c0 ff ff ff f7 d8 64 89 01 48 [ 52.675595][ T5154] RSP: 002b:00007fffe3583a38 EFLAGS: 00000246 ORIG_RAX: 00000000000001af [ 52.683997][ T5154] RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 00007f30d255fe09 [ 52.691957][ T5154] RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000003 [ 52.699912][ T5154] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001 [ 52.707863][ T5154] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000c9da [ 52.715820][ T5154] R13: 00007fffe3583a4c R14: 00007fffe3583a60 R15: 00007fffe3583a50 [ 52.723783][ T5154] [ 52.726965][ T5154] Kernel Offset: disabled [ 52.731285][ T5154] Rebooting in 86400 seconds..