[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 34.689598] audit: type=1800 audit(1545062321.458:33): pid=6018 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=2432 res=0 [ 34.711816] audit: type=1800 audit(1545062321.458:34): pid=6018 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="startpar" name="rmnologin" dev="sda1" ino=2423 res=0 Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 38.276498] audit: type=1400 audit(1545062325.048:35): avc: denied { map } for pid=6198 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 Warning: Permanently added '10.128.0.141' (ECDSA) to the list of known hosts. [ 93.920117] audit: type=1400 audit(1545062380.688:36): avc: denied { map } for pid=6211 comm="syz-execprog" path="/root/syz-execprog" dev="sda1" ino=16482 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 2018/12/17 15:59:41 parsed 1 programs [ 94.601476] audit: type=1400 audit(1545062381.368:37): avc: denied { map } for pid=6211 comm="syz-execprog" path="/sys/kernel/debug/kcov" dev="debugfs" ino=2494 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:debugfs_t:s0 tclass=file permissive=1 2018/12/17 15:59:42 executed programs: 0 [ 96.061477] IPVS: ftp: loaded support on port[0] = 21 [ 96.315950] bridge0: port 1(bridge_slave_0) entered blocking state [ 96.323268] bridge0: port 1(bridge_slave_0) entered disabled state [ 96.330375] device bridge_slave_0 entered promiscuous mode [ 96.348933] bridge0: port 2(bridge_slave_1) entered blocking state [ 96.355537] bridge0: port 2(bridge_slave_1) entered disabled state [ 96.363387] device bridge_slave_1 entered promiscuous mode [ 96.380887] IPv6: ADDRCONF(NETDEV_UP): veth0_to_bridge: link is not ready [ 96.398966] IPv6: ADDRCONF(NETDEV_UP): veth1_to_bridge: link is not ready [ 96.449596] bond0: Enslaving bond_slave_0 as an active interface with an up link [ 96.470308] bond0: Enslaving bond_slave_1 as an active interface with an up link [ 96.548205] IPv6: ADDRCONF(NETDEV_UP): team_slave_0: link is not ready [ 96.555709] team0: Port device team_slave_0 added [ 96.572870] IPv6: ADDRCONF(NETDEV_UP): team_slave_1: link is not ready [ 96.579968] team0: Port device team_slave_1 added [ 96.597419] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready [ 96.618928] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_1: link becomes ready [ 96.638285] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_bridge: link becomes ready [ 96.658132] IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_bridge: link becomes ready [ 96.806287] bridge0: port 2(bridge_slave_1) entered blocking state [ 96.812869] bridge0: port 2(bridge_slave_1) entered forwarding state [ 96.819709] bridge0: port 1(bridge_slave_0) entered blocking state [ 96.826102] bridge0: port 1(bridge_slave_0) entered forwarding state [ 97.360522] 8021q: adding VLAN 0 to HW filter on device bond0 [ 97.413583] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 97.465095] IPv6: ADDRCONF(NETDEV_UP): veth1: link is not ready [ 97.471201] IPv6: ADDRCONF(NETDEV_CHANGE): veth1: link becomes ready [ 97.479542] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 97.524137] 8021q: adding VLAN 0 to HW filter on device team0 [ 97.815133] audit: type=1400 audit(1545062384.588:38): avc: denied { associate } for pid=6224 comm="syz-executor0" name="syz0" scontext=unconfined_u:object_r:unlabeled_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=filesystem permissive=1 2018/12/17 15:59:47 executed programs: 122 2018/12/17 15:59:52 executed programs: 311 2018/12/17 15:59:57 executed programs: 505 [ 113.228217] ================================================================== [ 113.235684] BUG: KASAN: use-after-free in __list_add_valid+0x8f/0xac [ 113.242162] Read of size 8 at addr ffff8881cb4cad60 by task syz-executor0/10179 [ 113.249589] [ 113.251237] CPU: 1 PID: 10179 Comm: syz-executor0 Not tainted 4.20.0-rc7+ #155 [ 113.258584] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 113.267931] Call Trace: [ 113.270565] dump_stack+0x244/0x39d [ 113.274204] ? dump_stack_print_info.cold.1+0x20/0x20 [ 113.279382] ? printk+0xa7/0xcf [ 113.282646] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 113.287393] ? kasan_check_read+0x11/0x20 [ 113.291570] print_address_description.cold.7+0x9/0x1ff [ 113.296925] kasan_report.cold.8+0x242/0x309 [ 113.301340] ? __list_add_valid+0x8f/0xac [ 113.305481] __asan_report_load8_noabort+0x14/0x20 [ 113.310400] __list_add_valid+0x8f/0xac [ 113.314369] rdma_listen+0x6dc/0x990 [ 113.318088] ? rdma_resolve_addr+0x2870/0x2870 [ 113.322682] ucma_listen+0x1a4/0x260 [ 113.326384] ? ucma_notify+0x210/0x210 [ 113.330289] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 113.335822] ? _copy_from_user+0xdf/0x150 [ 113.339972] ? ucma_notify+0x210/0x210 [ 113.343850] ucma_write+0x365/0x460 [ 113.347472] ? ucma_open+0x3f0/0x3f0 [ 113.351183] __vfs_write+0x119/0x9f0 [ 113.354907] ? __fget_light+0x2e9/0x430 [ 113.358882] ? ucma_open+0x3f0/0x3f0 [ 113.362597] ? kernel_read+0x120/0x120 [ 113.366477] ? __might_sleep+0x95/0x190 [ 113.370447] ? perf_trace_sched_process_exec+0x860/0x860 [ 113.375890] ? posix_ktime_get_ts+0x15/0x20 [ 113.380205] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 113.385759] ? __inode_security_revalidate+0xd9/0x120 [ 113.390969] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 113.396013] ? selinux_file_permission+0x90/0x540 [ 113.400863] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 113.406387] ? security_file_permission+0x1c2/0x220 [ 113.411389] ? rw_verify_area+0x118/0x360 [ 113.415525] vfs_write+0x1fc/0x560 [ 113.419054] ksys_write+0x101/0x260 [ 113.422688] ? __ia32_sys_read+0xb0/0xb0 [ 113.426757] ? trace_hardirqs_off_caller+0x310/0x310 [ 113.431847] __x64_sys_write+0x73/0xb0 [ 113.435725] do_syscall_64+0x1b9/0x820 [ 113.439613] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 113.444981] ? syscall_return_slowpath+0x5e0/0x5e0 [ 113.449902] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 113.454734] ? trace_hardirqs_on_caller+0x310/0x310 [ 113.459737] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 113.464747] ? prepare_exit_to_usermode+0x291/0x3b0 [ 113.469774] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 113.474607] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 113.479824] RIP: 0033:0x457669 [ 113.483010] Code: fd b3 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 cb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 113.501913] RSP: 002b:00007f900cdd3c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 113.509605] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457669 [ 113.516860] RDX: 0000000000000010 RSI: 00000000200003c0 RDI: 0000000000000003 [ 113.524112] RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 [ 113.531367] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f900cdd46d4 [ 113.538640] R13: 00000000004c5f10 R14: 00000000004da9d0 R15: 00000000ffffffff [ 113.545899] [ 113.547516] Allocated by task 10173: [ 113.551219] save_stack+0x43/0xd0 [ 113.554658] kasan_kmalloc+0xc7/0xe0 [ 113.558371] kmem_cache_alloc_trace+0x152/0x750 [ 113.563035] __rdma_create_id+0xdf/0x650 [ 113.567081] ucma_create_id+0x39b/0x990 [ 113.571046] ucma_write+0x365/0x460 [ 113.574664] __vfs_write+0x119/0x9f0 [ 113.578360] vfs_write+0x1fc/0x560 [ 113.581884] ksys_write+0x101/0x260 [ 113.585496] __x64_sys_write+0x73/0xb0 [ 113.589368] do_syscall_64+0x1b9/0x820 [ 113.593240] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 113.598411] [ 113.600025] Freed by task 10172: [ 113.603377] save_stack+0x43/0xd0 [ 113.606816] __kasan_slab_free+0x102/0x150 [ 113.611051] kasan_slab_free+0xe/0x10 [ 113.614845] kfree+0xcf/0x230 [ 113.617945] rdma_destroy_id+0x835/0xcc0 [ 113.622014] ucma_close+0x114/0x310 [ 113.625642] __fput+0x385/0xa30 [ 113.629030] ____fput+0x15/0x20 [ 113.632314] task_work_run+0x1e8/0x2a0 [ 113.636197] exit_to_usermode_loop+0x318/0x380 [ 113.640831] do_syscall_64+0x6be/0x820 [ 113.644721] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 113.649889] [ 113.651506] The buggy address belongs to the object at ffff8881cb4cab80 [ 113.651506] which belongs to the cache kmalloc-2k of size 2048 [ 113.664150] The buggy address is located 480 bytes inside of [ 113.664150] 2048-byte region [ffff8881cb4cab80, ffff8881cb4cb380) [ 113.676092] The buggy address belongs to the page: [ 113.681012] page:ffffea00072d3280 count:1 mapcount:0 mapping:ffff8881da800c40 index:0xffff8881cb4ca300 compound_mapcount: 0 [ 113.692261] flags: 0x2fffc0000010200(slab|head) [ 113.696949] raw: 02fffc0000010200 ffffea0007387308 ffffea000731ce88 ffff8881da800c40 [ 113.704824] raw: ffff8881cb4ca300 ffff8881cb4ca300 0000000100000002 0000000000000000 [ 113.712685] page dumped because: kasan: bad access detected [ 113.718376] [ 113.720017] Memory state around the buggy address: [ 113.724932] ffff8881cb4cac00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 113.732282] ffff8881cb4cac80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 113.739655] >ffff8881cb4cad00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 113.747009] ^ [ 113.753487] ffff8881cb4cad80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 113.760975] ffff8881cb4cae00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 113.768349] ================================================================== [ 113.775714] Disabling lock debugging due to kernel taint [ 113.781372] Kernel panic - not syncing: panic_on_warn set ... [ 113.787277] CPU: 1 PID: 10179 Comm: syz-executor0 Tainted: G B 4.20.0-rc7+ #155 [ 113.796022] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 113.805357] Call Trace: [ 113.807942] dump_stack+0x244/0x39d [ 113.811559] ? dump_stack_print_info.cold.1+0x20/0x20 [ 113.816752] panic+0x2ad/0x55c [ 113.819941] ? add_taint.cold.5+0x16/0x16 [ 113.824102] ? preempt_schedule+0x4d/0x60 [ 113.828272] ? ___preempt_schedule+0x16/0x18 [ 113.832690] ? trace_hardirqs_on+0xb4/0x310 [ 113.837000] kasan_end_report+0x47/0x4f [ 113.840968] kasan_report.cold.8+0x76/0x309 [ 113.845291] ? __list_add_valid+0x8f/0xac [ 113.849436] __asan_report_load8_noabort+0x14/0x20 [ 113.854368] __list_add_valid+0x8f/0xac [ 113.858346] rdma_listen+0x6dc/0x990 [ 113.862050] ? rdma_resolve_addr+0x2870/0x2870 [ 113.866621] ucma_listen+0x1a4/0x260 [ 113.870326] ? ucma_notify+0x210/0x210 [ 113.874233] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 113.879771] ? _copy_from_user+0xdf/0x150 [ 113.883905] ? ucma_notify+0x210/0x210 [ 113.887792] ucma_write+0x365/0x460 [ 113.891473] ? ucma_open+0x3f0/0x3f0 [ 113.895181] __vfs_write+0x119/0x9f0 [ 113.898889] ? __fget_light+0x2e9/0x430 [ 113.902864] ? ucma_open+0x3f0/0x3f0 [ 113.906580] ? kernel_read+0x120/0x120 [ 113.910473] ? __might_sleep+0x95/0x190 [ 113.914471] ? perf_trace_sched_process_exec+0x860/0x860 [ 113.919908] ? posix_ktime_get_ts+0x15/0x20 [ 113.924216] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 113.929749] ? __inode_security_revalidate+0xd9/0x120 [ 113.934951] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 113.939980] ? selinux_file_permission+0x90/0x540 [ 113.944830] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 113.950366] ? security_file_permission+0x1c2/0x220 [ 113.955369] ? rw_verify_area+0x118/0x360 [ 113.959503] vfs_write+0x1fc/0x560 [ 113.963047] ksys_write+0x101/0x260 [ 113.966658] ? __ia32_sys_read+0xb0/0xb0 [ 113.970734] ? trace_hardirqs_off_caller+0x310/0x310 [ 113.975824] __x64_sys_write+0x73/0xb0 [ 113.979714] do_syscall_64+0x1b9/0x820 [ 113.983593] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 113.988990] ? syscall_return_slowpath+0x5e0/0x5e0 [ 113.993923] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 113.998751] ? trace_hardirqs_on_caller+0x310/0x310 [ 114.003752] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 114.008787] ? prepare_exit_to_usermode+0x291/0x3b0 [ 114.013789] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 114.018619] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 114.023793] RIP: 0033:0x457669 [ 114.026980] Code: fd b3 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 cb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 114.045885] RSP: 002b:00007f900cdd3c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 114.053576] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457669 [ 114.060830] RDX: 0000000000000010 RSI: 00000000200003c0 RDI: 0000000000000003 [ 114.068083] RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 [ 114.075351] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f900cdd46d4 [ 114.082605] R13: 00000000004c5f10 R14: 00000000004da9d0 R15: 00000000ffffffff [ 114.090824] Kernel Offset: disabled [ 114.094453] Rebooting in 86400 seconds..