[ 43.355821] audit: type=1800 audit(1584803302.345:32): pid=7790 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="startpar" name="ssh" dev="sda1" ino=2450 res=0 Starting mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 47.702751] kauditd_printk_skb: 2 callbacks suppressed [ 47.702765] audit: type=1400 audit(1584803306.785:35): avc: denied { map } for pid=7965 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.230' (ECDSA) to the list of known hosts. [ 59.458781] audit: type=1400 audit(1584803318.535:36): avc: denied { map } for pid=7977 comm="syz-execprog" path="/root/syz-execprog" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 2020/03/21 15:08:38 parsed 1 programs [ 60.712929] audit: type=1400 audit(1584803319.795:37): avc: denied { map } for pid=7977 comm="syz-execprog" path="/sys/kernel/debug/kcov" dev="debugfs" ino=17169 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:debugfs_t:s0 tclass=file permissive=1 2020/03/21 15:08:39 executed programs: 0 [ 60.906790] IPVS: ftp: loaded support on port[0] = 21 [ 60.970601] chnl_net:caif_netlink_parms(): no params data found [ 61.021507] bridge0: port 1(bridge_slave_0) entered blocking state [ 61.028119] bridge0: port 1(bridge_slave_0) entered disabled state [ 61.035564] device bridge_slave_0 entered promiscuous mode [ 61.043069] bridge0: port 2(bridge_slave_1) entered blocking state [ 61.049484] bridge0: port 2(bridge_slave_1) entered disabled state [ 61.056916] device bridge_slave_1 entered promiscuous mode [ 61.073107] bond0: Enslaving bond_slave_0 as an active interface with an up link [ 61.083251] bond0: Enslaving bond_slave_1 as an active interface with an up link [ 61.100499] IPv6: ADDRCONF(NETDEV_UP): team_slave_0: link is not ready [ 61.107926] team0: Port device team_slave_0 added [ 61.113799] IPv6: ADDRCONF(NETDEV_UP): team_slave_1: link is not ready [ 61.121157] team0: Port device team_slave_1 added [ 61.135913] batman_adv: batadv0: Adding interface: batadv_slave_0 [ 61.142490] batman_adv: batadv0: The MTU of interface batadv_slave_0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem. [ 61.168350] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active [ 61.180590] batman_adv: batadv0: Adding interface: batadv_slave_1 [ 61.186832] batman_adv: batadv0: The MTU of interface batadv_slave_1 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem. [ 61.212062] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active [ 61.222783] IPv6: ADDRCONF(NETDEV_UP): bridge_slave_0: link is not ready [ 61.230655] IPv6: ADDRCONF(NETDEV_UP): bridge_slave_1: link is not ready [ 61.282133] device hsr_slave_0 entered promiscuous mode [ 61.320057] device hsr_slave_1 entered promiscuous mode [ 61.370372] IPv6: ADDRCONF(NETDEV_UP): hsr_slave_0: link is not ready [ 61.377585] IPv6: ADDRCONF(NETDEV_UP): hsr_slave_1: link is not ready [ 61.430575] audit: type=1400 audit(1584803320.505:38): avc: denied { create } for pid=7993 comm="syz-executor.0" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1 [ 61.452560] bridge0: port 2(bridge_slave_1) entered blocking state [ 61.455534] audit: type=1400 audit(1584803320.515:39): avc: denied { write } for pid=7993 comm="syz-executor.0" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1 [ 61.460941] bridge0: port 2(bridge_slave_1) entered forwarding state [ 61.485824] audit: type=1400 audit(1584803320.515:40): avc: denied { read } for pid=7993 comm="syz-executor.0" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1 [ 61.491879] bridge0: port 1(bridge_slave_0) entered blocking state [ 61.522138] bridge0: port 1(bridge_slave_0) entered forwarding state [ 61.557718] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 61.565695] 8021q: adding VLAN 0 to HW filter on device bond0 [ 61.576307] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 61.585800] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 61.604602] bridge0: port 1(bridge_slave_0) entered disabled state [ 61.612165] bridge0: port 2(bridge_slave_1) entered disabled state [ 61.619210] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready [ 61.630551] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 61.636638] 8021q: adding VLAN 0 to HW filter on device team0 [ 61.646574] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_0: link becomes ready [ 61.654330] bridge0: port 1(bridge_slave_0) entered blocking state [ 61.660764] bridge0: port 1(bridge_slave_0) entered forwarding state [ 61.670918] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_1: link becomes ready [ 61.678561] bridge0: port 2(bridge_slave_1) entered blocking state [ 61.684961] bridge0: port 2(bridge_slave_1) entered forwarding state [ 61.702597] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready [ 61.711062] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 61.722233] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_1: link becomes ready [ 61.736055] hsr0: Slave A (hsr_slave_0) is not up; please bring it up to get a fully working HSR network [ 61.746077] hsr0: Slave B (hsr_slave_1) is not up; please bring it up to get a fully working HSR network [ 61.757067] IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready [ 61.763819] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_0: link becomes ready [ 61.771737] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_1: link becomes ready [ 61.785115] IPv6: ADDRCONF(NETDEV_UP): vxcan0: link is not ready [ 61.791981] IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready [ 61.801416] IPv6: ADDRCONF(NETDEV_CHANGE): vxcan1: link becomes ready [ 61.808203] IPv6: ADDRCONF(NETDEV_CHANGE): vxcan0: link becomes ready [ 61.819346] 8021q: adding VLAN 0 to HW filter on device batadv0 [ 61.835169] IPv6: ADDRCONF(NETDEV_UP): veth0_virt_wifi: link is not ready [ 61.845169] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_virt_wifi: link becomes ready [ 61.885974] IPv6: ADDRCONF(NETDEV_UP): veth0_vlan: link is not ready [ 61.894418] IPv6: ADDRCONF(NETDEV_UP): vlan0: link is not ready [ 61.901437] IPv6: ADDRCONF(NETDEV_UP): vlan1: link is not ready [ 61.912000] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_vlan: link becomes ready [ 61.920647] IPv6: ADDRCONF(NETDEV_CHANGE): vlan0: link becomes ready [ 61.927656] IPv6: ADDRCONF(NETDEV_CHANGE): vlan1: link becomes ready [ 61.936777] device veth0_vlan entered promiscuous mode [ 61.946992] device veth1_vlan entered promiscuous mode [ 61.953023] IPv6: ADDRCONF(NETDEV_UP): macvlan0: link is not ready [ 61.962611] IPv6: ADDRCONF(NETDEV_UP): macvlan1: link is not ready [ 61.970489] IPv6: ADDRCONF(NETDEV_CHANGE): macvlan0: link becomes ready [ 61.977749] IPv6: ADDRCONF(NETDEV_CHANGE): macvlan1: link becomes ready [ 61.991877] IPv6: ADDRCONF(NETDEV_UP): veth0_macvtap: link is not ready [ 62.001898] IPv6: ADDRCONF(NETDEV_UP): veth1_macvtap: link is not ready [ 62.008859] IPv6: ADDRCONF(NETDEV_CHANGE): veth1_macvtap: link becomes ready [ 62.016804] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_macvtap: link becomes ready [ 62.027281] device veth0_macvtap entered promiscuous mode [ 62.033594] IPv6: ADDRCONF(NETDEV_UP): macvtap0: link is not ready [ 62.043301] device veth1_macvtap entered promiscuous mode [ 62.049418] IPv6: ADDRCONF(NETDEV_UP): macsec0: link is not ready [ 62.058458] IPv6: ADDRCONF(NETDEV_UP): veth0_to_batadv: link is not ready [ 62.067839] IPv6: ADDRCONF(NETDEV_UP): veth1_to_batadv: link is not ready [ 62.077352] IPv6: ADDRCONF(NETDEV_UP): batadv_slave_0: link is not ready [ 62.085083] batman_adv: batadv0: Interface activated: batadv_slave_0 [ 62.092214] IPv6: ADDRCONF(NETDEV_CHANGE): macvtap0: link becomes ready [ 62.099948] IPv6: ADDRCONF(NETDEV_CHANGE): macsec0: link becomes ready [ 62.107077] IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_0: link becomes ready [ 62.115830] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_batadv: link becomes ready [ 62.127082] IPv6: ADDRCONF(NETDEV_UP): batadv_slave_1: link is not ready [ 62.134049] batman_adv: batadv0: Interface activated: batadv_slave_1 [ 62.140665] IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_1: link becomes ready [ 62.148494] IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready [ 62.258648] audit: type=1400 audit(1584803321.335:41): avc: denied { associate } for pid=7993 comm="syz-executor.0" name="syz0" scontext=unconfined_u:object_r:unlabeled_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=filesystem permissive=1 [ 62.350772] ================================================================== [ 62.358320] BUG: KASAN: use-after-free in __list_add_valid+0x93/0xa0 [ 62.364802] Read of size 8 at addr ffff8880a831d660 by task syz-executor.0/8036 [ 62.372228] [ 62.373891] CPU: 0 PID: 8036 Comm: syz-executor.0 Not tainted 4.19.112-syzkaller #0 [ 62.381711] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 62.391255] Call Trace: [ 62.393840] dump_stack+0x188/0x20d [ 62.397474] ? __list_add_valid+0x93/0xa0 [ 62.401620] print_address_description.cold+0x7c/0x212 [ 62.406911] ? __list_add_valid+0x93/0xa0 [ 62.411062] kasan_report.cold+0x88/0x2b9 [ 62.415199] __list_add_valid+0x93/0xa0 [ 62.419160] rdma_listen+0x609/0x880 [ 62.422866] ucma_listen+0x14d/0x1c0 [ 62.426565] ? ucma_notify+0x190/0x190 [ 62.430443] ? __might_fault+0x192/0x1d0 [ 62.434491] ? _copy_from_user+0xd2/0x140 [ 62.438633] ? ucma_notify+0x190/0x190 [ 62.442517] ucma_write+0x285/0x350 [ 62.446138] ? ucma_open+0x280/0x280 [ 62.449854] ? __fget+0x319/0x510 [ 62.453299] __vfs_write+0xf7/0x760 [ 62.456911] ? ucma_open+0x280/0x280 [ 62.460615] ? kernel_read+0x110/0x110 [ 62.464503] ? __inode_security_revalidate+0xd3/0x120 [ 62.469682] ? avc_policy_seqno+0x9/0x70 [ 62.473730] ? selinux_file_permission+0x87/0x520 [ 62.478563] ? security_file_permission+0x84/0x220 [ 62.483484] vfs_write+0x206/0x550 [ 62.487040] ksys_write+0x12b/0x2a0 [ 62.490653] ? __ia32_sys_read+0xb0/0xb0 [ 62.494702] ? __ia32_sys_clock_settime+0x260/0x260 [ 62.499717] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 62.504472] ? trace_hardirqs_off_caller+0x55/0x210 [ 62.509493] ? do_syscall_64+0x21/0x620 [ 62.513467] do_syscall_64+0xf9/0x620 [ 62.517271] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 62.522454] RIP: 0033:0x45c849 [ 62.525633] Code: ad b6 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 62.544540] RSP: 002b:00007fd5922aec78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 62.552266] RAX: ffffffffffffffda RBX: 00007fd5922af6d4 RCX: 000000000045c849 [ 62.559537] RDX: 0000000000000010 RSI: 0000000020000040 RDI: 0000000000000003 [ 62.566812] RBP: 000000000076bf00 R08: 0000000000000000 R09: 0000000000000000 [ 62.574082] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff [ 62.581353] R13: 0000000000000cc0 R14: 00000000004cee66 R15: 000000000076bf0c [ 62.588615] [ 62.590230] Allocated by task 8030: [ 62.593862] kasan_kmalloc+0xbf/0xe0 [ 62.597635] kmem_cache_alloc_trace+0x14d/0x7a0 [ 62.602380] __rdma_create_id+0x5b/0x630 [ 62.606430] ucma_create_id+0x1cb/0x5a0 [ 62.610386] ucma_write+0x285/0x350 [ 62.614036] __vfs_write+0xf7/0x760 [ 62.617661] vfs_write+0x206/0x550 [ 62.621293] ksys_write+0x12b/0x2a0 [ 62.624965] do_syscall_64+0xf9/0x620 [ 62.628781] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 62.633963] [ 62.635616] Freed by task 8030: [ 62.638884] __kasan_slab_free+0xf7/0x140 [ 62.643024] kfree+0xce/0x220 [ 62.646122] ucma_close+0x10b/0x320 [ 62.649832] __fput+0x2cd/0x890 [ 62.653096] task_work_run+0x13f/0x1b0 [ 62.656972] exit_to_usermode_loop+0x25a/0x2b0 [ 62.661543] do_syscall_64+0x538/0x620 [ 62.665437] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 62.670663] [ 62.672371] The buggy address belongs to the object at ffff8880a831d480 [ 62.672371] which belongs to the cache kmalloc-2048 of size 2048 [ 62.685193] The buggy address is located 480 bytes inside of [ 62.685193] 2048-byte region [ffff8880a831d480, ffff8880a831dc80) [ 62.697141] The buggy address belongs to the page: [ 62.702097] page:ffffea0002a0c700 count:1 mapcount:0 mapping:ffff88812c3dcc40 index:0x0 compound_mapcount: 0 [ 62.712051] flags: 0xfffe0000008100(slab|head) [ 62.716638] raw: 00fffe0000008100 ffffea000225ae88 ffff88812c3d4948 ffff88812c3dcc40 [ 62.724505] raw: 0000000000000000 ffff8880a831c380 0000000100000003 0000000000000000 [ 62.732372] page dumped because: kasan: bad access detected [ 62.738077] [ 62.739684] Memory state around the buggy address: [ 62.744612] ffff8880a831d500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.751955] ffff8880a831d580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.759304] >ffff8880a831d600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.767109] ^ [ 62.773600] ffff8880a831d680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.781123] ffff8880a831d700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.788465] ================================================================== [ 62.795808] Disabling lock debugging due to kernel taint [ 62.806354] Kernel panic - not syncing: panic_on_warn set ... [ 62.806354] [ 62.813791] CPU: 1 PID: 8036 Comm: syz-executor.0 Tainted: G B 4.19.112-syzkaller #0 [ 62.823133] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 62.832469] Call Trace: [ 62.835043] dump_stack+0x188/0x20d [ 62.838655] panic+0x26a/0x50e [ 62.841835] ? __warn_printk+0xf3/0xf3 [ 62.845712] ? preempt_schedule_common+0x4a/0xc0 [ 62.850452] ? __list_add_valid+0x93/0xa0 [ 62.854597] ? ___preempt_schedule+0x16/0x18 [ 62.858988] ? trace_hardirqs_on+0x55/0x210 [ 62.863308] ? __list_add_valid+0x93/0xa0 [ 62.867439] kasan_end_report+0x43/0x49 [ 62.871401] kasan_report.cold+0xa4/0x2b9 [ 62.875561] __list_add_valid+0x93/0xa0 [ 62.879958] rdma_listen+0x609/0x880 [ 62.883657] ucma_listen+0x14d/0x1c0 [ 62.887350] ? ucma_notify+0x190/0x190 [ 62.891223] ? __might_fault+0x192/0x1d0 [ 62.895267] ? _copy_from_user+0xd2/0x140 [ 62.899424] ? ucma_notify+0x190/0x190 [ 62.903306] ucma_write+0x285/0x350 [ 62.906915] ? ucma_open+0x280/0x280 [ 62.910612] ? __fget+0x319/0x510 [ 62.914066] __vfs_write+0xf7/0x760 [ 62.917684] ? ucma_open+0x280/0x280 [ 62.921400] ? kernel_read+0x110/0x110 [ 62.925365] ? __inode_security_revalidate+0xd3/0x120 [ 62.930599] ? avc_policy_seqno+0x9/0x70 [ 62.934645] ? selinux_file_permission+0x87/0x520 [ 62.939510] ? security_file_permission+0x84/0x220 [ 62.944436] vfs_write+0x206/0x550 [ 62.948003] ksys_write+0x12b/0x2a0 [ 62.951621] ? __ia32_sys_read+0xb0/0xb0 [ 62.955676] ? __ia32_sys_clock_settime+0x260/0x260 [ 62.960688] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 62.965427] ? trace_hardirqs_off_caller+0x55/0x210 [ 62.970430] ? do_syscall_64+0x21/0x620 [ 62.974392] do_syscall_64+0xf9/0x620 [ 62.978180] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 62.983365] RIP: 0033:0x45c849 [ 62.986543] Code: ad b6 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 63.005438] RSP: 002b:00007fd5922aec78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 63.013181] RAX: ffffffffffffffda RBX: 00007fd5922af6d4 RCX: 000000000045c849 [ 63.020481] RDX: 0000000000000010 RSI: 0000000020000040 RDI: 0000000000000003 [ 63.027757] RBP: 000000000076bf00 R08: 0000000000000000 R09: 0000000000000000 [ 63.035010] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff [ 63.042262] R13: 0000000000000cc0 R14: 00000000004cee66 R15: 000000000076bf0c [ 63.050877] Kernel Offset: disabled [ 63.054522] Rebooting in 86400 seconds..