program:
getsockopt$TIPC_DEST_DROPPABLE(0xffffffffffffffff, 0x10f, 0x81, &(0x7f0000000080), &(0x7f00000000c0)=0x4)
mkdirat(0xffffffffffffff9c, &(0x7f0000000400)='./proc\x00', 0x1ff)
mount(0x0, &(0x7f0000000440)='./proc\x00', &(0x7f0000000480)='proc\x00', 0x0, 0x0)
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: 46)
[ 87.629577][ T5284] Bluetooth: hci0: command tx timeout
[ 87.787675][ T5320] FAULT_INJECTION: forcing a failure.
[ 87.787675][ T5320] name failslab, interval 1, probability 0, space 0, times 1
[ 87.787699][ T5320] CPU: 0 UID: 0 PID: 5320 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full)
[ 87.787711][ T5320] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 87.787718][ T5320] Call Trace:
[ 87.787722][ T5320]
[ 87.787728][ T5320] dump_stack_lvl+0xe8/0x150
[ 87.787794][ T5320] should_fail_ex+0x410/0x560
[ 87.787841][ T5320] should_failslab+0xa8/0x100
[ 87.787855][ T5320] __kmalloc_cache_node_noprof+0xaa/0x620
[ 87.787873][ T5320] ? bdi_alloc+0x51/0x110
[ 87.787883][ T5320] ? bdi_alloc+0x51/0x110
[ 87.787896][ T5320] bdi_alloc+0x51/0x110
[ 87.787906][ T5320] super_setup_bdi_name+0xa8/0x210
[ 87.787921][ T5320] ? __pfx_set_anon_super_fc+0x10/0x10
[ 87.787940][ T5320] ? __pfx_super_setup_bdi_name+0x10/0x10
[ 87.787954][ T5320] ? ecryptfs_get_tree+0x5ba/0x1370
[ 87.787978][ T5320] ecryptfs_get_tree+0x641/0x1370
[ 87.787998][ T5320] ? __pfx_ecryptfs_get_tree+0x10/0x10
[ 87.788022][ T5320] vfs_get_tree+0x92/0x2a0
[ 87.788038][ T5320] do_new_mount+0x319/0xdc0
[ 87.788056][ T5320] ? __pfx_do_new_mount+0x10/0x10
[ 87.788070][ T5320] ? ns_capable+0x89/0xe0
[ 87.788085][ T5320] ? path_mount+0x647/0x1050
[ 87.788099][ T5320] ? user_path_at+0xd4/0x160
[ 87.788116][ T5320] __se_sys_mount+0x31d/0x420
[ 87.788138][ T5320] ? __pfx___se_sys_mount+0x10/0x10
[ 87.788155][ T5320] ? __x64_sys_mount+0x20/0xc0
[ 87.788169][ T5320] do_syscall_64+0x166/0x520
[ 87.788220][ T5320] ? trace_irq_disable+0x3b/0x140
[ 87.788231][ T5320] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 87.788243][ T5320] ? clear_bhb_loop+0x70/0xc0
[ 87.788257][ T5320] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 87.788267][ T5320] RIP: 0033:0x7f2d3d19e159
[ 87.788279][ 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
[ 87.788288][ T5320] RSP: 002b:00007f2d3dfe0fe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
[ 87.788302][ T5320] RAX: ffffffffffffffda RBX: 00007f2d3d425fa0 RCX: 00007f2d3d19e159
[ 87.788309][ T5320] RDX: 0000200000000480 RSI: 0000200000000000 RDI: 0000200000000400
[ 87.788316][ T5320] RBP: 00007f2d3dfe1050 R08: 0000200000000500 R09: 0000000000000000
[ 87.788328][ T5320] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
[ 87.788335][ T5320] R13: 00007f2d3d426038 R14: 00007f2d3d425fa0 R15: 00007ffc24323a58
[ 87.788352][ T5320]
[ 87.788463][ T5320] ==================================================================
[ 87.788469][ T5320] BUG: KASAN: slab-use-after-free in ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300
[ 87.788484][ T5320] Read of size 4 at addr ffff888042f63a90 by task syz.0.0/5320
[ 87.788493][ T5320]
[ 87.788498][ T5320] CPU: 0 UID: 0 PID: 5320 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full)
[ 87.788509][ T5320] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 87.788515][ T5320] Call Trace:
[ 87.788519][ T5320]
[ 87.788523][ T5320] dump_stack_lvl+0xe8/0x150
[ 87.788538][ T5320] print_address_description+0x55/0x1e0
[ 87.788552][ T5320] ? ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300
[ 87.788564][ T5320] print_report+0x58/0x70
[ 87.788575][ T5320] kasan_report+0x117/0x150
[ 87.788588][ T5320] ? ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300
[ 87.788601][ T5320] ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300
[ 87.788613][ T5320] ? put_super+0x295/0x2f0
[ 87.788626][ T5320] ecryptfs_get_tree+0x1069/0x1370
[ 87.788642][ T5320] ? __pfx_ecryptfs_get_tree+0x10/0x10
[ 87.788660][ T5320] vfs_get_tree+0x92/0x2a0
[ 87.788675][ T5320] do_new_mount+0x319/0xdc0
[ 87.788689][ T5320] ? __pfx_do_new_mount+0x10/0x10
[ 87.788701][ T5320] ? ns_capable+0x89/0xe0
[ 87.788744][ T5320] ? path_mount+0x647/0x1050
[ 87.788758][ T5320] ? user_path_at+0xd4/0x160
[ 87.788772][ T5320] __se_sys_mount+0x31d/0x420
[ 87.788786][ T5320] ? __pfx___se_sys_mount+0x10/0x10
[ 87.788799][ T5320] ? __x64_sys_mount+0x20/0xc0
[ 87.788812][ T5320] do_syscall_64+0x166/0x520
[ 87.788824][ T5320] ? trace_irq_disable+0x3b/0x140
[ 87.788834][ T5320] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 87.788845][ T5320] ? clear_bhb_loop+0x70/0xc0
[ 87.788855][ T5320] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 87.788866][ T5320] RIP: 0033:0x7f2d3d19e159
[ 87.788875][ 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
[ 87.788883][ T5320] RSP: 002b:00007f2d3dfe0fe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
[ 87.788894][ T5320] RAX: ffffffffffffffda RBX: 00007f2d3d425fa0 RCX: 00007f2d3d19e159
[ 87.788901][ T5320] RDX: 0000200000000480 RSI: 0000200000000000 RDI: 0000200000000400
[ 87.788908][ T5320] RBP: 00007f2d3dfe1050 R08: 0000200000000500 R09: 0000000000000000
[ 87.788914][ T5320] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
[ 87.788921][ T5320] R13: 00007f2d3d426038 R14: 00007f2d3d425fa0 R15: 00007ffc24323a58
[ 87.788931][ T5320]
[ 87.788935][ T5320]
[ 87.788938][ T5320] Allocated by task 5320:
[ 87.788943][ T5320] kasan_save_track+0x3e/0x80
[ 87.788952][ T5320] __kasan_slab_alloc+0x6c/0x80
[ 87.788962][ T5320] kmem_cache_alloc_noprof+0x2b9/0x600
[ 87.788974][ T5320] ecryptfs_init_fs_context+0x70/0x1b0
[ 87.788988][ T5320] alloc_fs_context+0x9a3/0xd00
[ 87.789002][ T5320] do_new_mount+0x17f/0xdc0
[ 87.789012][ T5320] __se_sys_mount+0x31d/0x420
[ 87.789023][ T5320] do_syscall_64+0x166/0x520
[ 87.789034][ T5320] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 87.789043][ T5320]
[ 87.789046][ T5320] Freed by task 5320:
[ 87.789050][ T5320] kasan_save_track+0x3e/0x80
[ 87.789058][ T5320] kasan_save_free_info+0x40/0x50
[ 87.789069][ T5320] __kasan_slab_free+0x5c/0x80
[ 87.789077][ T5320] kmem_cache_free+0x182/0x650
[ 87.789084][ T5320] deactivate_locked_super+0xbe/0x110
[ 87.789094][ T5320] ecryptfs_get_tree+0xff6/0x1370
[ 87.789107][ T5320] vfs_get_tree+0x92/0x2a0
[ 87.789119][ T5320] do_new_mount+0x319/0xdc0
[ 87.789130][ T5320] __se_sys_mount+0x31d/0x420
[ 87.789141][ T5320] do_syscall_64+0x166/0x520
[ 87.789152][ T5320] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 87.789160][ T5320]
[ 87.789163][ T5320] The buggy address belongs to the object at ffff888042f63a80
[ 87.789163][ T5320] which belongs to the cache ecryptfs_sb_cache of size 280
[ 87.789169][ T5320] The buggy address is located 16 bytes inside of
[ 87.789169][ T5320] freed 280-byte region [ffff888042f63a80, ffff888042f63b98)
[ 87.789179][ T5320]
[ 87.789182][ T5320] The buggy address belongs to the physical page:
[ 87.789187][ T5320] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888042f63c00 pfn:0x42f63
[ 87.789197][ T5320] flags: 0x4fff00000000200(workingset|node=1|zone=1|lastcpupid=0x7ff)
[ 87.789207][ T5320] page_type: f5(slab)
[ 87.789216][ T5320] raw: 04fff00000000200 ffff888030ed2140 ffff888030ed1408 ffff888030ed1408
[ 87.789226][ T5320] raw: ffff888042f63c00 00000002000a0008 00000000f5000000 0000000000000000
[ 87.789231][ T5320] page dumped because: kasan: bad access detected
[ 87.789236][ T5320] page_owner tracks the page as allocated
[ 87.789240][ 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 87786156434
[ 87.789256][ T5320] post_alloc_hook+0x1f9/0x250
[ 87.789269][ T5320] get_page_from_freelist+0x2209/0x2280
[ 87.789279][ T5320] __alloc_frozen_pages_noprof+0x217/0x5a0
[ 87.789287][ T5320] allocate_slab+0x7d/0x620
[ 87.789298][ T5320] refill_objects+0x2d5/0x350
[ 87.789308][ T5320] __pcs_replace_empty_main+0x2c8/0x6c0
[ 87.789319][ T5320] kmem_cache_alloc_noprof+0x399/0x600
[ 87.789338][ T5320] ecryptfs_init_fs_context+0x70/0x1b0
[ 87.789351][ T5320] alloc_fs_context+0x9a3/0xd00
[ 87.789364][ T5320] do_new_mount+0x17f/0xdc0
[ 87.789374][ T5320] __se_sys_mount+0x31d/0x420
[ 87.789385][ T5320] do_syscall_64+0x166/0x520
[ 87.789396][ T5320] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 87.789405][ T5320] page last free pid 15 tgid 15 ts 85095720418 stack trace:
[ 87.789412][ T5320] __free_frozen_pages+0xc93/0xd90
[ 87.789425][ T5320] rcu_core+0x926/0x1260
[ 87.789436][ T5320] handle_softirqs+0x226/0x860
[ 87.789448][ T5320] run_ksoftirqd+0x36/0x60
[ 87.789461][ T5320] smpboot_thread_fn+0x565/0xa70
[ 87.789474][ T5320] kthread+0x38b/0x480
[ 87.789483][ T5320] ret_from_fork+0x514/0xb70
[ 87.789492][ T5320] ret_from_fork_asm+0x1a/0x30
[ 87.789506][ T5320]
[ 87.789509][ T5320] Memory state around the buggy address:
[ 87.789514][ T5320] ffff888042f63980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[ 87.789520][ T5320] ffff888042f63a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[ 87.789527][ T5320] >ffff888042f63a80: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 87.789532][ T5320] ^
[ 87.789537][ T5320] ffff888042f63b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 87.789544][ T5320] ffff888042f63b80: fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc fc
[ 87.789548][ T5320] ==================================================================
[ 87.789555][ T5320] Kernel panic - not syncing: KASAN: panic_on_warn set ...
[ 88.174769][ T5320] CPU: 0 UID: 0 PID: 5320 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full)
[ 88.178672][ T5320] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 88.182940][ T5320] Call Trace:
[ 88.184598][ T5320]
[ 88.186271][ T5320] vpanic+0x56d/0xa60
[ 88.188339][ T5320] ? __pfx_vpanic+0x10/0x10
[ 88.190708][ T5320] panic+0xc5/0xd0
[ 88.192436][ T5320] ? __pfx_panic+0x10/0x10
[ 88.194252][ T5320] ? ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300
[ 88.196988][ T5320] ? ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300
[ 88.199745][ T5320] ? ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300
[ 88.202457][ T5320] ? ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300
[ 88.205110][ T5320] check_panic_on_warn+0x89/0xb0
[ 88.207269][ T5320] ? ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300
[ 88.209921][ T5320] end_report+0x73/0x170
[ 88.211590][ T5320] ? ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300
[ 88.214277][ T5320] kasan_report+0x128/0x150
[ 88.216295][ T5320] ? ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300
[ 88.219140][ T5320] ecryptfs_destroy_mount_crypt_stat+0x2ee/0x300
[ 88.222873][ T5320] ? put_super+0x295/0x2f0
[ 88.224843][ T5320] ecryptfs_get_tree+0x1069/0x1370
[ 88.227107][ T5320] ? __pfx_ecryptfs_get_tree+0x10/0x10
[ 88.229515][ T5320] vfs_get_tree+0x92/0x2a0
[ 88.231435][ T5320] do_new_mount+0x319/0xdc0
[ 88.233404][ T5320] ? __pfx_do_new_mount+0x10/0x10
[ 88.235535][ T5320] ? ns_capable+0x89/0xe0
[ 88.237568][ T5320] ? path_mount+0x647/0x1050
[ 88.239727][ T5320] ? user_path_at+0xd4/0x160
[ 88.241765][ T5320] __se_sys_mount+0x31d/0x420
[ 88.243823][ T5320] ? __pfx___se_sys_mount+0x10/0x10
[ 88.246114][ T5320] ? __x64_sys_mount+0x20/0xc0
[ 88.248168][ T5320] do_syscall_64+0x166/0x520
[ 88.250108][ T5320] ? trace_irq_disable+0x3b/0x140
[ 88.252315][ T5320] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 88.254993][ T5320] ? clear_bhb_loop+0x70/0xc0
[ 88.257177][ T5320] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 88.259794][ T5320] RIP: 0033:0x7f2d3d19e159
[ 88.261627][ 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
[ 88.269176][ T5320] RSP: 002b:00007f2d3dfe0fe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
[ 88.272928][ T5320] RAX: ffffffffffffffda RBX: 00007f2d3d425fa0 RCX: 00007f2d3d19e159
[ 88.276433][ T5320] RDX: 0000200000000480 RSI: 0000200000000000 RDI: 0000200000000400
[ 88.280029][ T5320] RBP: 00007f2d3dfe1050 R08: 0000200000000500 R09: 0000000000000000
[ 88.283536][ T5320] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
[ 88.287082][ T5320] R13: 00007f2d3d426038 R14: 00007f2d3d425fa0 R15: 00007ffc24323a58
[ 88.290548][ T5320]
[ 88.292303][ T5320] Kernel Offset: disabled
[ 88.294237][ T5320] Rebooting in 86400 seconds..