program:
mkdirat(0xffffffffffffff9c, &(0x7f0000004000)='./mnt\x00', 0x1ff)
getsockopt$TIPC_DEST_DROPPABLE(0xffffffffffffffff, 0x10f, 0x81, &(0x7f0000000080), &(0x7f00000000c0)=0x4)
add_key$user(&(0x7f00000003c0), &(0x7f0000000440), &(0x7f00000000c0), 0xc9, 0xfffffffffffffffd)
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')
llistxattr(&(0x7f0000000040)='./mnt/file0\x00', &(0x7f0000000580)=""/4096, 0x1000)
r0 = socket$inet_udp(0x2, 0x2, 0x0)
setsockopt$sock_int(r0, 0x1, 0xf, &(0x7f0000000180)=0x100000b3, 0x4)
bind$inet(r0, &(0x7f00000001c0)={0x2, 0x4e20, @empty}, 0x10)
setsockopt$SO_ATTACH_FILTER(r0, 0x1, 0x33, &(0x7f0000000200)={0x1, &(0x7f0000000240)=[{0x16, 0x2, 0x1, 0x40000000}]}, 0x10)
syz_emit_ethernet(0x32, &(0x7f0000000280)={@link_local={0x1, 0x80, 0xc2, 0x0, 0x0, 0x3}, @empty, @void, {@ipv4={0x800, @udp={{0x5, 0x4, 0x0, 0x0, 0x24, 0x100, 0x0, 0x0, 0x11, 0x0, @empty, @multicast1}, {0x0, 0x4e20, 0x10, 0x0, @gue={{0x2, 0x1, 0x1, 0xc0, 0x100, @val=0x80}}}}}}}, 0x0)
lremovexattr(&(0x7f0000000100)='./mnt\x00', &(0x7f0000000140)=@known='security.apparmor\x00')
[ 93.395522][ T5283] Bluetooth: hci0: command tx timeout
[ 93.443202][ T1365] cfg80211: failed to load regulatory.db
[ 93.601397][ T5330] ==================================================================
[ 93.601412][ T5330] BUG: KASAN: slab-use-after-free in ecryptfs_write_tag_70_packet+0x1241/0x12e0
[ 93.601543][ T5330] Read of size 4 at addr ffff888046c83a98 by task syz.0.0/5330
[ 93.601557][ T5330]
[ 93.601568][ T5330] CPU: 0 UID: 0 PID: 5330 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full)
[ 93.601581][ T5330] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 93.601599][ T5330] Call Trace:
[ 93.601626][ T5330]
[ 93.601632][ T5330] dump_stack_lvl+0xe8/0x150
[ 93.601671][ T5330] print_address_description+0x55/0x1e0
[ 93.601689][ T5330] ? ecryptfs_write_tag_70_packet+0x1241/0x12e0
[ 93.601710][ T5330] print_report+0x58/0x70
[ 93.601727][ T5330] kasan_report+0x117/0x150
[ 93.601746][ T5330] ? ecryptfs_write_tag_70_packet+0x1241/0x12e0
[ 93.601771][ T5330] ecryptfs_write_tag_70_packet+0x1241/0x12e0
[ 93.601803][ T5330] ecryptfs_encrypt_and_encode_filename+0x576/0x1580
[ 93.601832][ T5330] ? __pfx_ecryptfs_encrypt_and_encode_filename+0x10/0x10
[ 93.601856][ T5330] ? d_alloc_parallel+0x1535/0x16b0
[ 93.601865][ T5330] ecryptfs_lookup+0x20e/0x780
[ 93.601879][ T5330] ? __pfx_ecryptfs_lookup+0x10/0x10
[ 93.601905][ T5330] __lookup_slow+0x1fb/0x2f0
[ 93.601929][ T5330] lookup_slow+0x53/0x70
[ 93.601952][ T5330] path_lookupat+0x3f5/0x8c0
[ 93.601977][ T5330] filename_lookup+0x265/0x5d0
[ 93.601994][ T5330] ? __pfx_filename_lookup+0x10/0x10
[ 93.602009][ T5330] ? strncpy_from_user+0x150/0x2c0
[ 93.602022][ T5330] path_listxattrat+0x13b/0x3f0
[ 93.602034][ T5330] ? __pfx_path_listxattrat+0x10/0x10
[ 93.602050][ T5330] do_syscall_64+0x166/0x520
[ 93.602125][ T5330] ? trace_irq_disable+0x3b/0x140
[ 93.602142][ T5330] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 93.602158][ T5330] ? clear_bhb_loop+0x70/0xc0
[ 93.602175][ T5330] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 93.602189][ T5330] RIP: 0033:0x7fc2ec19e559
[ 93.602207][ T5330] 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.602217][ T5330] RSP: 002b:00007fc2e85f4fe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000c3
[ 93.602238][ T5330] RAX: ffffffffffffffda RBX: 00007fc2ec425fa0 RCX: 00007fc2ec19e559
[ 93.602246][ T5330] RDX: 0000000000001000 RSI: 0000200000000580 RDI: 0000200000000040
[ 93.602256][ T5330] RBP: 00007fc2ec2358b0 R08: 0000000000000000 R09: 0000000000000000
[ 93.602261][ T5330] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
[ 93.602269][ T5330] R13: 00007fc2ec426038 R14: 00007fc2ec425fa0 R15: 00007fffcaf4ea08
[ 93.602280][ T5330]
[ 93.602283][ T5330]
[ 93.602285][ T5330] Allocated by task 5330:
[ 93.602289][ T5330] kasan_save_track+0x3e/0x80
[ 93.602300][ T5330] __kasan_kmalloc+0x93/0xb0
[ 93.602310][ T5330] __kvmalloc_node_noprof+0x50f/0x820
[ 93.602317][ T5330] __se_sys_add_key+0x289/0x420
[ 93.602327][ T5330] do_syscall_64+0x166/0x520
[ 93.602336][ T5330] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 93.602352][ T5330]
[ 93.602356][ T5330] Freed by task 5330:
[ 93.602360][ T5330] kasan_save_track+0x3e/0x80
[ 93.602370][ T5330] kasan_save_free_info+0x40/0x50
[ 93.602388][ T5330] __kasan_slab_free+0x5c/0x80
[ 93.602402][ T5330] kfree+0x1c5/0x650
[ 93.602415][ T5330] __se_sys_add_key+0x3a3/0x420
[ 93.602427][ T5330] do_syscall_64+0x166/0x520
[ 93.602444][ T5330] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 93.602454][ T5330]
[ 93.602461][ T5330] The buggy address belongs to the object at ffff888046c83a00
[ 93.602461][ T5330] which belongs to the cache kmalloc-256 of size 256
[ 93.602470][ T5330] The buggy address is located 152 bytes inside of
[ 93.602470][ T5330] freed 256-byte region [ffff888046c83a00, ffff888046c83b00)
[ 93.602484][ T5330]
[ 93.602487][ T5330] The buggy address belongs to the physical page:
[ 93.602493][ T5330] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x46c83
[ 93.602521][ T5330] flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
[ 93.602535][ T5330] page_type: f5(slab)
[ 93.602550][ T5330] raw: 04fff00000000000 ffff88801c041b40 dead000000000122 0000000000000000
[ 93.602563][ T5330] raw: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000
[ 93.602573][ T5330] page dumped because: kasan: bad access detected
[ 93.602579][ T5330] page_owner tracks the page as allocated
[ 93.602587][ T5330] page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5282, tgid 5282 (syz-executor), ts 91294784638
[ 93.602610][ T5330] post_alloc_hook+0x1f9/0x250
[ 93.602623][ T5330] get_page_from_freelist+0x2209/0x2280
[ 93.602633][ T5330] __alloc_frozen_pages_noprof+0x217/0x5a0
[ 93.602643][ T5330] allocate_slab+0x7d/0x620
[ 93.602650][ T5330] refill_objects+0x2d5/0x350
[ 93.602661][ T5330] __pcs_replace_empty_main+0x2c8/0x6c0
[ 93.602679][ T5330] __kmalloc_noprof+0x47b/0x720
[ 93.602691][ T5330] __list_lru_init+0xba/0x5d0
[ 93.602701][ T5330] sget_fc+0xf56/0x1a60
[ 93.602717][ T5330] get_tree_nodev+0x2a/0x150
[ 93.602735][ T5330] vfs_get_tree+0x92/0x2a0
[ 93.602747][ T5330] do_new_mount+0x325/0xb00
[ 93.602764][ T5330] __se_sys_mount+0x31d/0x420
[ 93.602776][ T5330] do_syscall_64+0x166/0x520
[ 93.602782][ T5330] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 93.602791][ T5330] page last free pid 5282 tgid 5282 ts 90669879732 stack trace:
[ 93.602796][ T5330] __free_frozen_pages+0xc93/0xd90
[ 93.602808][ T5330] tlb_remove_table_rcu+0x85/0x100
[ 93.602818][ T5330] rcu_core+0x926/0x1260
[ 93.602825][ T5330] handle_softirqs+0x226/0x860
[ 93.602833][ T5330] __irq_exit_rcu+0xcb/0x220
[ 93.602844][ T5330] irq_exit_rcu+0x9/0x30
[ 93.602851][ T5330] sysvec_apic_timer_interrupt+0xa6/0xc0
[ 93.602861][ T5330] asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 93.602867][ T5330]
[ 93.602869][ T5330] Memory state around the buggy address:
[ 93.602873][ T5330] ffff888046c83980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[ 93.602881][ T5330] ffff888046c83a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 93.602885][ T5330] >ffff888046c83a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 93.602891][ T5330] ^
[ 93.602895][ T5330] ffff888046c83b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[ 93.602899][ T5330] ffff888046c83b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[ 93.602905][ T5330] ==================================================================
[ 93.602911][ T5330] Kernel panic - not syncing: KASAN: panic_on_warn set ...
[ 93.925710][ T5330] CPU: 0 UID: 0 PID: 5330 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full)
[ 93.930560][ T5330] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 93.935811][ T5330] Call Trace:
[ 93.937701][ T5330]
[ 93.939298][ T5330] vpanic+0x56d/0xa60
[ 93.941562][ T5330] ? __pfx_vpanic+0x10/0x10
[ 93.944055][ T5330] panic+0xc5/0xd0
[ 93.946280][ T5330] ? __pfx_panic+0x10/0x10
[ 93.948724][ T5330] ? ecryptfs_write_tag_70_packet+0x1241/0x12e0
[ 93.951961][ T5330] ? rcu_is_watching+0x16/0xb0
[ 93.954671][ T5330] ? ecryptfs_write_tag_70_packet+0x1241/0x12e0
[ 93.958117][ T5330] check_panic_on_warn+0x89/0xb0
[ 93.960756][ T5330] ? ecryptfs_write_tag_70_packet+0x1241/0x12e0
[ 93.964541][ T5330] end_report+0x73/0x170
[ 93.966670][ T5330] ? ecryptfs_write_tag_70_packet+0x1241/0x12e0
[ 93.969672][ T5330] kasan_report+0x128/0x150
[ 93.972166][ T5330] ? ecryptfs_write_tag_70_packet+0x1241/0x12e0
[ 93.975656][ T5330] ecryptfs_write_tag_70_packet+0x1241/0x12e0
[ 93.978960][ T5330] ecryptfs_encrypt_and_encode_filename+0x576/0x1580
[ 93.982502][ T5330] ? __pfx_ecryptfs_encrypt_and_encode_filename+0x10/0x10
[ 93.986430][ T5330] ? d_alloc_parallel+0x1535/0x16b0
[ 93.989448][ T5330] ecryptfs_lookup+0x20e/0x780
[ 93.992100][ T5330] ? __pfx_ecryptfs_lookup+0x10/0x10
[ 93.994884][ T5330] __lookup_slow+0x1fb/0x2f0
[ 93.997469][ T5330] lookup_slow+0x53/0x70
[ 93.999706][ T5330] path_lookupat+0x3f5/0x8c0
[ 94.002273][ T5330] filename_lookup+0x265/0x5d0
[ 94.004888][ T5330] ? __pfx_filename_lookup+0x10/0x10
[ 94.007831][ T5330] ? strncpy_from_user+0x150/0x2c0
[ 94.010607][ T5330] path_listxattrat+0x13b/0x3f0
[ 94.013365][ T5330] ? __pfx_path_listxattrat+0x10/0x10
[ 94.016203][ T5330] do_syscall_64+0x166/0x520
[ 94.018712][ T5330] ? trace_irq_disable+0x3b/0x140
[ 94.021374][ T5330] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 94.024508][ T5330] ? clear_bhb_loop+0x70/0xc0
[ 94.026925][ T5330] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 94.029683][ T5330] RIP: 0033:0x7fc2ec19e559
[ 94.031483][ T5330] 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.040503][ T5330] RSP: 002b:00007fc2e85f4fe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000c3
[ 94.044823][ T5330] RAX: ffffffffffffffda RBX: 00007fc2ec425fa0 RCX: 00007fc2ec19e559
[ 94.049211][ T5330] RDX: 0000000000001000 RSI: 0000200000000580 RDI: 0000200000000040
[ 94.053528][ T5330] RBP: 00007fc2ec2358b0 R08: 0000000000000000 R09: 0000000000000000
[ 94.057825][ T5330] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
[ 94.061845][ T5330] R13: 00007fc2ec426038 R14: 00007fc2ec425fa0 R15: 00007fffcaf4ea08
[ 94.065207][ T5330]
[ 94.067190][ T5330] Kernel Offset: disabled
[ 94.069523][ T5330] Rebooting in 86400 seconds..