Warning: Permanently added '10.128.0.37' (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 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: [ 28.821842] ================================================================== [ 28.829403] BUG: KASAN: use-after-free in ex_handler_refcount+0x164/0x1a0 [ 28.836366] Write of size 4 at addr ffff888099868978 by task syz-executor381/8062 [ 28.843981] [ 28.845611] CPU: 0 PID: 8062 Comm: syz-executor381 Not tainted 4.14.304-syzkaller #0 [ 28.853487] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 28.862835] Call Trace: [ 28.865427] dump_stack+0x1b2/0x281 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 [ 28.869057] print_address_description.cold+0x54/0x1d3 [ 28.874335] kasan_report_error.cold+0x8a/0x191 [ 28.879007] ? ex_handler_refcount+0x164/0x1a0 [ 28.883588] __asan_report_store4_noabort+0x68/0x70 [ 28.888607] ? ex_handler_refcount+0x164/0x1a0 [ 28.893190] ex_handler_refcount+0x164/0x1a0 [ 28.897623] ? ex_handler_clear_fs+0xb0/0xb0 [ 28.902038] fixup_exception+0x8a/0xd0 [ 28.905933] do_trap+0x61/0x250 [ 28.909214] ? do_error_trap+0x1d0/0x2d0 [ 28.913285] do_error_trap+0x132/0x2d0 [ 28.917181] ? math_error+0x2d0/0x2d0 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 [ 28.920990] ? flags_string.cold+0x2ef4/0x6c57 [ 28.925575] ? radix_tree_next_chunk+0x296/0x8c0 [ 28.930338] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 28.935191] invalid_op+0x1b/0x40 [ 28.938645] RIP: 0010:flags_string.cold+0x2ef4/0x6c57 [ 28.943825] RSP: 0018:ffff88808caa7c98 EFLAGS: 00010297 [ 28.949188] RAX: ffff8880b4b84100 RBX: 00000000fffffffd RCX: ffff888099868978 [ 28.956462] RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff888099868940 [ 28.963730] RBP: ffff888099868940 R08: ffffffff8b9df6f8 R09: 0000000000000000 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 [ 28.970996] R10: 0000000000000000 R11: ffff8880b4b84100 R12: ffffffff89855be0 [ 28.978263] R13: 0000000000000000 R14: ffff8880b2f76b28 R15: 0000000000008001 [ 28.985547] ? put_dev+0xa/0x70 [ 28.988828] gadgetfs_kill_sb+0x2a/0x60 [ 28.992804] deactivate_locked_super+0x6c/0xd0 [ 28.997411] mount_single+0x126/0x150 [ 29.001214] mount_fs+0x92/0x2a0 [ 29.004583] vfs_kern_mount.part.0+0x5b/0x470 [ 29.009078] do_mount+0xe65/0x2a30 [ 29.012623] ? lock_acquire+0x170/0x3f0 [ 29.016596] ? lock_downgrade+0x740/0x740 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 [ 29.020746] ? copy_mount_string+0x40/0x40 [ 29.024983] ? __might_fault+0x177/0x1b0 [ 29.029046] ? _copy_from_user+0x96/0x100 [ 29.033195] ? copy_mount_options+0x1fa/0x2f0 [ 29.037689] ? copy_mnt_ns+0xa30/0xa30 [ 29.041579] SyS_mount+0xa8/0x120 [ 29.045036] ? copy_mnt_ns+0xa30/0xa30 [ 29.048927] do_syscall_64+0x1d5/0x640 [ 29.052824] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 29.058007] RIP: 0033:0x7ff0a120fe29 [ 29.061710] RSP: 002b:00007ffce36b8038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 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 [ 29.069422] RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 00007ff0a120fe29 [ 29.076689] RDX: 0000000020000480 RSI: 0000000020000440 RDI: 0000000000000000 [ 29.083955] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001 [ 29.091226] R10: 0000000000008001 R11: 0000000000000246 R12: 0000000000007091 [ 29.098494] R13: 00007ffce36b804c R14: 00007ffce36b8060 R15: 00007ffce36b8050 [ 29.105771] [ 29.107399] Allocated by task 8064: [ 29.111025] kasan_kmalloc+0xeb/0x160 [ 29.114824] kmem_cache_alloc_trace+0x131/0x3d0 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 [ 29.119489] gadgetfs_fill_super+0x1de/0x440 [ 29.123902] mount_single+0xe1/0x150 [ 29.127648] mount_fs+0x92/0x2a0 [ 29.131013] vfs_kern_mount.part.0+0x5b/0x470 [ 29.135507] do_mount+0xe65/0x2a30 [ 29.139039] SyS_mount+0xa8/0x120 [ 29.142491] do_syscall_64+0x1d5/0x640 [ 29.146391] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 29.151660] [ 29.153282] Freed by task 8064: [ 29.156572] kasan_slab_free+0xc3/0x1a0 [ 29.160548] kfree+0xc9/0x250 [ 29.163652] put_dev+0x59/0x70 [ 29.166840] gadgetfs_kill_sb+0x2a/0x60 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 [ 29.170817] deactivate_locked_super+0x6c/0xd0 [ 29.175397] deactivate_super+0x7f/0xa0 [ 29.179373] cleanup_mnt+0x186/0x2c0 [ 29.183082] task_work_run+0x11f/0x190 [ 29.186965] exit_to_usermode_loop+0x1ad/0x200 [ 29.191542] do_syscall_64+0x4a3/0x640 [ 29.195438] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 29.200615] [ 29.202234] The buggy address belongs to the object at ffff888099868940 [ 29.202234] which belongs to the cache kmalloc-1024 of size 1024 [ 29.215060] The buggy address is located 56 bytes inside of 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 [ 29.215060] 1024-byte region [ffff888099868940, ffff888099868d40) [ 29.226937] The buggy address belongs to the page: [ 29.231870] page:ffffea0002661a00 count:1 mapcount:0 mapping:ffff888099868040 index:0x0 compound_mapcount: 0 [ 29.241839] flags: 0xfff00000008100(slab|head) [ 29.246482] raw: 00fff00000008100 ffff888099868040 0000000000000000 0000000100000007 [ 29.254359] raw: ffffea0002cbb2a0 ffffea0002ca1c20 ffff88813fe74ac0 0000000000000000 [ 29.262240] page dumped because: kasan: bad access detected [ 29.267944] 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 [ 29.269565] Memory state around the buggy address: [ 29.274488] ffff888099868800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.281845] ffff888099868880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.289201] >ffff888099868900: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 29.296555] ^ [ 29.303825] ffff888099868980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.311184] ffff888099868a00: 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 29.318538] ================================================================== [ 29.325890] Disabling lock debugging due to kernel taint 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 [ 29.422472] Kernel panic - not syncing: panic_on_warn set ... [ 29.422472] [ 29.429861] CPU: 0 PID: 8062 Comm: syz-executor381 Tainted: G B 4.14.304-syzkaller #0 [ 29.438951] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 29.448298] Call Trace: [ 29.450884] dump_stack+0x1b2/0x281 [ 29.454518] panic+0x1f9/0x42d [ 29.457705] ? add_taint.cold+0x16/0x16 [ 29.461680] ? ___preempt_schedule+0x16/0x18 [ 29.466089] kasan_end_report+0x43/0x49 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 [ 29.470059] kasan_report_error.cold+0xa7/0x191 [ 29.474724] ? ex_handler_refcount+0x164/0x1a0 [ 29.479308] __asan_report_store4_noabort+0x68/0x70 [ 29.484351] ? ex_handler_refcount+0x164/0x1a0 [ 29.488946] ex_handler_refcount+0x164/0x1a0 [ 29.493371] ? ex_handler_clear_fs+0xb0/0xb0 [ 29.497784] fixup_exception+0x8a/0xd0 [ 29.501673] do_trap+0x61/0x250 [ 29.504956] ? do_error_trap+0x1d0/0x2d0 [ 29.509016] do_error_trap+0x132/0x2d0 [ 29.512903] ? math_error+0x2d0/0x2d0 [ 29.516698] ? flags_string.cold+0x2ef4/0x6c57 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 [ 29.521276] ? radix_tree_next_chunk+0x296/0x8c0 [ 29.526029] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 29.530870] invalid_op+0x1b/0x40 [ 29.534319] RIP: 0010:flags_string.cold+0x2ef4/0x6c57 [ 29.539498] RSP: 0018:ffff88808caa7c98 EFLAGS: 00010297 [ 29.544856] RAX: ffff8880b4b84100 RBX: 00000000fffffffd RCX: ffff888099868978 [ 29.552120] RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff888099868940 [ 29.559649] RBP: ffff888099868940 R08: ffffffff8b9df6f8 R09: 0000000000000000 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 [ 29.566916] R10: 0000000000000000 R11: ffff8880b4b84100 R12: ffffffff89855be0 [ 29.574182] R13: 0000000000000000 R14: ffff8880b2f76b28 R15: 0000000000008001 [ 29.581466] ? put_dev+0xa/0x70 [ 29.584743] gadgetfs_kill_sb+0x2a/0x60 [ 29.588727] deactivate_locked_super+0x6c/0xd0 [ 29.593320] mount_single+0x126/0x150 [ 29.597126] mount_fs+0x92/0x2a0 [ 29.600493] vfs_kern_mount.part.0+0x5b/0x470 [ 29.604986] do_mount+0xe65/0x2a30 [ 29.608520] ? lock_acquire+0x170/0x3f0 [ 29.612493] ? lock_downgrade+0x740/0x740 [ 29.616639] ? copy_mount_string+0x40/0x40 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 [ 29.620873] ? __might_fault+0x177/0x1b0 [ 29.624939] ? _copy_from_user+0x96/0x100 [ 29.629085] ? copy_mount_options+0x1fa/0x2f0 [ 29.633580] ? copy_mnt_ns+0xa30/0xa30 [ 29.637468] SyS_mount+0xa8/0x120 [ 29.640914] ? copy_mnt_ns+0xa30/0xa30 [ 29.644813] do_syscall_64+0x1d5/0x640 [ 29.648728] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 29.653910] RIP: 0033:0x7ff0a120fe29 [ 29.657613] RSP: 002b:00007ffce36b8038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 29.665313] RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 00007ff0a120fe29 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 29.672752] RDX: 0000000020000480 RSI: 0000000020000440 RDI: 0000000000000000 [ 29.680014] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001 [ 29.687278] R10: 0000000000008001 R11: 0000000000000246 R12: 0000000000007091 [ 29.694550] R13: 00007ffce36b804c R14: 00007ffce36b8060 R15: 00007ffce36b8050 [ 29.701973] Kernel Offset: disabled [ 29.705605] Rebooting in 86400 seconds..