[ 29.291082] audit: type=1800 audit(1543143837.465:27): pid=5973 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2436 res=0 [ 29.314749] audit: type=1800 audit(1543143837.465:28): pid=5973 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="ssh" dev="sda1" ino=2417 res=0 [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 29.973359] audit: type=1800 audit(1543143838.205:29): pid=5973 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rc.local" dev="sda1" ino=2432 res=0 [ 29.992922] audit: type=1800 audit(1543143838.215:30): pid=5973 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rmnologin" dev="sda1" ino=2423 res=0 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.83' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 41.654942] ================================================================== [ 41.662411] BUG: KASAN: slab-out-of-bounds in queue_stack_map_push_elem+0x185/0x290 [ 41.670194] Write of size 262146 at addr ffff8801b9485e48 by task syz-executor565/6128 [ 41.678242] [ 41.679860] CPU: 1 PID: 6128 Comm: syz-executor565 Not tainted 4.20.0-rc1+ #153 [ 41.687286] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.696620] Call Trace: [ 41.699216] dump_stack+0x244/0x39d [ 41.702843] ? dump_stack_print_info.cold.1+0x20/0x20 [ 41.708013] ? printk+0xa7/0xcf [ 41.711271] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 41.716012] print_address_description.cold.7+0x9/0x1ff [ 41.721360] kasan_report.cold.8+0x242/0x309 [ 41.725775] ? queue_stack_map_push_elem+0x185/0x290 [ 41.730868] check_memory_region+0x13e/0x1b0 [ 41.735262] memcpy+0x37/0x50 [ 41.738353] queue_stack_map_push_elem+0x185/0x290 [ 41.743273] ? queue_map_pop_elem+0x30/0x30 [ 41.747575] map_update_elem+0x605/0xf60 [ 41.751624] __x64_sys_bpf+0x32d/0x520 [ 41.755493] ? bpf_prog_get+0x20/0x20 [ 41.759304] do_syscall_64+0x1b9/0x820 [ 41.763171] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 41.768519] ? syscall_return_slowpath+0x5e0/0x5e0 [ 41.773453] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.778297] ? trace_hardirqs_on_caller+0x310/0x310 [ 41.783297] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 41.788297] ? prepare_exit_to_usermode+0x291/0x3b0 [ 41.793298] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.798127] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.803297] RIP: 0033:0x4400e9 [ 41.806478] Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 41.825364] RSP: 002b:00007ffe8ee4ef98 EFLAGS: 00000213 ORIG_RAX: 0000000000000141 [ 41.833061] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004400e9 [ 41.840314] RDX: 0000000000000020 RSI: 0000000020000040 RDI: 0000000000000002 [ 41.847565] RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8 [ 41.854829] R10: 0000000000000000 R11: 0000000000000213 R12: 0000000000401970 [ 41.862098] R13: 0000000000401a00 R14: 0000000000000000 R15: 0000000000000000 [ 41.869355] [ 41.870967] Allocated by task 6128: [ 41.874580] save_stack+0x43/0xd0 [ 41.878014] kasan_kmalloc+0xc7/0xe0 [ 41.881707] __kmalloc_node+0x50/0x70 [ 41.885487] bpf_map_area_alloc+0x3f/0x90 [ 41.889634] queue_stack_map_alloc+0x192/0x290 [ 41.894196] map_create+0x3bd/0x1110 [ 41.897893] __x64_sys_bpf+0x303/0x520 [ 41.901764] do_syscall_64+0x1b9/0x820 [ 41.905632] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.910796] [ 41.912406] Freed by task 3749: [ 41.915668] save_stack+0x43/0xd0 [ 41.919105] __kasan_slab_free+0x102/0x150 [ 41.923319] kasan_slab_free+0xe/0x10 [ 41.927101] kfree+0xcf/0x230 [ 41.930187] kernfs_fop_release+0x12b/0x1a0 [ 41.934490] __fput+0x385/0xa30 [ 41.937753] ____fput+0x15/0x20 [ 41.941030] task_work_run+0x1e8/0x2a0 [ 41.944914] exit_to_usermode_loop+0x318/0x380 [ 41.949500] do_syscall_64+0x6be/0x820 [ 41.953402] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.958567] [ 41.960191] The buggy address belongs to the object at ffff8801b9485d00 [ 41.960191] which belongs to the cache kmalloc-512 of size 512 [ 41.972829] The buggy address is located 328 bytes inside of [ 41.972829] 512-byte region [ffff8801b9485d00, ffff8801b9485f00) [ 41.984691] The buggy address belongs to the page: [ 41.989618] page:ffffea0006e52140 count:1 mapcount:0 mapping:ffff8801da800940 index:0x0 [ 41.997768] flags: 0x2fffc0000000200(slab) [ 42.001986] raw: 02fffc0000000200 ffffea0006e52908 ffffea0006e52348 ffff8801da800940 [ 42.009852] raw: 0000000000000000 ffff8801b9485080 0000000100000006 0000000000000000 [ 42.017709] page dumped because: kasan: bad access detected [ 42.023395] [ 42.025010] Memory state around the buggy address: [ 42.029920] ffff8801b9485d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 42.037261] ffff8801b9485e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 42.044600] >ffff8801b9485e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 42.051953] ^ [ 42.055302] ffff8801b9485f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 42.062642] ffff8801b9485f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 42.069981] ================================================================== [ 42.077317] Disabling lock debugging due to kernel taint [ 42.082745] Kernel panic - not syncing: panic_on_warn set ... [ 42.088626] CPU: 1 PID: 6128 Comm: syz-executor565 Tainted: G B 4.20.0-rc1+ #153 [ 42.097441] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.106774] Call Trace: [ 42.109350] dump_stack+0x244/0x39d [ 42.112963] ? dump_stack_print_info.cold.1+0x20/0x20 [ 42.118139] panic+0x2ad/0x55c [ 42.121313] ? add_taint.cold.5+0x16/0x16 [ 42.125443] ? add_taint.cold.5+0x5/0x16 [ 42.129484] ? trace_hardirqs_off+0xaf/0x310 [ 42.133892] kasan_end_report+0x47/0x4f [ 42.137850] kasan_report.cold.8+0x76/0x309 [ 42.142151] ? queue_stack_map_push_elem+0x185/0x290 [ 42.147238] check_memory_region+0x13e/0x1b0 [ 42.151630] memcpy+0x37/0x50 [ 42.154718] queue_stack_map_push_elem+0x185/0x290 [ 42.159631] ? queue_map_pop_elem+0x30/0x30 [ 42.163931] map_update_elem+0x605/0xf60 [ 42.167974] __x64_sys_bpf+0x32d/0x520 [ 42.171839] ? bpf_prog_get+0x20/0x20 [ 42.175629] do_syscall_64+0x1b9/0x820 [ 42.179497] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 42.184842] ? syscall_return_slowpath+0x5e0/0x5e0 [ 42.189751] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.194576] ? trace_hardirqs_on_caller+0x310/0x310 [ 42.199575] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 42.204572] ? prepare_exit_to_usermode+0x291/0x3b0 [ 42.209574] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.214403] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.219574] RIP: 0033:0x4400e9 [ 42.222751] Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 42.241633] RSP: 002b:00007ffe8ee4ef98 EFLAGS: 00000213 ORIG_RAX: 0000000000000141 [ 42.249323] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004400e9 [ 42.256576] RDX: 0000000000000020 RSI: 0000000020000040 RDI: 0000000000000002 [ 42.263826] RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8 [ 42.271078] R10: 0000000000000000 R11: 0000000000000213 R12: 0000000000401970 [ 42.278329] R13: 0000000000401a00 R14: 0000000000000000 R15: 0000000000000000 [ 42.286475] Kernel Offset: disabled [ 42.290099] Rebooting in 86400 seconds..