[ 41.934542][ T26] audit: type=1800 audit(1553056815.833:27): pid=7610 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2436 res=0 [ 41.957820][ T26] audit: type=1800 audit(1553056815.833:28): pid=7610 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. [ 42.620012][ T26] audit: type=1800 audit(1553056816.583:29): pid=7610 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 [ 42.648906][ T26] audit: type=1800 audit(1553056816.583:30): pid=7610 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.15.229' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 52.382658][ T7764] ================================================================== [ 52.391007][ T7764] BUG: KASAN: use-after-free in tipc_sk_filter_rcv+0x2166/0x34f0 [ 52.398777][ T7764] Read of size 4 at addr ffff888092a309b4 by task syz-executor975/7764 [ 52.407305][ T7764] [ 52.409992][ T7764] CPU: 1 PID: 7764 Comm: syz-executor975 Not tainted 5.0.0+ #61 [ 52.417613][ T7764] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 52.428428][ T7764] Call Trace: [ 52.431741][ T7764] dump_stack+0x172/0x1f0 [ 52.436071][ T7764] ? tipc_sk_filter_rcv+0x2166/0x34f0 [ 52.441823][ T7764] print_address_description.cold+0x7c/0x20d [ 52.448013][ T7764] ? tipc_sk_filter_rcv+0x2166/0x34f0 [ 52.453431][ T7764] ? tipc_sk_filter_rcv+0x2166/0x34f0 [ 52.459024][ T7764] kasan_report.cold+0x1b/0x40 [ 52.463948][ T7764] ? tipc_sk_filter_rcv+0x2166/0x34f0 [ 52.469361][ T7764] __asan_report_load4_noabort+0x14/0x20 [ 52.475184][ T7764] tipc_sk_filter_rcv+0x2166/0x34f0 [ 52.480511][ T7764] ? tipc_sk_overlimit2+0xa0/0xa0 [ 52.485911][ T7764] ? __local_bh_enable_ip+0x15a/0x270 [ 52.491288][ T7764] ? lockdep_hardirqs_on+0x19e/0x5d0 [ 52.497749][ T7764] ? tipc_sk_rcv+0x562/0x25a0 [ 52.502760][ T7764] ? __local_bh_enable_ip+0x15a/0x270 [ 52.508224][ T7764] tipc_sk_rcv+0xc45/0x25a0 [ 52.512723][ T7764] ? __lock_acquire+0x548/0x3fb0 [ 52.517666][ T7764] ? __kmalloc_reserve.isra.0+0x40/0xf0 [ 52.523209][ T7764] ? sock_recvmsg+0xd0/0x110 [ 52.527884][ T7764] ? ___sys_recvmsg+0x273/0x5a0 [ 52.532882][ T7764] ? tipc_sk_filter_rcv+0x34f0/0x34f0 [ 52.538264][ T7764] ? tipc_node_xmit+0x20b/0x640 [ 52.543118][ T7764] ? find_held_lock+0x35/0x130 [ 52.547882][ T7764] ? tipc_node_xmit+0x20b/0x640 [ 52.552759][ T7764] ? lock_downgrade+0x880/0x880 [ 52.557718][ T7764] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 52.566865][ T7764] ? kasan_check_read+0x11/0x20 [ 52.571814][ T7764] tipc_node_xmit+0x296/0x640 [ 52.576509][ T7764] ? tipc_node_get_linkname+0x110/0x110 [ 52.582084][ T7764] ? kasan_kmalloc+0x9/0x10 [ 52.586591][ T7764] ? __kmalloc_node_track_caller+0x4e/0x70 [ 52.592500][ T7764] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 52.599126][ T7764] ? lockdep_init_map+0x1be/0x6d0 [ 52.604234][ T7764] tipc_node_xmit_skb+0x10f/0x190 [ 52.609498][ T7764] ? skb_trim+0x190/0x190 [ 52.613953][ T7764] ? tipc_node_xmit+0x640/0x640 [ 52.618887][ T7764] ? memset+0x32/0x40 [ 52.622867][ T7764] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 52.629102][ T7764] ? tipc_msg_create+0x20f/0x270 [ 52.634035][ T7764] tipc_sk_send_ack+0x40e/0x4e0 [ 52.638880][ T7764] tipc_recvstream+0x8e3/0xa10 [ 52.643641][ T7764] ? tipc_recvmsg+0xc90/0xc90 [ 52.648312][ T7764] ? apparmor_socket_recvmsg+0x2a/0x30 [ 52.654223][ T7764] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 52.660470][ T7764] ? security_socket_recvmsg+0x9b/0xd0 [ 52.665932][ T7764] ? tipc_recvmsg+0xc90/0xc90 [ 52.670992][ T7764] sock_recvmsg+0xd0/0x110 [ 52.675429][ T7764] ? __sock_recv_ts_and_drops+0x590/0x590 [ 52.681167][ T7764] ___sys_recvmsg+0x273/0x5a0 [ 52.685855][ T7764] ? ___sys_sendmsg+0x930/0x930 [ 52.690731][ T7764] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 52.696981][ T7764] ? kasan_check_read+0x11/0x20 [ 52.705228][ T7764] ? __fget+0x381/0x550 [ 52.709511][ T7764] ? ksys_dup3+0x3e0/0x3e0 [ 52.713927][ T7764] ? __fget_light+0x1a9/0x230 [ 52.718625][ T7764] ? __fdget+0x1b/0x20 [ 52.722714][ T7764] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 52.729072][ T7764] __sys_recvmsg+0x102/0x1d0 [ 52.733672][ T7764] ? __ia32_sys_sendmmsg+0x100/0x100 [ 52.738956][ T7764] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 52.744397][ T7764] ? do_syscall_64+0x26/0x610 [ 52.749061][ T7764] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 52.755116][ T7764] ? do_syscall_64+0x26/0x610 [ 52.759781][ T7764] __x64_sys_recvmsg+0x78/0xb0 [ 52.764545][ T7764] do_syscall_64+0x103/0x610 [ 52.769129][ T7764] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 52.775011][ T7764] RIP: 0033:0x445879 [ 52.778895][ T7764] Code: e8 bc b7 02 00 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 2b 12 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 52.798919][ T7764] RSP: 002b:00007f5707548db8 EFLAGS: 00000246 ORIG_RAX: 000000000000002f [ 52.807349][ T7764] RAX: ffffffffffffffda RBX: 00000000006dac28 RCX: 0000000000445879 [ 52.815345][ T7764] RDX: 0000000000003f00 RSI: 0000000020000200 RDI: 0000000000000003 [ 52.823352][ T7764] RBP: 00000000006dac20 R08: 0000000000000000 R09: 0000000000000000 [ 52.831351][ T7764] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dac2c [ 52.839425][ T7764] R13: 00007ffebbb5fe0f R14: 00007f57075499c0 R15: 20c49ba5e353f7cf [ 52.847419][ T7764] [ 52.849732][ T7764] Allocated by task 7764: [ 52.854066][ T7764] save_stack+0x45/0xd0 [ 52.858209][ T7764] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 52.863844][ T7764] kasan_kmalloc+0x9/0x10 [ 52.868184][ T7764] __kmalloc_node_track_caller+0x4e/0x70 [ 52.873800][ T7764] __kmalloc_reserve.isra.0+0x40/0xf0 [ 52.879806][ T7764] __alloc_skb+0x10b/0x5e0 [ 52.884216][ T7764] tipc_buf_acquire+0x2f/0x100 [ 52.889866][ T7764] tipc_msg_create+0x38/0x270 [ 52.894541][ T7764] tipc_sk_send_ack+0x19b/0x4e0 [ 52.899404][ T7764] tipc_recvstream+0x8e3/0xa10 [ 52.904484][ T7764] sock_recvmsg+0xd0/0x110 [ 52.908893][ T7764] ___sys_recvmsg+0x273/0x5a0 [ 52.913577][ T7764] __sys_recvmsg+0x102/0x1d0 [ 52.918162][ T7764] __x64_sys_recvmsg+0x78/0xb0 [ 52.922939][ T7764] do_syscall_64+0x103/0x610 [ 52.927539][ T7764] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 52.933879][ T7764] [ 52.936190][ T7764] Freed by task 7764: [ 52.940862][ T7764] save_stack+0x45/0xd0 [ 52.945026][ T7764] __kasan_slab_free+0x102/0x150 [ 52.949957][ T7764] kasan_slab_free+0xe/0x10 [ 52.954557][ T7764] kfree+0xcf/0x230 [ 52.958364][ T7764] skb_free_head+0x93/0xb0 [ 52.962771][ T7764] skb_release_data+0x576/0x7a0 [ 52.967741][ T7764] skb_release_all+0x4d/0x60 [ 52.972365][ T7764] kfree_skb+0xe8/0x390 [ 52.976510][ T7764] tipc_sk_filter_rcv+0x241b/0x34f0 [ 52.982198][ T7764] tipc_sk_rcv+0xc45/0x25a0 [ 52.986780][ T7764] tipc_node_xmit+0x296/0x640 [ 52.991456][ T7764] tipc_node_xmit_skb+0x10f/0x190 [ 52.996913][ T7764] tipc_sk_send_ack+0x40e/0x4e0 [ 53.001879][ T7764] tipc_recvstream+0x8e3/0xa10 [ 53.006632][ T7764] sock_recvmsg+0xd0/0x110 [ 53.011054][ T7764] ___sys_recvmsg+0x273/0x5a0 [ 53.015748][ T7764] __sys_recvmsg+0x102/0x1d0 [ 53.020353][ T7764] __x64_sys_recvmsg+0x78/0xb0 [ 53.025108][ T7764] do_syscall_64+0x103/0x610 [ 53.029682][ T7764] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 53.035589][ T7764] [ 53.037919][ T7764] The buggy address belongs to the object at ffff888092a30900 [ 53.037919][ T7764] which belongs to the cache kmalloc-1k of size 1024 [ 53.052077][ T7764] The buggy address is located 180 bytes inside of [ 53.052077][ T7764] 1024-byte region [ffff888092a30900, ffff888092a30d00) [ 53.065705][ T7764] The buggy address belongs to the page: [ 53.071349][ T7764] page:ffffea00024a8c00 count:1 mapcount:0 mapping:ffff88812c3f0ac0 index:0x0 compound_mapcount: 0 [ 53.082117][ T7764] flags: 0x1fffc0000010200(slab|head) [ 53.087490][ T7764] raw: 01fffc0000010200 ffffea000252b388 ffffea0002851c08 ffff88812c3f0ac0 [ 53.096067][ T7764] raw: 0000000000000000 ffff888092a30000 0000000100000007 0000000000000000 [ 53.104642][ T7764] page dumped because: kasan: bad access detected [ 53.111061][ T7764] [ 53.113373][ T7764] Memory state around the buggy address: [ 53.118996][ T7764] ffff888092a30880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 53.127172][ T7764] ffff888092a30900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.135298][ T7764] >ffff888092a30980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.143969][ T7764] ^ [ 53.149896][ T7764] ffff888092a30a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.158179][ T7764] ffff888092a30a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.166221][ T7764] ================================================================== [ 53.174389][ T7764] Disabling lock debugging due to kernel taint [ 53.180631][ T7764] Kernel panic - not syncing: panic_on_warn set ... [ 53.187226][ T7764] CPU: 1 PID: 7764 Comm: syz-executor975 Tainted: G B 5.0.0+ #61 [ 53.196404][ T7764] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 53.206652][ T7764] Call Trace: [ 53.209934][ T7764] dump_stack+0x172/0x1f0 [ 53.214314][ T7764] panic+0x2cb/0x65c [ 53.218249][ T7764] ? __warn_printk+0xf3/0xf3 [ 53.222917][ T7764] ? trace_hardirqs_on+0x5e/0x230 [ 53.227923][ T7764] ? trace_hardirqs_on+0x5e/0x230 [ 53.232928][ T7764] ? tipc_sk_filter_rcv+0x2166/0x34f0 [ 53.238284][ T7764] end_report+0x47/0x4f [ 53.242417][ T7764] ? tipc_sk_filter_rcv+0x2166/0x34f0 [ 53.247872][ T7764] kasan_report.cold+0xe/0x40 [ 53.252535][ T7764] ? tipc_sk_filter_rcv+0x2166/0x34f0 [ 53.258074][ T7764] __asan_report_load4_noabort+0x14/0x20 [ 53.263798][ T7764] tipc_sk_filter_rcv+0x2166/0x34f0 [ 53.268982][ T7764] ? tipc_sk_overlimit2+0xa0/0xa0 [ 53.273989][ T7764] ? __local_bh_enable_ip+0x15a/0x270 [ 53.279363][ T7764] ? lockdep_hardirqs_on+0x19e/0x5d0 [ 53.284633][ T7764] ? tipc_sk_rcv+0x562/0x25a0 [ 53.289308][ T7764] ? __local_bh_enable_ip+0x15a/0x270 [ 53.294947][ T7764] tipc_sk_rcv+0xc45/0x25a0 [ 53.299439][ T7764] ? __lock_acquire+0x548/0x3fb0 [ 53.304472][ T7764] ? __kmalloc_reserve.isra.0+0x40/0xf0 [ 53.310002][ T7764] ? sock_recvmsg+0xd0/0x110 [ 53.314573][ T7764] ? ___sys_recvmsg+0x273/0x5a0 [ 53.319433][ T7764] ? tipc_sk_filter_rcv+0x34f0/0x34f0 [ 53.324792][ T7764] ? tipc_node_xmit+0x20b/0x640 [ 53.329651][ T7764] ? find_held_lock+0x35/0x130 [ 53.334410][ T7764] ? tipc_node_xmit+0x20b/0x640 [ 53.339416][ T7764] ? lock_downgrade+0x880/0x880 [ 53.344356][ T7764] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 53.350578][ T7764] ? kasan_check_read+0x11/0x20 [ 53.355443][ T7764] tipc_node_xmit+0x296/0x640 [ 53.360208][ T7764] ? tipc_node_get_linkname+0x110/0x110 [ 53.365743][ T7764] ? kasan_kmalloc+0x9/0x10 [ 53.370351][ T7764] ? __kmalloc_node_track_caller+0x4e/0x70 [ 53.376144][ T7764] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 53.382546][ T7764] ? lockdep_init_map+0x1be/0x6d0 [ 53.387566][ T7764] tipc_node_xmit_skb+0x10f/0x190 [ 53.392703][ T7764] ? skb_trim+0x190/0x190 [ 53.397246][ T7764] ? tipc_node_xmit+0x640/0x640 [ 53.402175][ T7764] ? memset+0x32/0x40 [ 53.406163][ T7764] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 53.412412][ T7764] ? tipc_msg_create+0x20f/0x270 [ 53.417337][ T7764] tipc_sk_send_ack+0x40e/0x4e0 [ 53.422176][ T7764] tipc_recvstream+0x8e3/0xa10 [ 53.426951][ T7764] ? tipc_recvmsg+0xc90/0xc90 [ 53.431755][ T7764] ? apparmor_socket_recvmsg+0x2a/0x30 [ 53.437234][ T7764] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 53.443979][ T7764] ? security_socket_recvmsg+0x9b/0xd0 [ 53.449968][ T7764] ? tipc_recvmsg+0xc90/0xc90 [ 53.454889][ T7764] sock_recvmsg+0xd0/0x110 [ 53.459630][ T7764] ? __sock_recv_ts_and_drops+0x590/0x590 [ 53.465366][ T7764] ___sys_recvmsg+0x273/0x5a0 [ 53.470080][ T7764] ? ___sys_sendmsg+0x930/0x930 [ 53.475042][ T7764] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 53.481803][ T7764] ? kasan_check_read+0x11/0x20 [ 53.486642][ T7764] ? __fget+0x381/0x550 [ 53.490780][ T7764] ? ksys_dup3+0x3e0/0x3e0 [ 53.495184][ T7764] ? __fget_light+0x1a9/0x230 [ 53.499853][ T7764] ? __fdget+0x1b/0x20 [ 53.503931][ T7764] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 53.510161][ T7764] __sys_recvmsg+0x102/0x1d0 [ 53.515112][ T7764] ? __ia32_sys_sendmmsg+0x100/0x100 [ 53.521881][ T7764] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 53.527866][ T7764] ? do_syscall_64+0x26/0x610 [ 53.532683][ T7764] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 53.539115][ T7764] ? do_syscall_64+0x26/0x610 [ 53.543811][ T7764] __x64_sys_recvmsg+0x78/0xb0 [ 53.549131][ T7764] do_syscall_64+0x103/0x610 [ 53.553740][ T7764] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 53.559823][ T7764] RIP: 0033:0x445879 [ 53.564131][ T7764] Code: e8 bc b7 02 00 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 2b 12 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 53.584023][ T7764] RSP: 002b:00007f5707548db8 EFLAGS: 00000246 ORIG_RAX: 000000000000002f [ 53.592434][ T7764] RAX: ffffffffffffffda RBX: 00000000006dac28 RCX: 0000000000445879 [ 53.601755][ T7764] RDX: 0000000000003f00 RSI: 0000000020000200 RDI: 0000000000000003 [ 53.621757][ T7764] RBP: 00000000006dac20 R08: 0000000000000000 R09: 0000000000000000 [ 53.642351][ T7764] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dac2c [ 53.650330][ T7764] R13: 00007ffebbb5fe0f R14: 00007f57075499c0 R15: 20c49ba5e353f7cf [ 53.659492][ T7764] Kernel Offset: disabled [ 53.664171][ T7764] Rebooting in 86400 seconds..