Debian GNU/Linux 11 syzkaller ttyS0 Warning: Permanently added '[localhost]:42563' (ECDSA) to the list of known hosts. 2022/09/25 11:49:14 fuzzer started 2022/09/25 11:49:14 dialing manager at localhost:38881 syzkaller login: [ 38.007743] cgroup: Unknown subsys name 'net' [ 38.098125] cgroup: Unknown subsys name 'rlimit' [ 47.350001] ================================================================== [ 47.351103] BUG: KASAN: use-after-free in __lock_acquire+0x42c9/0x5e70 [ 47.352051] Read of size 8 at addr ffff88800b7a90f8 by task syz-executor/279 [ 47.353289] [ 47.353539] CPU: 0 PID: 279 Comm: syz-executor Not tainted 6.0.0-rc6-next-20220923 #1 [ 47.355274] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 [ 47.357004] Call Trace: [ 47.357376] [ 47.357703] dump_stack_lvl+0x8b/0xb3 [ 47.358276] print_report+0x172/0x475 [ 47.358839] ? __lock_acquire+0x42c9/0x5e70 [ 47.359471] kasan_report+0xbb/0x1c0 [ 47.360029] ? __lock_acquire+0x42c9/0x5e70 [ 47.360669] __lock_acquire+0x42c9/0x5e70 [ 47.361286] ? lock_chain_count+0x20/0x20 [ 47.361885] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 47.362661] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 47.363455] ? put_task_stack+0xe4/0x240 [ 47.364057] lock_acquire+0x1a2/0x530 [ 47.364635] ? kmemleak_scan+0x21d/0x16e0 [ 47.365251] ? lock_release+0x750/0x750 [ 47.365842] ? mark_held_locks+0x9e/0xe0 [ 47.366443] ? call_rcu+0x589/0xa30 [ 47.366990] ? call_rcu+0x589/0xa30 [ 47.367532] ? _raw_spin_lock_irq+0x41/0x50 [ 47.368176] _raw_spin_lock_irq+0x32/0x50 [ 47.368799] ? kmemleak_scan+0x21d/0x16e0 [ 47.369406] kmemleak_scan+0x21d/0x16e0 [ 47.369997] ? paint_ptr+0xc0/0xc0 [ 47.370534] ? strncpy_from_user+0x204/0x3e0 [ 47.371210] kmemleak_write+0x570/0x680 [ 47.371795] ? kmemleak_scan+0x16e0/0x16e0 [ 47.372415] ? debugfs_file_get+0x1ce/0x450 [ 47.373044] ? debugfs_file_put+0xd0/0xd0 [ 47.373649] full_proxy_write+0x11d/0x190 [ 47.374254] vfs_write+0x2cb/0xd90 [ 47.374807] ? full_proxy_poll+0x180/0x180 [ 47.375424] ? __ia32_sys_pread64+0x220/0x220 [ 47.376089] ? do_sys_openat2+0xa1/0x4c0 [ 47.376686] ? build_open_flags+0x6f0/0x6f0 [ 47.377315] ? xfd_validate_state+0x59/0x180 [ 47.377972] ? __fget_light+0x212/0x280 [ 47.378564] ksys_write+0x127/0x250 [ 47.379124] ? __ia32_sys_read+0xb0/0xb0 [ 47.379727] ? syscall_enter_from_user_mode+0x1d/0x50 [ 47.380471] ? syscall_enter_from_user_mode+0x1d/0x50 [ 47.381217] do_syscall_64+0x3b/0x90 [ 47.381774] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 47.382520] RIP: 0033:0x7fd7c503a5c3 [ 47.383077] Code: 16 00 00 00 eb ae 90 b8 6e 00 00 00 eb a6 e8 44 ef 04 00 0f 1f 40 00 64 8b 04 25 18 00 00 00 85 c0 75 14 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 55 c3 0f 1f 40 00 48 83 ec 28 48 89 54 24 18 [ 47.385641] RSP: 002b:00007fff241e2d78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 47.386726] RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007fd7c503a5c3 [ 47.387751] RDX: 0000000000000004 RSI: 00007fff241e2da0 RDI: 0000000000000003 [ 47.388776] RBP: 0000000000000003 R08: 0000000000000000 R09: 00007fff241e2cf0 [ 47.389791] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd7c50e0e61 [ 47.390825] R13: 00007fff241e2da0 R14: 0000000000000000 R15: 00007fd7c51226c0 [ 47.391859] [ 47.392209] [ 47.392462] Allocated by task 130: [ 47.392971] kasan_save_stack+0x1e/0x40 [ 47.393556] kasan_set_track+0x21/0x30 [ 47.394129] __kasan_slab_alloc+0x58/0x70 [ 47.394750] kmem_cache_alloc+0x1b1/0x3e0 [ 47.395360] __create_object+0x3d/0xc10 [ 47.395932] kmem_cache_alloc+0x23c/0x3e0 [ 47.396548] __alloc_file+0x21/0x240 [ 47.397086] alloc_empty_file+0x6d/0x170 [ 47.397678] alloc_file+0x59/0x800 [ 47.398199] alloc_file_pseudo+0x16a/0x250 [ 47.398823] sock_alloc_file+0x4f/0x1a0 [ 47.399418] __sys_socket+0x1a8/0x250 [ 47.399978] __x64_sys_socket+0x6f/0xb0 [ 47.400556] do_syscall_64+0x3b/0x90 [ 47.401122] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 47.401858] [ 47.402111] Freed by task 138: [ 47.402583] kasan_save_stack+0x1e/0x40 [ 47.403193] kasan_set_track+0x21/0x30 [ 47.403774] kasan_save_free_info+0x2a/0x50 [ 47.404407] __kasan_slab_free+0x106/0x190 [ 47.405019] kmem_cache_free+0xf7/0x610 [ 47.405609] rcu_core+0x7e2/0x2080 [ 47.406140] __do_softirq+0x1c3/0x8f5 [ 47.406713] [ 47.406965] Last potentially related work creation: [ 47.407670] kasan_save_stack+0x1e/0x40 [ 47.408250] __kasan_record_aux_stack+0x95/0xb0 [ 47.408946] call_rcu+0x6a/0xa30 [ 47.409447] kmem_cache_free+0xbd/0x610 [ 47.410026] rcu_core+0x7e2/0x2080 [ 47.410554] __do_softirq+0x1c3/0x8f5 [ 47.411133] [ 47.411385] Second to last potentially related work creation: [ 47.412212] kasan_save_stack+0x1e/0x40 [ 47.412801] __kasan_record_aux_stack+0x95/0xb0 [ 47.413492] call_rcu+0x6a/0xa30 [ 47.414000] __kmem_cache_free+0x91/0x400 [ 47.414613] walk_component+0x19a/0x5b0 [ 47.415203] path_lookupat+0x1ba/0x850 [ 47.415769] filename_lookup+0x1ce/0x590 [ 47.416369] user_path_at_empty+0x42/0x60 [ 47.416977] do_faccessat+0x127/0x810 [ 47.417537] do_syscall_64+0x3b/0x90 [ 47.418093] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 47.418849] [ 47.419101] The buggy address belongs to the object at ffff88800b7a90e0 [ 47.419101] which belongs to the cache kmemleak_object of size 368 [ 47.420897] The buggy address is located 24 bytes inside of [ 47.420897] 368-byte region [ffff88800b7a90e0, ffff88800b7a9250) [ 47.422492] [ 47.422754] The buggy address belongs to the physical page: [ 47.423533] page:00000000f3d90160 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffffea00003db400 pfn:0xb7a8 [ 47.425007] head:00000000f3d90160 order:1 compound_mapcount:0 compound_pincount:0 [ 47.426045] flags: 0x100000000010200(slab|head|node=0|zone=1) [ 47.426894] raw: 0100000000010200 ffff888007c4f780 dead000000120012 0000000000000000 [ 47.427970] raw: ffffea00003db400 dead000000000004 00000001ffffffff 0000000000000000 [ 47.429066] page dumped because: kasan: bad access detected [ 47.429840] [ 47.430087] Memory state around the buggy address: [ 47.430786] ffff88800b7a8f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.431799] ffff88800b7a9000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.432800] >ffff88800b7a9080: fb fb fb fb fc fc fc fc fc fc fc fc fa fb fb fb [ 47.433804] ^ [ 47.434806] ffff88800b7a9100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.435812] ffff88800b7a9180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.436816] ================================================================== [ 47.437825] Disabling lock debugging due to kernel taint VM DIAGNOSIS: 11:49:24 Registers: info registers vcpu 0 RAX=0000000000000039 RBX=00000000000003f8 RCX=0000000000000000 RDX=00000000000003f8 RSI=ffffffff822b17e1 RDI=ffffffff87645be0 RBP=ffffffff87645ba0 RSP=ffff888018a6f2e0 R8 =0000000000000001 R9 =000000000000000a R10=0000000000000039 R11=0000000000000001 R12=0000000000000039 R13=ffffffff87645ba0 R14=0000000000000010 R15=ffffffff822b17d0 RIP=ffffffff822b1839 RFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES =0000 0000000000000000 00000000 00000000 CS =0010 0000000000000000 ffffffff 00a09b00 DPL=0 CS64 [-RA] SS =0018 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA] DS =0000 0000000000000000 00000000 00000000 FS =0000 0000555555562400 00000000 00000000 GS =0000 ffff88806ce00000 00000000 00000000 LDT=0000 fffffe0000000000 00000000 00000000 TR =0040 fffffe0000003000 00004087 00008b00 DPL=0 TSS64-busy GDT= fffffe0000001000 0000007f IDT= fffffe0000000000 00000fff CR0=80050033 CR2=000055abf47c6648 CR3=000000001757c000 CR4=00350ef0 DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 DR6=00000000ffff0ff0 DR7=0000000000000400 EFER=0000000000000d01 FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80 FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 YMM00=0000000000000000 0000000000000000 ffffffffffffffff ffffffffffffffff YMM01=0000000000000000 0000000000000000 ffffffffffffffff 000055abf47a6cd0 YMM02=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM03=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM04=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM05=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM06=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM07=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM08=0000000000000000 0000000000000000 732f636f72702f00 6b63616d7300632e YMM09=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM10=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM11=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM12=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM13=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM14=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM15=0000000000000000 0000000000000000 0000000000000000 0000000000000000 info registers vcpu 1 RAX=0000000000000000 RBX=ffffffff8544dc48 RCX=0000000000000000 RDX=ffff888015f93580 RSI=ffffffff8146837a RDI=0000000000000001 RBP=0000000000000001 RSP=ffff88801b1a77d8 R8 =0000000000000001 R9 =0000000000000000 R10=0000000000000001 R11=0000000000000001 R12=0000000000000000 R13=0000000000000000 R14=ffffffff8544dc48 R15=ffff88800843cc80 RIP=ffffffff81312c70 RFL=00000293 [--S-A-C] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES =0000 0000000000000000 00000000 00000000 CS =0010 0000000000000000 ffffffff 00a09b00 DPL=0 CS64 [-RA] SS =0018 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA] DS =0000 0000000000000000 00000000 00000000 FS =0000 0000000000000000 00000000 00000000 GS =0000 ffff88806cf00000 00000000 00000000 LDT=0000 fffffe0000000000 00000000 00000000 TR =0040 fffffe000004a000 00004087 00008b00 DPL=0 TSS64-busy GDT= fffffe0000048000 0000007f IDT= fffffe0000000000 00000fff CR0=80050033 CR2=000055abf47c6648 CR3=000000000ed4c000 CR4=00350ee0 DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 DR6=00000000ffff0ff0 DR7=0000000000000400 EFER=0000000000000d01 FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80 FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 YMM00=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM01=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM02=0000000000000000 0000000000000000 00000000000000ff 0000000000ff0000 YMM03=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM04=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM05=0000000000000000 0000000000000000 000055abf47a75b0 000055abf47f97a0 YMM06=0000000000000000 0000000000000000 000055abf47a75d0 0000000000000003 YMM07=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM08=0000000000000000 0000000000000000 732f636f72702f00 6b63616d7300632e YMM09=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM10=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM11=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM12=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM13=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM14=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM15=0000000000000000 0000000000000000 0000000000000000 0000000000000000