[....] Starting enhanced syslogd: rsyslogd[ 10.246005] audit: type=1400 audit(1516523209.477:4): avc: denied { syslog } for pid=3189 comm="rsyslogd" capability=34 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1 [?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.9' (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 syzkaller login: [ 19.523983] BUG: sleeping function called from invalid context at net/core/sock.c:2502 [ 19.525392] in_atomic(): 1, irqs_disabled(): 0, pid: 17, name: ksoftirqd/1 [ 19.527025] 1 lock held by ksoftirqd/1/17: [ 19.527784] #0: (rcu_callback){......}, at: [] rcu_process_callbacks+0x977/0x1300 [ 19.529739] Preemption disabled at:[ 19.530411] [] __do_softirq+0xdb/0x951 [ 19.531512] CPU: 1 PID: 17 Comm: ksoftirqd/1 Not tainted 4.9.77-ge12a9c4 #27 [ 19.532889] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 19.534535] ffff8801d9827a60 ffffffff81d941c9 ffffffff838b971b 0000000000000000 [ 19.536500] 0000000000000100 ffff8801d980b000 ffff8801d980b000 ffff8801d9827a98 [ 19.537910] ffffffff811b9b24 ffff8801d980b000 ffffffff83edcd20 00000000000009c6 [ 19.539445] Call Trace: [ 19.539847] [] dump_stack+0xc1/0x128 [ 19.540869] [] ? __do_softirq+0xdb/0x951 [ 19.541790] [] ___might_sleep+0x2f4/0x470 [ 19.542810] [] __might_sleep+0x95/0x1a0 [ 19.543838] [] ? trace_hardirqs_on_caller+0x266/0x590 [ 19.549004] [] lock_sock_nested+0x34/0x120 [ 19.554876] [] ? pppol2tp_recvmsg+0x2b0/0x2b0 [ 19.561011] [] inet_shutdown+0x62/0x350 [ 19.566625] [] ? pppol2tp_recvmsg+0x2b0/0x2b0 [ 19.572754] [] pppol2tp_session_close+0xa0/0xe0 [ 19.579057] [] l2tp_tunnel_closeall+0x21f/0x3a0 [ 19.585360] [] l2tp_tunnel_destruct+0x30e/0x5a0 [ 19.591659] [] ? l2tp_tunnel_destruct+0x1aa/0x5a0 [ 19.598127] [] ? l2tp_tunnel_del_work+0x460/0x460 [ 19.604601] [] __sk_destruct+0x53/0x570 [ 19.610208] [] rcu_process_callbacks+0x898/0x1300 [ 19.616684] [] ? rcu_process_callbacks+0x977/0x1300 [ 19.623339] [] ? __sk_dst_check+0x240/0x240 [ 19.629294] [] __do_softirq+0x206/0x951 [ 19.634902] [] ? takeover_tasklets+0x760/0x760 [ 19.641113] [] run_ksoftirqd+0x2e/0x60 [ 19.646632] [] smpboot_thread_fn+0x5c1/0x8f0 [ 19.652679] [] ? sort_range+0x30/0x30 [ 19.658109] [] ? __kthread_parkme+0xcf/0x240 [ 19.664159] [] ? schedule+0x89/0x1b0 [ 19.669507] [] ? __kthread_parkme+0x175/0x240 [ 19.675636] [] kthread+0x26d/0x300 [ 19.680810] [] ? sort_range+0x30/0x30 [ 19.686240] [] ? kthread_park+0xa0/0xa0 [ 19.691842] [] ? kthread_park+0xa0/0xa0 [ 19.697449] [] ? kthread_park+0xa0/0xa0 [ 19.703056] [] ret_from_fork+0x59/0x70 [ 19.708855] [ 19.710473] ================================= [ 19.714947] [ INFO: inconsistent lock state ] [ 19.719420] 4.9.77-ge12a9c4 #27 Tainted: G W [ 19.724926] --------------------------------- [ 19.729401] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 19.735526] ksoftirqd/1/17 [HC0[0]:SC1[3]:HE1:SE0] takes: [ 19.741044] (sk_lock-AF_PPPOX){+.?.+.}, at: [] inet_shutdown+0x62/0x350 {SOFTIRQ-ON-W} state was registered at: [ 19.753509] mark_held_locks+0xaf/0x100 [ 19.757558] trace_hardirqs_on_caller+0x38b/0x590 [ 19.762479] trace_hardirqs_on+0xd/0x10 [ 19.767363] __local_bh_enable_ip+0x6a/0xd0 [ 19.771761] lock_sock_nested+0xdc/0x120 [ 19.775901] pppol2tp_connect+0xd3/0x18f0 [ 19.780124] SYSC_connect+0x1b6/0x310 [ 19.784002] SyS_connect+0x24/0x30 [ 19.787615] do_fast_syscall_32+0x2f7/0x890 [ 19.792011] entry_SYSENTER_compat+0x74/0x83 [ 19.796484] irq event stamp: 181656 [ 19.800095] hardirqs last enabled at (181656): [] restore_regs_and_iret+0x0/0x1d [ 19.809265] hardirqs last disabled at (181655): [] common_interrupt+0x9b/0xa0 [ 19.818093] softirqs last enabled at (181422): [] __do_softirq+0x466/0x951 [ 19.826752] softirqs last disabled at (181425): [] run_ksoftirqd+0x2e/0x60 [ 19.835307] [ 19.835307] other info that might help us debug this: [ 19.841953] Possible unsafe locking scenario: [ 19.841953] [ 19.847992] CPU0 [ 19.850554] ---- [ 19.853117] lock(sk_lock-AF_PPPOX); [ 19.857159] [ 19.859896] lock(sk_lock-AF_PPPOX); [ 19.864105] [ 19.864105] *** DEADLOCK *** [ 19.864105] [ 19.870154] 1 lock held by ksoftirqd/1/17: [ 19.874367] #0: (rcu_callback){......}, at: [] rcu_process_callbacks+0x977/0x1300 [ 19.884219] [ 19.884219] stack backtrace: [ 19.888706] CPU: 1 PID: 17 Comm: ksoftirqd/1 Tainted: G W 4.9.77-ge12a9c4 #27 [ 19.897093] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 19.906432] ffff8801d98277d0 ffffffff81d941c9 ffff8801d980b000 ffffffff853c1170 [ 19.914441] ffff8801d980b8d8 ffffffff83a5f240 0000000000000000 ffff8801d9827840 [ 19.922453] ffffffff8123a0b6 0000000000000003 ffff880100000001 ffff880100000000 [ 19.930455] Call Trace: [ 19.933030] [] dump_stack+0xc1/0x128 [ 19.938377] [] print_usage_bug+0x356/0x3b0 [ 19.944245] [] ? save_stack_trace+0x16/0x20 [ 19.950210] [] mark_lock+0xca2/0xfd0 [ 19.955558] [] ? check_usage_backwards+0x300/0x300 [ 19.962120] [] __lock_acquire+0xb4c/0x3640 [ 19.968007] [] ? __unwind_start+0x1e3/0x3c0 [ 19.973972] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 19.980976] [] ? retint_kernel+0x2d/0x2d [ 19.986677] [] lock_acquire+0x12e/0x410 [ 19.992385] [] ? inet_shutdown+0x62/0x350 [ 19.998166] [] lock_sock_nested+0xc6/0x120 [ 20.004030] [] ? inet_shutdown+0x62/0x350 [ 20.009817] [] ? pppol2tp_recvmsg+0x2b0/0x2b0 [ 20.015949] [] inet_shutdown+0x62/0x350 [ 20.021559] [] ? pppol2tp_recvmsg+0x2b0/0x2b0 [ 20.027689] [] pppol2tp_session_close+0xa0/0xe0 [ 20.033988] [] l2tp_tunnel_closeall+0x21f/0x3a0 [ 20.040296] [] l2tp_tunnel_destruct+0x30e/0x5a0 [ 20.046608] [] ? l2tp_tunnel_destruct+0x1aa/0x5a0 [ 20.053085] [] ? l2tp_tunnel_del_work+0x460/0x460 [ 20.059564] [] __sk_destruct+0x53/0x570 [ 20.065177] [] rcu_process_callbacks+0x898/0x1300 [ 20.071656] [] ? rcu_process_callbacks+0x977/0x1300 [ 20.078306] [] ? __sk_dst_check+0x240/0x240 [ 20.084266] [] __do_softirq+0x206/0x951 [ 20.089874] [] ? takeover_tasklets+0x760/0x760 [ 20.096086] [] run_ksoftirqd+0x2e/0x60 [ 20.101617] [] smpboot_thread_fn+0x5c1/0x8f0 [ 20.107662] [] ? sort_range+0x30/0x30 [ 20.113099] [] ? __kthread_parkme+0xcf/0x240 [ 20.119143] [] ? schedule+0x89/0x1b0 [ 20.124498] [] ? __kthread_parkme+0x175/0x240 [ 20.130636] [] kthread+0x26d/0x300 [ 20.135813] [] ? sort_range+0x30/0x30 [ 20.141250] [] ? kthread_park+0xa0/0xa0 [ 20.146855] [] ? kthread_park+0xa0/0xa0 [ 20.152463] [] ? kthread_park+0xa0/0xa0 [ 20.158078] [] ret_from_fork+0x59/0x70 [ 20.163629] ================================================================== [ 20.170978] BUG: KASAN: use-after-free in inet_shutdown+0x2d4/0x350 [ 20.177358] Read of size 4 at addr ffff8801ce27ccc0 by task ksoftirqd/1/17 [ 20.184347] [ 20.185957] CPU: 1 PID: 17 Comm: ksoftirqd/1 Tainted: G W 4.9.77-ge12a9c4 #27 [ 20.194339] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 20.203675] ffff8801d9827a80 ffffffff81d941c9 ffffea0007389f00 ffff8801ce27ccc0 [ 20.211689] 0000000000000000 ffff8801ce27ccc0 ffff8801cde111d8 ffff8801d9827ab8 [ 20.219704] ffffffff8153db93 ffff8801ce27ccc0 0000000000000004 0000000000000000 [ 20.227721] Call Trace: [ 20.230292] [] dump_stack+0xc1/0x128 [ 20.235638] [] print_address_description+0x73/0x280 [ 20.242286] [] kasan_report+0x275/0x360 [ 20.247893] [] ? inet_shutdown+0x2d4/0x350 [ 20.253760] [] ? pppol2tp_recvmsg+0x2b0/0x2b0 [ 20.259893] [] __asan_report_load4_noabort+0x14/0x20 [ 20.266631] [] inet_shutdown+0x2d4/0x350 [ 20.272329] [] ? pppol2tp_recvmsg+0x2b0/0x2b0 [ 20.278461] [] pppol2tp_session_close+0xa0/0xe0 [ 20.284767] [] l2tp_tunnel_closeall+0x21f/0x3a0 [ 20.291076] [] l2tp_tunnel_destruct+0x30e/0x5a0 [ 20.297385] [] ? l2tp_tunnel_destruct+0x1aa/0x5a0 [ 20.303861] [] ? l2tp_tunnel_del_work+0x460/0x460 [ 20.310339] [] __sk_destruct+0x53/0x570 [ 20.315951] [] rcu_process_callbacks+0x898/0x1300 [ 20.322428] [] ? rcu_process_callbacks+0x977/0x1300 [ 20.329081] [] ? __sk_dst_check+0x240/0x240 [ 20.335045] [] __do_softirq+0x206/0x951 [ 20.340664] [] ? takeover_tasklets+0x760/0x760 [ 20.346875] [] run_ksoftirqd+0x2e/0x60 [ 20.352393] [] smpboot_thread_fn+0x5c1/0x8f0 [ 20.358439] [] ? sort_range+0x30/0x30 [ 20.363873] [] ? __kthread_parkme+0xcf/0x240 [ 20.369910] [] ? schedule+0x89/0x1b0 [ 20.375254] [] ? __kthread_parkme+0x175/0x240 [ 20.381393] [] kthread+0x26d/0x300 [ 20.386574] [] ? sort_range+0x30/0x30 [ 20.392011] [] ? kthread_park+0xa0/0xa0 [ 20.397627] [] ? kthread_park+0xa0/0xa0 [ 20.403237] [] ? kthread_park+0xa0/0xa0 [ 20.408849] [] ret_from_fork+0x59/0x70 [ 20.414370] [ 20.415981] Allocated by task 3353: [ 20.419597] save_stack_trace+0x16/0x20 [ 20.423557] save_stack+0x43/0xd0 [ 20.426999] kasan_kmalloc+0xad/0xe0 [ 20.430696] kasan_slab_alloc+0x12/0x20 [ 20.434652] kmem_cache_alloc+0xba/0x290 [ 20.438700] sock_alloc_inode+0x1d/0x250 [ 20.442747] alloc_inode+0x65/0x180 [ 20.446359] new_inode_pseudo+0x17/0xe0 [ 20.450319] sock_alloc+0x41/0x270 [ 20.453842] __sock_create+0xa5/0x640 [ 20.457626] SyS_socket+0xf0/0x1b0 [ 20.461156] do_fast_syscall_32+0x2f7/0x890 [ 20.465464] entry_SYSENTER_compat+0x74/0x83 [ 20.469856] [ 20.471479] Freed by task 3353: [ 20.474744] save_stack_trace+0x16/0x20 [ 20.478698] save_stack+0x43/0xd0 [ 20.482134] kasan_slab_free+0x72/0xc0 [ 20.486004] kmem_cache_free+0xc7/0x300 [ 20.489961] sock_destroy_inode+0x56/0x70 [ 20.494098] destroy_inode+0xc3/0x120 [ 20.497887] evict+0x329/0x4f0 [ 20.501065] iput+0x47b/0x900 [ 20.504164] dentry_unlink_inode+0x470/0x570 [ 20.508557] __dentry_kill+0x25b/0x480 [ 20.512431] dput.part.23+0x680/0x7b0 [ 20.516217] dput+0x1f/0x30 [ 20.519127] __fput+0x46a/0x6e0 [ 20.522382] ____fput+0x15/0x20 [ 20.525648] task_work_run+0x115/0x190 [ 20.529521] do_exit+0x7e7/0x2a40 [ 20.532962] do_group_exit+0x108/0x320 [ 20.536836] SyS_exit_group+0x1d/0x20 [ 20.540623] do_fast_syscall_32+0x2f7/0x890 [ 20.544930] entry_SYSENTER_compat+0x74/0x83 [ 20.549308] [ 20.550914] The buggy address belongs to the object at ffff8801ce27ccc0 [ 20.550914] which belongs to the cache sock_inode_cache of size 944 [ 20.564085] The buggy address is located 0 bytes inside of [ 20.564085] 944-byte region [ffff8801ce27ccc0, ffff8801ce27d070) [ 20.575772] The buggy address belongs to the page: [ 20.580695] page:ffffea0007389f00 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 20.590914] flags: 0x8000000000004080(slab|head) [ 20.595649] page dumped because: kasan: bad access detected [ 20.601344] [ 20.602953] Memory state around the buggy address: [ 20.607870] ffff8801ce27cb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 20.615222] ffff8801ce27cc00: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc [ 20.622572] >ffff8801ce27cc80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 20.629924] ^ [ 20.635363] ffff8801ce27cd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 20.642716] ffff8801ce27cd80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 20.650072] ================================================================== [ 20.657475] Kernel panic - not syncing: panic_on_warn set ... [ 20.657475] [ 20.664830] CPU: 1 PID: 17 Comm: ksoftirqd/1 Tainted: G B W 4.9.77-ge12a9c4 #27 [ 20.673200] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 20.682524] ffff8801d98279d8 ffffffff81d941c9 ffffffff841970ff ffff8801d9827ab0 [ 20.690490] 0000000000000000 ffff8801ce27ccc0 ffff8801cde111d8 ffff8801d9827aa0 [ 20.698458] ffffffff8142f3c1 0000000041b58ab3 ffffffff8418ab70 ffffffff8142f205 [ 20.706430] Call Trace: [ 20.708992] [] dump_stack+0xc1/0x128 [ 20.714325] [] panic+0x1bc/0x3a8 [ 20.719310] [] ? percpu_up_read_preempt_enable.constprop.53+0xd7/0xd7 [ 20.727510] [] kasan_end_report+0x50/0x50 [ 20.733278] [] kasan_report+0x167/0x360 [ 20.738876] [] ? inet_shutdown+0x2d4/0x350 [ 20.744734] [] ? pppol2tp_recvmsg+0x2b0/0x2b0 [ 20.750851] [] __asan_report_load4_noabort+0x14/0x20 [ 20.757574] [] inet_shutdown+0x2d4/0x350 [ 20.763253] [] ? pppol2tp_recvmsg+0x2b0/0x2b0 [ 20.769369] [] pppol2tp_session_close+0xa0/0xe0 [ 20.775656] [] l2tp_tunnel_closeall+0x21f/0x3a0 [ 20.781945] [] l2tp_tunnel_destruct+0x30e/0x5a0 [ 20.788233] [] ? l2tp_tunnel_destruct+0x1aa/0x5a0 [ 20.794693] [] ? l2tp_tunnel_del_work+0x460/0x460 [ 20.801156] [] __sk_destruct+0x53/0x570 [ 20.806752] [] rcu_process_callbacks+0x898/0x1300 [ 20.813213] [] ? rcu_process_callbacks+0x977/0x1300 [ 20.819850] [] ? __sk_dst_check+0x240/0x240 [ 20.825796] [] __do_softirq+0x206/0x951 [ 20.831394] [] ? takeover_tasklets+0x760/0x760 [ 20.837595] [] run_ksoftirqd+0x2e/0x60 [ 20.843126] [] smpboot_thread_fn+0x5c1/0x8f0 [ 20.843133] [] ? sort_range+0x30/0x30 [ 20.843139] [] ? __kthread_parkme+0xcf/0x240 [ 20.843145] [] ? schedule+0x89/0x1b0 [ 20.843148] [] ? __kthread_parkme+0x175/0x240 [ 20.843152] [] kthread+0x26d/0x300 [ 20.843155] [] ? sort_range+0x30/0x30 [ 20.843158] [] ? kthread_park+0xa0/0xa0 [ 20.843162] [] ? kthread_park+0xa0/0xa0 [ 20.843166] [] ? kthread_park+0xa0/0xa0 [ 20.843170] [] ret_from_fork+0x59/0x70 [ 20.849576] Dumping ftrace buffer: [ 20.849580] (ftrace buffer empty) [ 20.849582] Kernel Offset: disabled [ 20.916095] Rebooting in 86400 seconds..