[ 38.230125] audit: type=1800 audit(1571032001.595:32): pid=7395 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="startpar" name="ssh" dev="sda1" ino=2450 res=0 Starting mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [ 39.068606] audit: type=1800 audit(1571032002.525:33): pid=7395 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="startpar" name="rc.local" dev="sda1" ino=2465 res=0 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.25' (ECDSA) to the list of known hosts. executing program executing program executing program syzkaller login: [ 47.432247] kauditd_printk_skb: 2 callbacks suppressed [ 47.432261] audit: type=1400 audit(1571032010.885:36): avc: denied { map } for pid=7581 comm="syz-executor117" path="/root/syz-executor117486279" dev="sda1" ino=16484 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 47.477883] audit: type=1400 audit(1571032010.885:37): avc: denied { prog_load } for pid=7590 comm="syz-executor117" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=bpf permissive=1 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 [ 47.976143] ================================================================== [ 47.983701] BUG: KASAN: use-after-free in bpf_prog_kallsyms_find+0x264/0x2c0 [ 47.990880] Read of size 8 at addr ffff888096040600 by task syz-executor117/7804 [ 47.998393] [ 48.000014] CPU: 0 PID: 7804 Comm: syz-executor117 Not tainted 4.19.79 #0 [ 48.006923] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 48.016263] Call Trace: [ 48.018840] dump_stack+0x172/0x1f0 [ 48.022458] ? bpf_prog_kallsyms_find+0x264/0x2c0 [ 48.027289] print_address_description.cold+0x7c/0x20d [ 48.032551] ? bpf_prog_kallsyms_find+0x264/0x2c0 [ 48.037382] kasan_report.cold+0x8c/0x2ba [ 48.041520] __asan_report_load8_noabort+0x14/0x20 [ 48.046434] bpf_prog_kallsyms_find+0x264/0x2c0 [ 48.051107] ? rcu_dynticks_curr_cpu_in_eqs+0x51/0xb0 [ 48.056288] is_bpf_text_address+0x78/0x170 [ 48.060597] kernel_text_address+0x73/0xf0 [ 48.064832] __kernel_text_address+0xd/0x40 [ 48.069147] unwind_get_return_address+0x61/0xa0 [ 48.073915] __save_stack_trace+0x99/0x100 [ 48.078147] save_stack_trace+0x1a/0x20 [ 48.082123] save_stack+0x45/0xd0 [ 48.085561] ? save_stack+0x45/0xd0 [ 48.089173] ? kasan_kmalloc+0xce/0xf0 [ 48.093055] ? kasan_slab_alloc+0xf/0x20 [ 48.097101] ? kmem_cache_alloc+0x11b/0x700 [ 48.101410] ? __anon_vma_prepare+0x62/0x3c0 [ 48.105803] ? do_huge_pmd_anonymous_page+0xeff/0x14e0 [ 48.111065] ? __handle_mm_fault+0x2c80/0x3f80 [ 48.115632] ? handle_mm_fault+0x1b5/0x690 [ 48.119869] ? __do_page_fault+0x62a/0xe90 [ 48.124091] ? do_page_fault+0x71/0x57d [ 48.128062] ? page_fault+0x1e/0x30 [ 48.131681] ? mark_held_locks+0x100/0x100 [ 48.135902] ? find_held_lock+0x35/0x130 [ 48.139949] ? __unlock_page_memcg+0x53/0x100 [ 48.144448] ? fs_reclaim_acquire+0x20/0x20 [ 48.148760] ? __lock_is_held+0xb6/0x140 [ 48.152809] ? mark_held_locks+0xb1/0x100 [ 48.156940] ? lock_downgrade+0x880/0x880 [ 48.161080] ? kasan_unpoison_shadow+0x35/0x50 [ 48.165734] kasan_kmalloc+0xce/0xf0 [ 48.169458] kasan_slab_alloc+0xf/0x20 [ 48.173333] kmem_cache_alloc+0x11b/0x700 [ 48.177471] ? __might_sleep+0x95/0x190 [ 48.181446] __anon_vma_prepare+0x62/0x3c0 [ 48.185668] ? find_held_lock+0x35/0x130 [ 48.189738] do_huge_pmd_anonymous_page+0xeff/0x14e0 [ 48.194832] ? __thp_get_unmapped_area+0x190/0x190 [ 48.199847] ? pmd_val+0x100/0x100 [ 48.203478] __handle_mm_fault+0x2c80/0x3f80 [ 48.207878] ? vmf_insert_mixed_mkwrite+0x90/0x90 [ 48.212723] ? count_memcg_event_mm+0x2b1/0x4d0 [ 48.217385] handle_mm_fault+0x1b5/0x690 [ 48.221437] __do_page_fault+0x62a/0xe90 [ 48.225487] ? vmalloc_fault+0x740/0x740 [ 48.229535] ? trace_hardirqs_off_caller+0x65/0x220 [ 48.234535] ? trace_hardirqs_on_caller+0x6a/0x220 [ 48.239464] ? page_fault+0x8/0x30 [ 48.242993] do_page_fault+0x71/0x57d [ 48.246778] ? page_fault+0x8/0x30 [ 48.250302] page_fault+0x1e/0x30 [ 48.253759] RIP: 0033:0x400d4b [ 48.256937] Code: 8b 03 85 c0 74 e1 44 8b 4d 04 c7 45 08 00 00 00 00 45 85 c9 0f 85 54 02 00 00 31 c0 ba 04 00 00 00 31 c9 31 f6 31 ff 45 31 c0 <66> 89 04 25 02 00 00 20 66 89 14 25 0a 00 00 20 31 c0 66 89 0c 25 [ 48.275822] RSP: 002b:00007f5903552dc0 EFLAGS: 00010246 [ 48.281171] RAX: 0000000000000000 RBX: 00000000006dbc28 RCX: 0000000000000000 [ 48.288436] RDX: 0000000000000004 RSI: 0000000000000000 RDI: 0000000000000000 [ 48.295693] RBP: 00000000006dbc20 R08: 0000000000000000 R09: 0000000000000000 [ 48.302947] R10: 00007f59035539d0 R11: 0000000000000202 R12: 00000000006dbc2c [ 48.310462] R13: 00007ffc282b32bf R14: 00007f59035539c0 R15: 000000000000002d [ 48.317723] [ 48.319333] Allocated by task 7798: [ 48.322955] save_stack+0x45/0xd0 [ 48.326410] kasan_kmalloc+0xce/0xf0 [ 48.330114] kmem_cache_alloc_trace+0x152/0x760 [ 48.334772] bpf_prog_alloc+0x216/0x2a0 [ 48.338740] bpf_check+0x3e7f/0x6259 [ 48.342444] bpf_prog_load+0xdcf/0x13f0 [ 48.346422] __x64_sys_bpf+0x32b/0x4c0 [ 48.350299] do_syscall_64+0xfd/0x620 [ 48.354095] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 48.359267] [ 48.360882] Freed by task 3224: [ 48.364148] save_stack+0x45/0xd0 [ 48.367595] __kasan_slab_free+0x102/0x150 [ 48.371819] kasan_slab_free+0xe/0x10 [ 48.375612] kfree+0xcf/0x220 [ 48.378706] bpf_jit_free+0xa5/0x300 [ 48.382423] bpf_prog_free_deferred+0x1a6/0x420 [ 48.387077] process_one_work+0x989/0x1750 [ 48.391295] worker_thread+0x98/0xe40 [ 48.395079] kthread+0x354/0x420 [ 48.398429] ret_from_fork+0x24/0x30 [ 48.402120] [ 48.403736] The buggy address belongs to the object at ffff888096040580 [ 48.403736] which belongs to the cache kmalloc-256 of size 256 [ 48.416394] The buggy address is located 128 bytes inside of [ 48.416394] 256-byte region [ffff888096040580, ffff888096040680) [ 48.428268] The buggy address belongs to the page: [ 48.433182] page:ffffea0002581000 count:1 mapcount:0 mapping:ffff88812c3f07c0 index:0x0 [ 48.441310] flags: 0x1fffc0000000100(slab) [ 48.445533] raw: 01fffc0000000100 ffffea0002653308 ffffea0002878888 ffff88812c3f07c0 [ 48.453401] raw: 0000000000000000 ffff888096040080 000000010000000c 0000000000000000 [ 48.461262] page dumped because: kasan: bad access detected [ 48.466950] [ 48.468563] Memory state around the buggy address: executing program [ 48.473507] ffff888096040500: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 48.480860] ffff888096040580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 48.488202] >ffff888096040600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 48.495542] ^ [ 48.498889] ffff888096040680: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 [ 48.506252] ffff888096040700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 48.513590] ================================================================== [ 48.520938] Disabling lock debugging due to kernel taint [ 48.530338] Kernel panic - not syncing: panic_on_warn set ... [ 48.530338] [ 48.537742] CPU: 0 PID: 7804 Comm: syz-executor117 Tainted: G B 4.19.79 #0 [ 48.546044] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 48.555382] Call Trace: [ 48.557963] dump_stack+0x172/0x1f0 [ 48.561578] ? bpf_prog_kallsyms_find+0x264/0x2c0 [ 48.566403] panic+0x263/0x507 [ 48.569581] ? __warn_printk+0xf3/0xf3 [ 48.573474] ? bpf_prog_kallsyms_find+0x264/0x2c0 [ 48.578317] ? preempt_schedule+0x4b/0x60 [ 48.582470] ? ___preempt_schedule+0x16/0x18 [ 48.586862] ? trace_hardirqs_on+0x5e/0x220 [ 48.591170] ? bpf_prog_kallsyms_find+0x264/0x2c0 [ 48.595996] kasan_end_report+0x47/0x4f [ 48.599970] kasan_report.cold+0xa9/0x2ba [ 48.604116] __asan_report_load8_noabort+0x14/0x20 [ 48.609041] bpf_prog_kallsyms_find+0x264/0x2c0 [ 48.613708] ? rcu_dynticks_curr_cpu_in_eqs+0x51/0xb0 [ 48.618882] is_bpf_text_address+0x78/0x170 [ 48.623195] kernel_text_address+0x73/0xf0 [ 48.627417] __kernel_text_address+0xd/0x40 [ 48.631725] unwind_get_return_address+0x61/0xa0 [ 48.636466] __save_stack_trace+0x99/0x100 [ 48.640701] save_stack_trace+0x1a/0x20 [ 48.644671] save_stack+0x45/0xd0 [ 48.648113] ? save_stack+0x45/0xd0 [ 48.651736] ? kasan_kmalloc+0xce/0xf0 [ 48.655611] ? kasan_slab_alloc+0xf/0x20 [ 48.659654] ? kmem_cache_alloc+0x11b/0x700 [ 48.663959] ? __anon_vma_prepare+0x62/0x3c0 [ 48.668354] ? do_huge_pmd_anonymous_page+0xeff/0x14e0 [ 48.673626] ? __handle_mm_fault+0x2c80/0x3f80 [ 48.678548] ? handle_mm_fault+0x1b5/0x690 [ 48.682768] ? __do_page_fault+0x62a/0xe90 [ 48.686986] ? do_page_fault+0x71/0x57d [ 48.690947] ? page_fault+0x1e/0x30 [ 48.694569] ? mark_held_locks+0x100/0x100 [ 48.698787] ? find_held_lock+0x35/0x130 [ 48.702845] ? __unlock_page_memcg+0x53/0x100 [ 48.707334] ? fs_reclaim_acquire+0x20/0x20 [ 48.711645] ? __lock_is_held+0xb6/0x140 [ 48.715691] ? mark_held_locks+0xb1/0x100 [ 48.719824] ? lock_downgrade+0x880/0x880 [ 48.723958] ? kasan_unpoison_shadow+0x35/0x50 [ 48.728784] kasan_kmalloc+0xce/0xf0 [ 48.732516] kasan_slab_alloc+0xf/0x20 [ 48.736389] kmem_cache_alloc+0x11b/0x700 [ 48.740537] ? __might_sleep+0x95/0x190 [ 48.744501] __anon_vma_prepare+0x62/0x3c0 [ 48.749509] ? find_held_lock+0x35/0x130 [ 48.753566] do_huge_pmd_anonymous_page+0xeff/0x14e0 [ 48.758662] ? __thp_get_unmapped_area+0x190/0x190 [ 48.763587] ? pmd_val+0x100/0x100 [ 48.767115] __handle_mm_fault+0x2c80/0x3f80 [ 48.771512] ? vmf_insert_mixed_mkwrite+0x90/0x90 [ 48.776347] ? count_memcg_event_mm+0x2b1/0x4d0 [ 48.781003] handle_mm_fault+0x1b5/0x690 [ 48.785050] __do_page_fault+0x62a/0xe90 [ 48.789109] ? vmalloc_fault+0x740/0x740 [ 48.793156] ? trace_hardirqs_off_caller+0x65/0x220 [ 48.798158] ? trace_hardirqs_on_caller+0x6a/0x220 [ 48.803073] ? page_fault+0x8/0x30 [ 48.806598] do_page_fault+0x71/0x57d [ 48.810384] ? page_fault+0x8/0x30 [ 48.813908] page_fault+0x1e/0x30 [ 48.817344] RIP: 0033:0x400d4b [ 48.820524] Code: 8b 03 85 c0 74 e1 44 8b 4d 04 c7 45 08 00 00 00 00 45 85 c9 0f 85 54 02 00 00 31 c0 ba 04 00 00 00 31 c9 31 f6 31 ff 45 31 c0 <66> 89 04 25 02 00 00 20 66 89 14 25 0a 00 00 20 31 c0 66 89 0c 25 [ 48.839408] RSP: 002b:00007f5903552dc0 EFLAGS: 00010246 [ 48.844778] RAX: 0000000000000000 RBX: 00000000006dbc28 RCX: 0000000000000000 [ 48.852046] RDX: 0000000000000004 RSI: 0000000000000000 RDI: 0000000000000000 [ 48.859309] RBP: 00000000006dbc20 R08: 0000000000000000 R09: 0000000000000000 [ 48.866566] R10: 00007f59035539d0 R11: 0000000000000202 R12: 00000000006dbc2c [ 48.873841] R13: 00007ffc282b32bf R14: 00007f59035539c0 R15: 000000000000002d [ 48.882377] Kernel Offset: disabled [ 48.886001] Rebooting in 86400 seconds..