[ OK ] Reached target Login Prompts. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.84' (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 executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 48.023778][ T8768] ================================================================== [ 48.032101][ T8768] BUG: KASAN: use-after-free in netlbl_catmap_walk+0x28b/0x2e0 [ 48.039676][ T8768] Read of size 4 at addr ffff8880161c9800 by task syz-executor742/8768 [ 48.047912][ T8768] [ 48.050235][ T8768] CPU: 0 PID: 8768 Comm: syz-executor742 Not tainted 5.14.0-rc7-syzkaller #0 [ 48.059003][ T8768] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 48.069062][ T8768] Call Trace: [ 48.072338][ T8768] dump_stack_lvl+0x1ae/0x29f [ 48.077017][ T8768] ? show_regs_print_info+0x12/0x12 [ 48.082199][ T8768] ? printk+0xc0/0x108 [ 48.086278][ T8768] ? wake_up_klogd+0xb2/0xf0 [ 48.090854][ T8768] ? log_buf_vmcoreinfo_setup+0x498/0x498 [ 48.096557][ T8768] ? _raw_spin_lock_irqsave+0xbf/0x100 [ 48.102006][ T8768] ? seq_printf+0x1b5/0x250 [ 48.106504][ T8768] print_address_description+0x66/0x3b0 [ 48.112041][ T8768] kasan_report+0x163/0x210 [ 48.116532][ T8768] ? netlbl_catmap_walk+0x28b/0x2e0 [ 48.121733][ T8768] netlbl_catmap_walk+0x28b/0x2e0 [ 48.126747][ T8768] cipso_seq_show+0x15f/0x280 [ 48.131414][ T8768] ? cipso_seq_next+0xd0/0xd0 [ 48.136080][ T8768] ? smk_seq_start+0x1d6/0x230 [ 48.140833][ T8768] traverse+0x1dc/0x530 [ 48.145002][ T8768] seq_lseek+0x12b/0x240 [ 48.149244][ T8768] __x64_sys_lseek+0x15b/0x1e0 [ 48.153998][ T8768] do_syscall_64+0x3d/0xb0 [ 48.158407][ T8768] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 48.164293][ T8768] RIP: 0033:0x445889 [ 48.168176][ T8768] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 [ 48.187766][ T8768] RSP: 002b:00007f9a9cff0318 EFLAGS: 00000246 ORIG_RAX: 0000000000000008 [ 48.196163][ T8768] RAX: ffffffffffffffda RBX: 00000000004ca408 RCX: 0000000000445889 [ 48.204130][ T8768] RDX: 0000000000000000 RSI: 0000000100000001 RDI: 0000000000000003 [ 48.212087][ T8768] RBP: 00000000004ca400 R08: 0000000000000000 R09: 0000000000000000 [ 48.220041][ T8768] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004ca40c [ 48.228001][ T8768] R13: 00007ffead4e31bf R14: 00007f9a9cff0400 R15: 0000000000022000 [ 48.235984][ T8768] [ 48.238295][ T8768] Allocated by task 8768: [ 48.242617][ T8768] ____kasan_kmalloc+0xcd/0x100 [ 48.247464][ T8768] kmem_cache_alloc_trace+0x96/0x340 [ 48.252737][ T8768] netlbl_catmap_setbit+0x1cb/0x3f0 [ 48.257921][ T8768] smk_netlbl_mls+0x103/0x5e0 [ 48.262580][ T8768] smk_set_cipso+0x621/0x810 [ 48.267152][ T8768] vfs_write+0x289/0xc90 [ 48.271377][ T8768] ksys_write+0x171/0x2a0 [ 48.275686][ T8768] do_syscall_64+0x3d/0xb0 [ 48.280112][ T8768] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 48.285989][ T8768] [ 48.288294][ T8768] Freed by task 8769: [ 48.292251][ T8768] kasan_set_track+0x3d/0x70 [ 48.296825][ T8768] kasan_set_free_info+0x1f/0x40 [ 48.301743][ T8768] ____kasan_slab_free+0x10d/0x150 [ 48.306835][ T8768] slab_free_freelist_hook+0x1e8/0x2a0 [ 48.312292][ T8768] kfree+0xcf/0x2e0 [ 48.316079][ T8768] smk_set_cipso+0x682/0x810 [ 48.320650][ T8768] vfs_write+0x289/0xc90 [ 48.324874][ T8768] ksys_write+0x171/0x2a0 [ 48.329183][ T8768] do_syscall_64+0x3d/0xb0 [ 48.333583][ T8768] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 48.339455][ T8768] [ 48.341759][ T8768] The buggy address belongs to the object at ffff8880161c9800 [ 48.341759][ T8768] which belongs to the cache kmalloc-64 of size 64 [ 48.355618][ T8768] The buggy address is located 0 bytes inside of [ 48.355618][ T8768] 64-byte region [ffff8880161c9800, ffff8880161c9840) [ 48.368612][ T8768] The buggy address belongs to the page: [ 48.374224][ T8768] page:ffffea0000587240 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x161c9 [ 48.384365][ T8768] flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) [ 48.391910][ T8768] raw: 00fff00000000200 0000000000000000 0000000b00000001 ffff888011041640 [ 48.400479][ T8768] raw: 0000000000000000 0000000080200020 00000001ffffffff 0000000000000000 [ 48.409037][ T8768] page dumped because: kasan: bad access detected [ 48.415427][ T8768] page_owner tracks the page as allocated [ 48.421120][ T8768] page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 6484, ts 27339779214, free_ts 27310944203 [ 48.437167][ T8768] get_page_from_freelist+0x779/0xa30 [ 48.442526][ T8768] __alloc_pages+0x26c/0x5f0 [ 48.447097][ T8768] allocate_slab+0xf1/0x540 [ 48.451583][ T8768] ___slab_alloc+0x1cf/0x350 [ 48.456154][ T8768] __kmalloc_node+0x310/0x430 [ 48.460815][ T8768] kvmalloc_node+0x81/0xf0 [ 48.465215][ T8768] simple_xattr_alloc+0x3f/0xa0 [ 48.470057][ T8768] shmem_initxattrs+0x91/0x1e0 [ 48.474802][ T8768] security_inode_init_security+0x37a/0x3c0 [ 48.480678][ T8768] shmem_mknod+0xb0/0x1b0 [ 48.484998][ T8768] path_openat+0x13b7/0x36b0 [ 48.489570][ T8768] do_filp_open+0x253/0x4d0 [ 48.494052][ T8768] do_sys_openat2+0x124/0x460 [ 48.498706][ T8768] __x64_sys_open+0x221/0x270 [ 48.503374][ T8768] do_syscall_64+0x3d/0xb0 [ 48.507775][ T8768] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 48.513649][ T8768] page last free stack trace: [ 48.518299][ T8768] free_pcp_prepare+0xc29/0xd20 [ 48.523135][ T8768] free_unref_page+0x7e/0x550 [ 48.527793][ T8768] __vunmap+0x926/0xa70 [ 48.531936][ T8768] free_work+0x66/0x90 [ 48.535984][ T8768] process_one_work+0x833/0x10c0 [ 48.540902][ T8768] worker_thread+0xac1/0x1320 [ 48.545561][ T8768] kthread+0x453/0x480 [ 48.549615][ T8768] ret_from_fork+0x1f/0x30 [ 48.554016][ T8768] [ 48.556324][ T8768] Memory state around the buggy address: [ 48.561929][ T8768] ffff8880161c9700: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 48.569972][ T8768] ffff8880161c9780: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 48.578013][ T8768] >ffff8880161c9800: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 48.586051][ T8768] ^ [ 48.590094][ T8768] ffff8880161c9880: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 48.598131][ T8768] ffff8880161c9900: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 48.606169][ T8768] ================================================================== [ 48.614214][ T8768] Disabling lock debugging due to kernel taint [ 48.620620][ T8768] Kernel panic - not syncing: panic_on_warn set ... [ 48.627199][ T8768] CPU: 1 PID: 8768 Comm: syz-executor742 Tainted: G B 5.14.0-rc7-syzkaller #0 [ 48.637341][ T8768] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 48.647390][ T8768] Call Trace: [ 48.650662][ T8768] dump_stack_lvl+0x1ae/0x29f [ 48.655340][ T8768] ? show_regs_print_info+0x12/0x12 [ 48.660536][ T8768] ? log_buf_vmcoreinfo_setup+0x498/0x498 [ 48.666256][ T8768] ? preempt_schedule+0x14a/0x170 [ 48.671277][ T8768] ? schedule_preempt_disabled+0x20/0x20 [ 48.676906][ T8768] panic+0x2e1/0x850 [ 48.680785][ T8768] ? trace_hardirqs_on+0x30/0x80 [ 48.685701][ T8768] ? nmi_panic+0x90/0x90 [ 48.689920][ T8768] ? _raw_spin_unlock_irqrestore+0x110/0x120 [ 48.695880][ T8768] ? print_memory_metadata+0xa7/0x100 [ 48.701234][ T8768] kasan_report+0x206/0x210 [ 48.705720][ T8768] ? netlbl_catmap_walk+0x28b/0x2e0 [ 48.710896][ T8768] netlbl_catmap_walk+0x28b/0x2e0 [ 48.715898][ T8768] cipso_seq_show+0x15f/0x280 [ 48.720553][ T8768] ? cipso_seq_next+0xd0/0xd0 [ 48.725210][ T8768] ? smk_seq_start+0x1d6/0x230 [ 48.729950][ T8768] traverse+0x1dc/0x530 [ 48.734088][ T8768] seq_lseek+0x12b/0x240 [ 48.738308][ T8768] __x64_sys_lseek+0x15b/0x1e0 [ 48.743051][ T8768] do_syscall_64+0x3d/0xb0 [ 48.747453][ T8768] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 48.753323][ T8768] RIP: 0033:0x445889 [ 48.757206][ T8768] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 [ 48.776787][ T8768] RSP: 002b:00007f9a9cff0318 EFLAGS: 00000246 ORIG_RAX: 0000000000000008 [ 48.785179][ T8768] RAX: ffffffffffffffda RBX: 00000000004ca408 RCX: 0000000000445889 [ 48.793139][ T8768] RDX: 0000000000000000 RSI: 0000000100000001 RDI: 0000000000000003 [ 48.801087][ T8768] RBP: 00000000004ca400 R08: 0000000000000000 R09: 0000000000000000 [ 48.809035][ T8768] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004ca40c [ 48.816985][ T8768] R13: 00007ffead4e31bf R14: 00007f9a9cff0400 R15: 0000000000022000 [ 48.826209][ T8768] Kernel Offset: disabled [ 48.830548][ T8768] Rebooting in 86400 seconds..