[ 35.863486] audit: type=1800 audit(1547890946.131:27): pid=7556 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2436 res=0 [ 35.883098] audit: type=1800 audit(1547890946.131:28): pid=7556 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. [ 36.479133] audit: type=1800 audit(1547890946.821:29): pid=7556 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 [ 36.502991] audit: type=1800 audit(1547890946.821:30): pid=7556 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.135' (ECDSA) to the list of known hosts. 2019/01/19 09:55:31 parsed 1 programs 2019/01/19 09:55:33 executed programs: 0 syzkaller login: [ 823.030219] IPVS: ftp: loaded support on port[0] = 21 [ 823.092431] chnl_net:caif_netlink_parms(): no params data found [ 823.123658] bridge0: port 1(bridge_slave_0) entered blocking state [ 823.130716] bridge0: port 1(bridge_slave_0) entered disabled state [ 823.138084] device bridge_slave_0 entered promiscuous mode [ 823.145641] bridge0: port 2(bridge_slave_1) entered blocking state [ 823.152244] bridge0: port 2(bridge_slave_1) entered disabled state [ 823.159472] device bridge_slave_1 entered promiscuous mode [ 823.174262] bond0: Enslaving bond_slave_0 as an active interface with an up link [ 823.182990] bond0: Enslaving bond_slave_1 as an active interface with an up link [ 823.198450] IPv6: ADDRCONF(NETDEV_UP): team_slave_0: link is not ready [ 823.205765] team0: Port device team_slave_0 added [ 823.211028] IPv6: ADDRCONF(NETDEV_UP): team_slave_1: link is not ready [ 823.218197] team0: Port device team_slave_1 added [ 823.223327] IPv6: ADDRCONF(NETDEV_UP): bridge_slave_0: link is not ready [ 823.230672] IPv6: ADDRCONF(NETDEV_UP): bridge_slave_1: link is not ready [ 823.297567] device hsr_slave_0 entered promiscuous mode [ 823.335752] device hsr_slave_1 entered promiscuous mode [ 823.385787] IPv6: ADDRCONF(NETDEV_UP): hsr_slave_0: link is not ready [ 823.392626] IPv6: ADDRCONF(NETDEV_UP): hsr_slave_1: link is not ready [ 823.406081] bridge0: port 2(bridge_slave_1) entered blocking state [ 823.412482] bridge0: port 2(bridge_slave_1) entered forwarding state [ 823.419439] bridge0: port 1(bridge_slave_0) entered blocking state [ 823.425806] bridge0: port 1(bridge_slave_0) entered forwarding state [ 823.452866] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 823.460449] 8021q: adding VLAN 0 to HW filter on device bond0 [ 823.468688] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 823.477259] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 823.496680] bridge0: port 1(bridge_slave_0) entered disabled state [ 823.503999] bridge0: port 2(bridge_slave_1) entered disabled state [ 823.512070] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready [ 823.522181] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 823.528453] 8021q: adding VLAN 0 to HW filter on device team0 [ 823.536662] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_0: link becomes ready [ 823.544151] bridge0: port 1(bridge_slave_0) entered blocking state [ 823.550514] bridge0: port 1(bridge_slave_0) entered forwarding state [ 823.566851] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_1: link becomes ready [ 823.574501] bridge0: port 2(bridge_slave_1) entered blocking state [ 823.581115] bridge0: port 2(bridge_slave_1) entered forwarding state [ 823.588396] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready [ 823.597139] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_1: link becomes ready [ 823.605027] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 823.617486] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_0: link becomes ready [ 823.628108] hsr0: Slave B (hsr_slave_1) is not up; please bring it up to get a fully working HSR network [ 823.638849] IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready [ 823.644839] IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready [ 823.652181] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_1: link becomes ready [ 823.664040] IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready [ 823.675493] 8021q: adding VLAN 0 to HW filter on device batadv0 [ 823.917370] ================================================================== [ 823.925271] BUG: KASAN: use-after-free in __list_add_valid+0x9a/0xa0 [ 823.931745] Read of size 8 at addr ffff88809dc4e360 by task syz-executor0/7780 [ 823.939077] [ 823.940752] CPU: 0 PID: 7780 Comm: syz-executor0 Not tainted 5.0.0-rc2+ #33 [ 823.947834] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 823.957220] Call Trace: [ 823.959850] dump_stack+0x1db/0x2d0 [ 823.963465] ? dump_stack_print_info.cold+0x20/0x20 [ 823.968495] ? trace_hardirqs_on+0xbd/0x310 [ 823.972804] ? __list_add_valid+0x9a/0xa0 [ 823.976979] print_address_description.cold+0x7c/0x20d [ 823.982361] ? __list_add_valid+0x9a/0xa0 [ 823.986493] ? __list_add_valid+0x9a/0xa0 [ 823.990636] kasan_report.cold+0x1b/0x40 [ 823.994681] ? __list_add_valid+0x9a/0xa0 [ 823.998807] __asan_report_load8_noabort+0x14/0x20 [ 824.003714] __list_add_valid+0x9a/0xa0 [ 824.007912] rdma_listen+0x6c9/0xa10 [ 824.011613] ? rdma_resolve_addr+0x2720/0x2720 [ 824.016343] ucma_listen+0x1bf/0x250 [ 824.020043] ? ucma_notify+0x220/0x220 [ 824.023937] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 824.029465] ? _copy_from_user+0xdd/0x150 [ 824.033613] ucma_write+0x36b/0x480 [ 824.037217] ? ucma_notify+0x220/0x220 [ 824.041176] ? ucma_open+0x400/0x400 [ 824.044915] ? __might_fault+0x12b/0x1e0 [ 824.048982] ? find_held_lock+0x35/0x120 [ 824.053052] __vfs_write+0x116/0xb40 [ 824.056748] ? ucma_open+0x400/0x400 [ 824.060437] ? kernel_read+0x120/0x120 [ 824.064342] ? fget_raw+0x20/0x20 [ 824.067802] ? trace_hardirqs_off_caller+0x300/0x300 [ 824.072929] ? apparmor_file_permission+0x25/0x30 [ 824.077760] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 824.083311] ? security_file_permission+0x94/0x320 [ 824.088229] ? rw_verify_area+0x118/0x360 [ 824.092454] vfs_write+0x20c/0x580 [ 824.096018] ksys_write+0x105/0x260 [ 824.099640] ? __ia32_sys_read+0xb0/0xb0 [ 824.103685] ? trace_hardirqs_off_caller+0x300/0x300 [ 824.108787] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 824.113522] __x64_sys_write+0x73/0xb0 [ 824.117391] do_syscall_64+0x1a3/0x800 [ 824.121257] ? syscall_return_slowpath+0x5f0/0x5f0 [ 824.126312] ? prepare_exit_to_usermode+0x232/0x3b0 [ 824.131358] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 824.136318] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 824.141494] RIP: 0033:0x458099 [ 824.144667] Code: 6d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 3b b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 824.163570] RSP: 002b:00007f53a8d4ec78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 824.171265] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000458099 [ 824.178515] RDX: 0000000000000010 RSI: 00000000200001c0 RDI: 0000000000000003 [ 824.185766] RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 [ 824.193042] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f53a8d4f6d4 [ 824.200292] R13: 00000000004c71fe R14: 00000000004dca18 R15: 00000000ffffffff [ 824.207617] [ 824.209291] Allocated by task 7774: [ 824.212908] save_stack+0x45/0xd0 [ 824.216344] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 824.221348] kasan_kmalloc+0x9/0x10 [ 824.224965] kmem_cache_alloc_trace+0x151/0x760 [ 824.229626] __rdma_create_id+0xce/0x630 [ 824.233845] ucma_create_id+0x30f/0x910 [ 824.237804] ucma_write+0x36b/0x480 [ 824.241410] __vfs_write+0x116/0xb40 [ 824.245104] vfs_write+0x20c/0x580 [ 824.248623] ksys_write+0x105/0x260 [ 824.252225] __x64_sys_write+0x73/0xb0 [ 824.256093] do_syscall_64+0x1a3/0x800 [ 824.259963] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 824.265132] [ 824.266737] Freed by task 7773: [ 824.270003] save_stack+0x45/0xd0 [ 824.273439] __kasan_slab_free+0x102/0x150 [ 824.277809] kasan_slab_free+0xe/0x10 [ 824.281715] kfree+0xcf/0x230 [ 824.284802] rdma_destroy_id+0x8be/0xd80 [ 824.288844] ucma_close+0x115/0x320 [ 824.292450] __fput+0x3c5/0xb10 [ 824.295709] ____fput+0x16/0x20 [ 824.299018] task_work_run+0x1f4/0x2b0 [ 824.302892] exit_to_usermode_loop+0x32a/0x3b0 [ 824.307464] do_syscall_64+0x696/0x800 [ 824.311334] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 824.316496] [ 824.318105] The buggy address belongs to the object at ffff88809dc4e180 [ 824.318105] which belongs to the cache kmalloc-2k of size 2048 [ 824.330745] The buggy address is located 480 bytes inside of [ 824.330745] 2048-byte region [ffff88809dc4e180, ffff88809dc4e980) [ 824.342683] The buggy address belongs to the page: [ 824.347594] page:ffffea0002771380 count:1 mapcount:0 mapping:ffff88812c3f0c40 index:0x0 compound_mapcount: 0 [ 824.357541] flags: 0x1fffc0000010200(slab|head) [ 824.362202] raw: 01fffc0000010200 ffffea0002a3ac88 ffffea00025f8408 ffff88812c3f0c40 [ 824.370072] raw: 0000000000000000 ffff88809dc4e180 0000000100000003 0000000000000000 [ 824.377939] page dumped because: kasan: bad access detected [ 824.383629] [ 824.385240] Memory state around the buggy address: [ 824.390149] ffff88809dc4e200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 824.397500] ffff88809dc4e280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 824.404842] >ffff88809dc4e300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 824.412176] ^ [ 824.418647] ffff88809dc4e380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 824.425997] ffff88809dc4e400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 824.433470] ================================================================== [ 824.440803] Disabling lock debugging due to kernel taint [ 824.448226] Kernel panic - not syncing: panic_on_warn set ... [ 824.454111] CPU: 0 PID: 7780 Comm: syz-executor0 Tainted: G B 5.0.0-rc2+ #33 [ 824.462572] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 824.472052] Call Trace: [ 824.474628] dump_stack+0x1db/0x2d0 [ 824.478237] ? dump_stack_print_info.cold+0x20/0x20 [ 824.483303] panic+0x2cb/0x65c [ 824.486665] ? add_taint.cold+0x16/0x16 [ 824.490623] ? __list_add_valid+0x9a/0xa0 [ 824.494753] ? preempt_schedule+0x4b/0x60 [ 824.498878] ? ___preempt_schedule+0x16/0x18 [ 824.503273] ? trace_hardirqs_on+0xb4/0x310 [ 824.507581] ? __list_add_valid+0x9a/0xa0 [ 824.511725] end_report+0x47/0x4f [ 824.515170] ? __list_add_valid+0x9a/0xa0 [ 824.519300] kasan_report.cold+0xe/0x40 [ 824.523339] ? __list_add_valid+0x9a/0xa0 [ 824.527481] __asan_report_load8_noabort+0x14/0x20 [ 824.532404] __list_add_valid+0x9a/0xa0 [ 824.536414] rdma_listen+0x6c9/0xa10 [ 824.540117] ? rdma_resolve_addr+0x2720/0x2720 [ 824.544678] ucma_listen+0x1bf/0x250 [ 824.548370] ? ucma_notify+0x220/0x220 [ 824.552267] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 824.557788] ? _copy_from_user+0xdd/0x150 [ 824.561926] ucma_write+0x36b/0x480 [ 824.565542] ? ucma_notify+0x220/0x220 [ 824.569411] ? ucma_open+0x400/0x400 [ 824.573103] ? __might_fault+0x12b/0x1e0 [ 824.577146] ? find_held_lock+0x35/0x120 [ 824.581304] __vfs_write+0x116/0xb40 [ 824.585007] ? ucma_open+0x400/0x400 [ 824.588705] ? kernel_read+0x120/0x120 [ 824.592583] ? fget_raw+0x20/0x20 [ 824.596017] ? trace_hardirqs_off_caller+0x300/0x300 [ 824.601104] ? apparmor_file_permission+0x25/0x30 [ 824.605926] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 824.611447] ? security_file_permission+0x94/0x320 [ 824.616364] ? rw_verify_area+0x118/0x360 [ 824.620496] vfs_write+0x20c/0x580 [ 824.624026] ksys_write+0x105/0x260 [ 824.627634] ? __ia32_sys_read+0xb0/0xb0 [ 824.631681] ? trace_hardirqs_off_caller+0x300/0x300 [ 824.636787] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 824.641639] __x64_sys_write+0x73/0xb0 [ 824.645588] do_syscall_64+0x1a3/0x800 [ 824.649466] ? syscall_return_slowpath+0x5f0/0x5f0 [ 824.654380] ? prepare_exit_to_usermode+0x232/0x3b0 [ 824.659384] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 824.664383] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 824.669557] RIP: 0033:0x458099 [ 824.672736] Code: 6d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 3b b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 824.691621] RSP: 002b:00007f53a8d4ec78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 824.699312] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000458099 [ 824.706564] RDX: 0000000000000010 RSI: 00000000200001c0 RDI: 0000000000000003 [ 824.713829] RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 [ 824.721077] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f53a8d4f6d4 [ 824.728327] R13: 00000000004c71fe R14: 00000000004dca18 R15: 00000000ffffffff [ 824.736874] Kernel Offset: disabled [ 824.740504] Rebooting in 86400 seconds..