program: mkdirat(0xffffffffffffff9c, &(0x7f0000000400)='./config\x00', 0x1ff) mount(0x0, &(0x7f00000004c0)='./config\x00', &(0x7f0000000580)='bpf\x00', 0x1000001, 0x0) getsockopt$TIPC_DEST_DROPPABLE(0xffffffffffffffff, 0x10f, 0x81, &(0x7f0000000080), &(0x7f00000000c0)=0x4) add_key$user(&(0x7f00000003c0), &(0x7f0000000440), &(0x7f00000000c0), 0xc9, 0xfffffffffffffffd) mkdirat(0xffffffffffffff9c, &(0x7f0000000440)='./mnt\x00', 0x1ff) mount(&(0x7f0000000400), &(0x7f0000000000)='./mnt\x00', &(0x7f0000000480)='ecryptfs\x00', 0x0, &(0x7f0000000500)='ecryptfs_sig=syz,ecryptfs_fnek_sig=syz,ecryptfs_cipher=aes,ecryptfs_key_bytes=16\x00') (fail_nth: 47) [ 93.657807][ T4649] Bluetooth: hci0: command tx timeout [ 93.668415][ T1246] cfg80211: failed to load regulatory.db [ 93.756745][ T5320] FAULT_INJECTION: forcing a failure. [ 93.756745][ T5320] name failslab, interval 1, probability 0, space 0, times 1 [ 93.756838][ T5320] CPU: 0 UID: 0 PID: 5320 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 93.756850][ T5320] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 93.756856][ T5320] Call Trace: [ 93.756862][ T5320] [ 93.756869][ T5320] dump_stack_lvl+0xe8/0x150 [ 93.756926][ T5320] should_fail_ex+0x410/0x560 [ 93.756990][ T5320] should_failslab+0xa8/0x100 [ 93.757003][ T5320] __kmalloc_cache_noprof+0xa3/0x600 [ 93.757014][ T5320] ? device_create+0x13d/0x300 [ 93.757047][ T5320] ? device_create+0x13d/0x300 [ 93.757063][ T5320] device_create+0x13d/0x300 [ 93.757086][ T5320] ? __pfx_device_create+0x10/0x10 [ 93.757107][ T5320] bdi_register_va+0x9c/0x740 [ 93.757125][ T5320] super_setup_bdi_name+0xf8/0x210 [ 93.757136][ T5320] ? __pfx_set_anon_super_fc+0x10/0x10 [ 93.757152][ T5320] ? __pfx_super_setup_bdi_name+0x10/0x10 [ 93.757161][ T5320] ? ecryptfs_get_tree+0x5ba/0x1370 [ 93.757191][ T5320] ecryptfs_get_tree+0x641/0x1370 [ 93.757208][ T5320] ? __pfx_ecryptfs_get_tree+0x10/0x10 [ 93.757228][ T5320] vfs_get_tree+0x92/0x2a0 [ 93.757241][ T5320] do_new_mount+0x325/0xb00 [ 93.757258][ T5320] ? __pfx_do_new_mount+0x10/0x10 [ 93.757270][ T5320] ? ns_capable+0x89/0xe0 [ 93.757286][ T5320] ? path_mount+0x647/0x1050 [ 93.757301][ T5320] ? user_path_at+0xd4/0x160 [ 93.757319][ T5320] __se_sys_mount+0x31d/0x420 [ 93.757335][ T5320] ? __pfx___se_sys_mount+0x10/0x10 [ 93.757352][ T5320] ? __x64_sys_mount+0x20/0xc0 [ 93.757367][ T5320] do_syscall_64+0x166/0x520 [ 93.757429][ T5320] ? trace_irq_disable+0x3b/0x140 [ 93.757441][ T5320] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 93.757453][ T5320] ? clear_bhb_loop+0x70/0xc0 [ 93.757466][ T5320] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 93.757477][ T5320] RIP: 0033:0x7fc73999e1d9 [ 93.757490][ T5320] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 [ 93.757498][ T5320] RSP: 002b:00007fc735df4fe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 93.757511][ T5320] RAX: ffffffffffffffda RBX: 00007fc739c25fa0 RCX: 00007fc73999e1d9 [ 93.757518][ T5320] RDX: 0000200000000480 RSI: 0000200000000000 RDI: 0000200000000400 [ 93.757525][ T5320] RBP: 00007fc735df5050 R08: 0000200000000500 R09: 0000000000000000 [ 93.757532][ T5320] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 [ 93.757538][ T5320] R13: 00007fc739c26038 R14: 00007fc739c25fa0 R15: 00007ffc3b695e78 [ 93.757557][ T5320] [ 93.757731][ T5320] ================================================================== [ 93.757736][ T5320] BUG: KASAN: slab-use-after-free in ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300 [ 93.757751][ T5320] Read of size 4 at addr ffff8880441e1a90 by task syz.0.0/5320 [ 93.757759][ T5320] [ 93.757764][ T5320] CPU: 0 UID: 0 PID: 5320 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 93.757775][ T5320] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 93.757782][ T5320] Call Trace: [ 93.757786][ T5320] [ 93.757791][ T5320] dump_stack_lvl+0xe8/0x150 [ 93.757805][ T5320] print_address_description+0x55/0x1e0 [ 93.757819][ T5320] ? ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300 [ 93.757831][ T5320] print_report+0x58/0x70 [ 93.757844][ T5320] kasan_report+0x117/0x150 [ 93.757857][ T5320] ? ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300 [ 93.757872][ T5320] ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300 [ 93.757885][ T5320] ? put_super+0x295/0x2f0 [ 93.757898][ T5320] ecryptfs_get_tree+0x1069/0x1370 [ 93.757911][ T5320] ? __pfx_ecryptfs_get_tree+0x10/0x10 [ 93.757924][ T5320] vfs_get_tree+0x92/0x2a0 [ 93.757934][ T5320] do_new_mount+0x325/0xb00 [ 93.757947][ T5320] ? __pfx_do_new_mount+0x10/0x10 [ 93.757959][ T5320] ? ns_capable+0x89/0xe0 [ 93.757973][ T5320] ? path_mount+0x647/0x1050 [ 93.757986][ T5320] ? user_path_at+0xd4/0x160 [ 93.758001][ T5320] __se_sys_mount+0x31d/0x420 [ 93.758015][ T5320] ? __pfx___se_sys_mount+0x10/0x10 [ 93.758024][ T5320] ? __x64_sys_mount+0x20/0xc0 [ 93.758032][ T5320] do_syscall_64+0x166/0x520 [ 93.758039][ T5320] ? trace_irq_disable+0x3b/0x140 [ 93.758046][ T5320] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 93.758052][ T5320] ? clear_bhb_loop+0x70/0xc0 [ 93.758061][ T5320] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 93.758070][ T5320] RIP: 0033:0x7fc73999e1d9 [ 93.758079][ T5320] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 [ 93.758086][ T5320] RSP: 002b:00007fc735df4fe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 93.758097][ T5320] RAX: ffffffffffffffda RBX: 00007fc739c25fa0 RCX: 00007fc73999e1d9 [ 93.758104][ T5320] RDX: 0000200000000480 RSI: 0000200000000000 RDI: 0000200000000400 [ 93.758112][ T5320] RBP: 00007fc735df5050 R08: 0000200000000500 R09: 0000000000000000 [ 93.758118][ T5320] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 [ 93.758125][ T5320] R13: 00007fc739c26038 R14: 00007fc739c25fa0 R15: 00007ffc3b695e78 [ 93.758136][ T5320] [ 93.758139][ T5320] [ 93.758142][ T5320] Allocated by task 5320: [ 93.758147][ T5320] kasan_save_track+0x3e/0x80 [ 93.758154][ T5320] __kasan_slab_alloc+0x6c/0x80 [ 93.758161][ T5320] kmem_cache_alloc_noprof+0x2b9/0x600 [ 93.758171][ T5320] ecryptfs_init_fs_context+0x70/0x1b0 [ 93.758178][ T5320] alloc_fs_context+0x9a3/0xd00 [ 93.758184][ T5320] do_new_mount+0x177/0xb00 [ 93.758191][ T5320] __se_sys_mount+0x31d/0x420 [ 93.758198][ T5320] do_syscall_64+0x166/0x520 [ 93.758204][ T5320] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 93.758210][ T5320] [ 93.758211][ T5320] Freed by task 5320: [ 93.758214][ T5320] kasan_save_track+0x3e/0x80 [ 93.758220][ T5320] kasan_save_free_info+0x40/0x50 [ 93.758227][ T5320] __kasan_slab_free+0x5c/0x80 [ 93.758233][ T5320] kmem_cache_free+0x182/0x650 [ 93.758239][ T5320] deactivate_locked_super+0xbe/0x110 [ 93.758246][ T5320] ecryptfs_get_tree+0xff6/0x1370 [ 93.758252][ T5320] vfs_get_tree+0x92/0x2a0 [ 93.758256][ T5320] do_new_mount+0x325/0xb00 [ 93.758263][ T5320] __se_sys_mount+0x31d/0x420 [ 93.758270][ T5320] do_syscall_64+0x166/0x520 [ 93.758275][ T5320] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 93.758281][ T5320] [ 93.758282][ T5320] The buggy address belongs to the object at ffff8880441e1a80 [ 93.758282][ T5320] which belongs to the cache ecryptfs_sb_cache of size 280 [ 93.758288][ T5320] The buggy address is located 16 bytes inside of [ 93.758288][ T5320] freed 280-byte region [ffff8880441e1a80, ffff8880441e1b98) [ 93.758294][ T5320] [ 93.758296][ T5320] The buggy address belongs to the physical page: [ 93.758300][ T5320] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880441e1c00 pfn:0x441e1 [ 93.758307][ T5320] flags: 0x4fff00000000200(workingset|node=1|zone=1|lastcpupid=0x7ff) [ 93.758314][ T5320] page_type: f5(slab) [ 93.758322][ T5320] raw: 04fff00000000200 ffff888033575000 ffff8880335714c8 ffff8880335714c8 [ 93.758327][ T5320] raw: ffff8880441e1c00 00000002000a0008 00000000f5000000 0000000000000000 [ 93.758330][ T5320] page dumped because: kasan: bad access detected [ 93.758334][ T5320] page_owner tracks the page as allocated [ 93.758336][ T5320] page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5320, tgid 5319 (syz.0.0), ts 93755154779 [ 93.758348][ T5320] post_alloc_hook+0x1f9/0x250 [ 93.758362][ T5320] get_page_from_freelist+0x2209/0x2280 [ 93.758372][ T5320] __alloc_frozen_pages_noprof+0x217/0x5a0 [ 93.758381][ T5320] allocate_slab+0x7d/0x620 [ 93.758393][ T5320] refill_objects+0x2d5/0x350 [ 93.758404][ T5320] __pcs_replace_empty_main+0x2c8/0x6c0 [ 93.758416][ T5320] kmem_cache_alloc_noprof+0x399/0x600 [ 93.758429][ T5320] ecryptfs_init_fs_context+0x70/0x1b0 [ 93.758436][ T5320] alloc_fs_context+0x9a3/0xd00 [ 93.758442][ T5320] do_new_mount+0x177/0xb00 [ 93.758448][ T5320] __se_sys_mount+0x31d/0x420 [ 93.758455][ T5320] do_syscall_64+0x166/0x520 [ 93.758461][ T5320] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 93.758466][ T5320] page last free pid 9 tgid 9 ts 91031925736 stack trace: [ 93.758471][ T5320] __free_frozen_pages+0xc93/0xd90 [ 93.758479][ T5320] __slab_free+0x274/0x2c0 [ 93.758484][ T5320] qlist_free_all+0x99/0x100 [ 93.758489][ T5320] kasan_quarantine_reduce+0x148/0x160 [ 93.758495][ T5320] __kasan_slab_alloc+0x22/0x80 [ 93.758501][ T5320] __kmalloc_cache_noprof+0x29f/0x600 [ 93.758506][ T5320] nsim_fib_event+0xf37/0xa3a0 [ 93.758513][ T5320] nsim_fib_event_work+0x244/0x3b0 [ 93.758519][ T5320] process_scheduled_works+0xc3d/0x1630 [ 93.758527][ T5320] worker_thread+0xa47/0xfb0 [ 93.758534][ T5320] kthread+0x38b/0x480 [ 93.758539][ T5320] ret_from_fork+0x514/0xb70 [ 93.758545][ T5320] ret_from_fork_asm+0x1a/0x30 [ 93.758550][ T5320] [ 93.758552][ T5320] Memory state around the buggy address: [ 93.758555][ T5320] ffff8880441e1980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 93.758559][ T5320] ffff8880441e1a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 93.758564][ T5320] >ffff8880441e1a80: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 93.758567][ T5320] ^ [ 93.758570][ T5320] ffff8880441e1b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 93.758574][ T5320] ffff8880441e1b80: fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc fc [ 93.758577][ T5320] ================================================================== [ 93.758581][ T5320] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 94.162813][ T5320] CPU: 0 UID: 0 PID: 5320 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 94.166833][ T5320] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 94.171266][ T5320] Call Trace: [ 94.172737][ T5320] [ 94.174116][ T5320] vpanic+0x56d/0xa60 [ 94.175944][ T5320] ? __pfx_vpanic+0x10/0x10 [ 94.178008][ T5320] panic+0xc5/0xd0 [ 94.179779][ T5320] ? __pfx_panic+0x10/0x10 [ 94.181676][ T5320] ? ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300 [ 94.184524][ T5320] ? ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300 [ 94.187287][ T5320] ? ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300 [ 94.190295][ T5320] ? ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300 [ 94.193092][ T5320] check_panic_on_warn+0x89/0xb0 [ 94.195360][ T5320] ? ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300 [ 94.198282][ T5320] end_report+0x73/0x170 [ 94.200124][ T5320] ? ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300 [ 94.203001][ T5320] kasan_report+0x128/0x150 [ 94.205009][ T5320] ? ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300 [ 94.208024][ T5320] ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300 [ 94.210651][ T5320] ? put_super+0x295/0x2f0 [ 94.212503][ T5320] ecryptfs_get_tree+0x1069/0x1370 [ 94.214700][ T5320] ? __pfx_ecryptfs_get_tree+0x10/0x10 [ 94.217024][ T5320] vfs_get_tree+0x92/0x2a0 [ 94.219005][ T5320] do_new_mount+0x325/0xb00 [ 94.221085][ T5320] ? __pfx_do_new_mount+0x10/0x10 [ 94.223369][ T5320] ? ns_capable+0x89/0xe0 [ 94.225345][ T5320] ? path_mount+0x647/0x1050 [ 94.227377][ T5320] ? user_path_at+0xd4/0x160 [ 94.229436][ T5320] __se_sys_mount+0x31d/0x420 [ 94.231573][ T5320] ? __pfx___se_sys_mount+0x10/0x10 [ 94.233856][ T5320] ? __x64_sys_mount+0x20/0xc0 [ 94.235978][ T5320] do_syscall_64+0x166/0x520 [ 94.238031][ T5320] ? trace_irq_disable+0x3b/0x140 [ 94.240233][ T5320] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 94.242581][ T5320] ? clear_bhb_loop+0x70/0xc0 [ 94.244375][ T5320] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 94.246741][ T5320] RIP: 0033:0x7fc73999e1d9 [ 94.248759][ T5320] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 [ 94.257258][ T5320] RSP: 002b:00007fc735df4fe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 94.261153][ T5320] RAX: ffffffffffffffda RBX: 00007fc739c25fa0 RCX: 00007fc73999e1d9 [ 94.264976][ T5320] RDX: 0000200000000480 RSI: 0000200000000000 RDI: 0000200000000400 [ 94.268625][ T5320] RBP: 00007fc735df5050 R08: 0000200000000500 R09: 0000000000000000 [ 94.272525][ T5320] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 [ 94.276032][ T5320] R13: 00007fc739c26038 R14: 00007fc739c25fa0 R15: 00007ffc3b695e78 [ 94.279536][ T5320] [ 94.283955][ T5320] Kernel Offset: disabled [ 94.285915][ T5320] Rebooting in 86400 seconds..