[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [ 56.494197][ T26] audit: type=1800 audit(1570405534.575:25): pid=8656 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="cron" dev="sda1" ino=2414 res=0 [ 56.539565][ T26] audit: type=1800 audit(1570405534.575:26): pid=8656 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="mcstrans" dev="sda1" ino=2457 res=0 [ 56.573886][ T26] audit: type=1800 audit(1570405534.585:27): pid=8656 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2436 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. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.10.22' (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 syzkaller login: [ 64.716617][ T8888] ================================================================== [ 64.725029][ T8888] BUG: KASAN: use-after-free in tipc_nl_publ_dump+0xb5c/0xd60 [ 64.732508][ T8888] Read of size 2 at addr ffff888086ff7d54 by task syz-executor167/8888 [ 64.740731][ T8888] [ 64.743182][ T8888] CPU: 0 PID: 8888 Comm: syz-executor167 Not tainted 5.4.0-rc1+ #0 [ 64.751059][ T8888] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 64.761112][ T8888] Call Trace: [ 64.764404][ T8888] dump_stack+0x172/0x1f0 [ 64.768726][ T8888] ? tipc_nl_publ_dump+0xb5c/0xd60 [ 64.773848][ T8888] print_address_description.constprop.0.cold+0xd4/0x30b [ 64.780860][ T8888] ? tipc_nl_publ_dump+0xb5c/0xd60 [ 64.785954][ T8888] ? tipc_nl_publ_dump+0xb5c/0xd60 [ 64.791052][ T8888] __kasan_report.cold+0x1b/0x41 [ 64.795978][ T8888] ? tipc_nl_publ_dump+0xb5c/0xd60 [ 64.801103][ T8888] kasan_report+0x12/0x20 [ 64.805420][ T8888] __asan_report_load2_noabort+0x14/0x20 [ 64.811035][ T8888] tipc_nl_publ_dump+0xb5c/0xd60 [ 64.815960][ T8888] ? mutex_trylock+0x2d0/0x2d0 [ 64.820709][ T8888] ? tipc_nl_sk_dump+0x30/0x30 [ 64.825455][ T8888] ? __kmalloc_node_track_caller+0x4e/0x70 [ 64.831246][ T8888] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 64.837519][ T8888] ? __phys_addr+0xa4/0x120 [ 64.842017][ T8888] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 64.848264][ T8888] ? __alloc_skb+0x3d0/0x5e0 [ 64.852843][ T8888] genl_lock_dumpit+0x86/0xc0 [ 64.857506][ T8888] netlink_dump+0x558/0xfb0 [ 64.862003][ T8888] ? netlink_broadcast+0x50/0x50 [ 64.866942][ T8888] __netlink_dump_start+0x5b1/0x7d0 [ 64.872152][ T8888] ? genl_lock_dumpit+0xc0/0xc0 [ 64.877004][ T8888] genl_rcv_msg+0xc9b/0x1000 [ 64.881585][ T8888] ? genl_family_rcv_msg_attrs_parse.isra.0+0x3a0/0x3a0 [ 64.888506][ T8888] ? genl_lock_dumpit+0xc0/0xc0 [ 64.893351][ T8888] ? genl_unlock+0x20/0x20 [ 64.897781][ T8888] ? genl_parallel_done+0x1c0/0x1c0 [ 64.902981][ T8888] ? mark_held_locks+0xf0/0xf0 [ 64.907751][ T8888] ? find_held_lock+0x35/0x130 [ 64.912500][ T8888] netlink_rcv_skb+0x177/0x450 [ 64.917262][ T8888] ? genl_family_rcv_msg_attrs_parse.isra.0+0x3a0/0x3a0 [ 64.924200][ T8888] ? netlink_ack+0xb50/0xb50 [ 64.928770][ T8888] ? __kasan_check_write+0x14/0x20 [ 64.933868][ T8888] ? netlink_deliver_tap+0x254/0xbf0 [ 64.939154][ T8888] genl_rcv+0x29/0x40 [ 64.943121][ T8888] netlink_unicast+0x531/0x710 [ 64.947878][ T8888] ? netlink_attachskb+0x7c0/0x7c0 [ 64.952971][ T8888] ? _copy_from_iter_full+0x25d/0x8c0 [ 64.958332][ T8888] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 64.964035][ T8888] ? __check_object_size+0x3d/0x437 [ 64.969233][ T8888] netlink_sendmsg+0x8a5/0xd60 [ 64.973993][ T8888] ? netlink_unicast+0x710/0x710 [ 64.978925][ T8888] ? aa_sock_msg_perm.isra.0+0xba/0x170 [ 64.984469][ T8888] ? apparmor_socket_sendmsg+0x2a/0x30 [ 64.989913][ T8888] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 64.996139][ T8888] ? security_socket_sendmsg+0x8d/0xc0 [ 65.001593][ T8888] ? netlink_unicast+0x710/0x710 [ 65.006537][ T8888] sock_sendmsg+0xd7/0x130 [ 65.010939][ T8888] ___sys_sendmsg+0x803/0x920 [ 65.015619][ T8888] ? copy_msghdr_from_user+0x440/0x440 [ 65.021077][ T8888] ? lock_downgrade+0x920/0x920 [ 65.025921][ T8888] ? _raw_spin_unlock_irqrestore+0x6b/0xe0 [ 65.031719][ T8888] ? lockdep_hardirqs_on+0x421/0x5e0 [ 65.036992][ T8888] ? __kasan_check_read+0x11/0x20 [ 65.042011][ T8888] ? mark_lock+0xc2/0x1220 [ 65.046433][ T8888] ? _raw_spin_unlock_irqrestore+0xa4/0xe0 [ 65.052306][ T8888] ? __kasan_check_read+0x11/0x20 [ 65.057346][ T8888] ? __lock_acquire+0x16f2/0x4a00 [ 65.062370][ T8888] ? debug_object_deactivate+0x320/0x320 [ 65.067998][ T8888] ? rcu_lockdep_current_cpu_online+0xe3/0x130 [ 65.074165][ T8888] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 65.080832][ T8888] ? __fget_light+0x1a9/0x230 [ 65.085493][ T8888] ? __fdget+0x1b/0x20 [ 65.089551][ T8888] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 65.095786][ T8888] __sys_sendmsg+0x105/0x1d0 [ 65.100362][ T8888] ? __sys_sendmsg_sock+0xd0/0xd0 [ 65.105372][ T8888] ? rcu_read_lock_any_held.part.0+0x50/0x50 [ 65.111347][ T8888] ? trace_hardirqs_on_thunk+0x1a/0x20 [ 65.116811][ T8888] ? do_syscall_64+0x26/0x760 [ 65.121483][ T8888] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 65.127560][ T8888] ? do_syscall_64+0x26/0x760 [ 65.132228][ T8888] __x64_sys_sendmsg+0x78/0xb0 [ 65.137022][ T8888] do_syscall_64+0xfa/0x760 [ 65.141515][ T8888] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 65.147412][ T8888] RIP: 0033:0x445239 [ 65.151290][ T8888] Code: e8 ac e8 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 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 0b cd fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 65.170875][ T8888] RSP: 002b:00007fffd09ea0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 65.179276][ T8888] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445239 [ 65.187244][ T8888] RDX: 0000000000000000 RSI: 0000000020000680 RDI: 0000000000000003 [ 65.195202][ T8888] RBP: 000000000000fc90 R08: 0000000000000000 R09: 00000000004002e0 [ 65.203158][ T8888] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004023d0 [ 65.211179][ T8888] R13: 0000000000402460 R14: 0000000000000000 R15: 0000000000000000 [ 65.219166][ T8888] [ 65.221484][ T8888] Allocated by task 8889: [ 65.225804][ T8888] save_stack+0x23/0x90 [ 65.230004][ T8888] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 65.235633][ T8888] kasan_kmalloc+0x9/0x10 [ 65.240107][ T8888] __kmalloc_node_track_caller+0x4e/0x70 [ 65.245764][ T8888] __kmalloc_reserve.isra.0+0x40/0xf0 [ 65.251178][ T8888] __alloc_skb+0x10b/0x5e0 [ 65.255618][ T8888] netlink_sendmsg+0x972/0xd60 [ 65.260365][ T8888] sock_sendmsg+0xd7/0x130 [ 65.264773][ T8888] ___sys_sendmsg+0x803/0x920 [ 65.269441][ T8888] __sys_sendmsg+0x105/0x1d0 [ 65.274030][ T8888] __x64_sys_sendmsg+0x78/0xb0 [ 65.278777][ T8888] do_syscall_64+0xfa/0x760 [ 65.283435][ T8888] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 65.289310][ T8888] [ 65.291627][ T8888] Freed by task 8889: [ 65.295592][ T8888] save_stack+0x23/0x90 [ 65.299815][ T8888] __kasan_slab_free+0x102/0x150 [ 65.304732][ T8888] kasan_slab_free+0xe/0x10 [ 65.309216][ T8888] kfree+0x10a/0x2c0 [ 65.313093][ T8888] skb_free_head+0x93/0xb0 [ 65.317488][ T8888] skb_release_data+0x42d/0x7c0 [ 65.322320][ T8888] skb_release_all+0x4d/0x60 [ 65.326906][ T8888] consume_skb+0xfb/0x3b0 [ 65.331234][ T8888] netlink_unicast+0x539/0x710 [ 65.336000][ T8888] netlink_sendmsg+0x8a5/0xd60 [ 65.340768][ T8888] sock_sendmsg+0xd7/0x130 [ 65.345167][ T8888] ___sys_sendmsg+0x803/0x920 [ 65.349824][ T8888] __sys_sendmsg+0x105/0x1d0 [ 65.354399][ T8888] __x64_sys_sendmsg+0x78/0xb0 [ 65.359158][ T8888] do_syscall_64+0xfa/0x760 [ 65.363661][ T8888] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 65.369549][ T8888] [ 65.371877][ T8888] The buggy address belongs to the object at ffff888086ff7d40 [ 65.371877][ T8888] which belongs to the cache kmalloc-512 of size 512 [ 65.386008][ T8888] The buggy address is located 20 bytes inside of [ 65.386008][ T8888] 512-byte region [ffff888086ff7d40, ffff888086ff7f40) [ 65.399288][ T8888] The buggy address belongs to the page: [ 65.404916][ T8888] page:ffffea00021bfdc0 refcount:1 mapcount:0 mapping:ffff8880aa400a80 index:0x0 [ 65.414004][ T8888] flags: 0x1fffc0000000200(slab) [ 65.418925][ T8888] raw: 01fffc0000000200 ffffea00029bfc48 ffffea00025f55c8 ffff8880aa400a80 [ 65.427497][ T8888] raw: 0000000000000000 ffff888086ff70c0 0000000100000006 0000000000000000 [ 65.436068][ T8888] page dumped because: kasan: bad access detected [ 65.442458][ T8888] [ 65.444782][ T8888] Memory state around the buggy address: [ 65.450394][ T8888] ffff888086ff7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 65.458436][ T8888] ffff888086ff7c80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc executing program executing program executing program [ 65.466479][ T8888] >ffff888086ff7d00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 65.474562][ T8888] ^ [ 65.481225][ T8888] ffff888086ff7d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 65.489316][ T8888] ffff888086ff7e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 65.497459][ T8888] ================================================================== [ 65.505499][ T8888] Disabling lock debugging due to kernel taint [ 65.513693][ T8888] Kernel panic - not syncing: panic_on_warn set ... [ 65.520335][ T8888] CPU: 0 PID: 8888 Comm: syz-executor167 Tainted: G B 5.4.0-rc1+ #0 [ 65.529607][ T8888] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 65.539658][ T8888] Call Trace: [ 65.542935][ T8888] dump_stack+0x172/0x1f0 [ 65.547247][ T8888] panic+0x2dc/0x755 [ 65.551129][ T8888] ? add_taint.cold+0x16/0x16 [ 65.555810][ T8888] ? tipc_nl_publ_dump+0xb5c/0xd60 [ 65.560919][ T8888] ? preempt_schedule+0x4b/0x60 [ 65.565857][ T8888] ? ___preempt_schedule+0x16/0x20 [ 65.570951][ T8888] ? trace_hardirqs_on+0x5e/0x240 [ 65.575957][ T8888] ? tipc_nl_publ_dump+0xb5c/0xd60 [ 65.581071][ T8888] end_report+0x47/0x4f [ 65.585216][ T8888] ? tipc_nl_publ_dump+0xb5c/0xd60 [ 65.590316][ T8888] __kasan_report.cold+0xe/0x41 [ 65.595157][ T8888] ? tipc_nl_publ_dump+0xb5c/0xd60 [ 65.600250][ T8888] kasan_report+0x12/0x20 [ 65.604586][ T8888] __asan_report_load2_noabort+0x14/0x20 [ 65.610216][ T8888] tipc_nl_publ_dump+0xb5c/0xd60 [ 65.615150][ T8888] ? mutex_trylock+0x2d0/0x2d0 [ 65.619904][ T8888] ? tipc_nl_sk_dump+0x30/0x30 [ 65.624672][ T8888] ? __kmalloc_node_track_caller+0x4e/0x70 [ 65.630473][ T8888] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 65.636718][ T8888] ? __phys_addr+0xa4/0x120 [ 65.641207][ T8888] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 65.647437][ T8888] ? __alloc_skb+0x3d0/0x5e0 [ 65.652012][ T8888] genl_lock_dumpit+0x86/0xc0 [ 65.656673][ T8888] netlink_dump+0x558/0xfb0 [ 65.661163][ T8888] ? netlink_broadcast+0x50/0x50 [ 65.666103][ T8888] __netlink_dump_start+0x5b1/0x7d0 [ 65.671313][ T8888] ? genl_lock_dumpit+0xc0/0xc0 [ 65.676156][ T8888] genl_rcv_msg+0xc9b/0x1000 [ 65.680745][ T8888] ? genl_family_rcv_msg_attrs_parse.isra.0+0x3a0/0x3a0 [ 65.687698][ T8888] ? genl_lock_dumpit+0xc0/0xc0 [ 65.692571][ T8888] ? genl_unlock+0x20/0x20 [ 65.696971][ T8888] ? genl_parallel_done+0x1c0/0x1c0 [ 65.702160][ T8888] ? mark_held_locks+0xf0/0xf0 [ 65.706905][ T8888] ? find_held_lock+0x35/0x130 [ 65.711657][ T8888] netlink_rcv_skb+0x177/0x450 [ 65.716403][ T8888] ? genl_family_rcv_msg_attrs_parse.isra.0+0x3a0/0x3a0 [ 65.723333][ T8888] ? netlink_ack+0xb50/0xb50 [ 65.727932][ T8888] ? __kasan_check_write+0x14/0x20 [ 65.733152][ T8888] ? netlink_deliver_tap+0x254/0xbf0 [ 65.738523][ T8888] genl_rcv+0x29/0x40 [ 65.742496][ T8888] netlink_unicast+0x531/0x710 [ 65.747248][ T8888] ? netlink_attachskb+0x7c0/0x7c0 [ 65.752339][ T8888] ? _copy_from_iter_full+0x25d/0x8c0 [ 65.757694][ T8888] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 65.763391][ T8888] ? __check_object_size+0x3d/0x437 [ 65.768571][ T8888] netlink_sendmsg+0x8a5/0xd60 [ 65.773318][ T8888] ? netlink_unicast+0x710/0x710 [ 65.778243][ T8888] ? aa_sock_msg_perm.isra.0+0xba/0x170 [ 65.783768][ T8888] ? apparmor_socket_sendmsg+0x2a/0x30 [ 65.789209][ T8888] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 65.795435][ T8888] ? security_socket_sendmsg+0x8d/0xc0 [ 65.800884][ T8888] ? netlink_unicast+0x710/0x710 [ 65.805808][ T8888] sock_sendmsg+0xd7/0x130 [ 65.810204][ T8888] ___sys_sendmsg+0x803/0x920 [ 65.814860][ T8888] ? copy_msghdr_from_user+0x440/0x440 [ 65.820303][ T8888] ? lock_downgrade+0x920/0x920 [ 65.825147][ T8888] ? _raw_spin_unlock_irqrestore+0x6b/0xe0 [ 65.830945][ T8888] ? lockdep_hardirqs_on+0x421/0x5e0 [ 65.836212][ T8888] ? __kasan_check_read+0x11/0x20 [ 65.841217][ T8888] ? mark_lock+0xc2/0x1220 [ 65.845614][ T8888] ? _raw_spin_unlock_irqrestore+0xa4/0xe0 [ 65.851408][ T8888] ? __kasan_check_read+0x11/0x20 [ 65.856423][ T8888] ? __lock_acquire+0x16f2/0x4a00 [ 65.861427][ T8888] ? debug_object_deactivate+0x320/0x320 [ 65.867043][ T8888] ? rcu_lockdep_current_cpu_online+0xe3/0x130 [ 65.873178][ T8888] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 65.879431][ T8888] ? __fget_light+0x1a9/0x230 [ 65.884104][ T8888] ? __fdget+0x1b/0x20 [ 65.888169][ T8888] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 65.894419][ T8888] __sys_sendmsg+0x105/0x1d0 [ 65.898993][ T8888] ? __sys_sendmsg_sock+0xd0/0xd0 [ 65.903998][ T8888] ? rcu_read_lock_any_held.part.0+0x50/0x50 [ 65.909959][ T8888] ? trace_hardirqs_on_thunk+0x1a/0x20 [ 65.915399][ T8888] ? do_syscall_64+0x26/0x760 [ 65.920071][ T8888] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 65.926142][ T8888] ? do_syscall_64+0x26/0x760 [ 65.930803][ T8888] __x64_sys_sendmsg+0x78/0xb0 [ 65.935566][ T8888] do_syscall_64+0xfa/0x760 [ 65.940065][ T8888] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 65.945945][ T8888] RIP: 0033:0x445239 [ 65.949818][ T8888] Code: e8 ac e8 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 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 0b cd fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 65.969429][ T8888] RSP: 002b:00007fffd09ea0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 65.977842][ T8888] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445239 [ 65.985806][ T8888] RDX: 0000000000000000 RSI: 0000000020000680 RDI: 0000000000000003 [ 65.993776][ T8888] RBP: 000000000000fc90 R08: 0000000000000000 R09: 00000000004002e0 [ 66.001742][ T8888] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004023d0 [ 66.009710][ T8888] R13: 0000000000402460 R14: 0000000000000000 R15: 0000000000000000 [ 66.019023][ T8888] Kernel Offset: disabled [ 66.023406][ T8888] Rebooting in 86400 seconds..