[ 45.078596] audit: type=1800 audit(1585160116.236:31): pid=7938 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2469 res=0 [ 45.099735] audit: type=1800 audit(1585160116.236:32): pid=7938 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 Warning: Permanently added '10.128.0.85' (ECDSA) to the list of known hosts. syzkaller login: [ 53.468457] kauditd_printk_skb: 3 callbacks suppressed [ 53.468472] audit: type=1400 audit(1585160124.686:36): avc: denied { map } for pid=8126 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/25 18:15:24 parsed 1 programs [ 54.967515] audit: type=1400 audit(1585160126.186:37): avc: denied { map } for pid=8126 comm="syz-execprog" path="/sys/kernel/debug/kcov" dev="debugfs" ino=1065 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/25 18:15:26 executed programs: 0 [ 55.162798] IPVS: ftp: loaded support on port[0] = 21 [ 55.227740] chnl_net:caif_netlink_parms(): no params data found [ 55.277821] bridge0: port 1(bridge_slave_0) entered blocking state [ 55.284868] bridge0: port 1(bridge_slave_0) entered disabled state [ 55.292568] device bridge_slave_0 entered promiscuous mode [ 55.299997] bridge0: port 2(bridge_slave_1) entered blocking state [ 55.307143] bridge0: port 2(bridge_slave_1) entered disabled state [ 55.314377] device bridge_slave_1 entered promiscuous mode [ 55.330806] bond0: Enslaving bond_slave_0 as an active interface with an up link [ 55.339941] bond0: Enslaving bond_slave_1 as an active interface with an up link [ 55.358112] IPv6: ADDRCONF(NETDEV_UP): team_slave_0: link is not ready [ 55.365668] team0: Port device team_slave_0 added [ 55.371396] IPv6: ADDRCONF(NETDEV_UP): team_slave_1: link is not ready [ 55.379033] team0: Port device team_slave_1 added [ 55.403418] batman_adv: batadv0: Adding interface: batadv_slave_0 [ 55.409670] 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. [ 55.435607] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active [ 55.447451] batman_adv: batadv0: Adding interface: batadv_slave_1 [ 55.453742] 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. [ 55.479214] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active [ 55.490059] IPv6: ADDRCONF(NETDEV_UP): bridge_slave_0: link is not ready [ 55.497704] IPv6: ADDRCONF(NETDEV_UP): bridge_slave_1: link is not ready [ 55.554166] device hsr_slave_0 entered promiscuous mode [ 55.592319] device hsr_slave_1 entered promiscuous mode [ 55.663128] IPv6: ADDRCONF(NETDEV_UP): hsr_slave_0: link is not ready [ 55.670401] IPv6: ADDRCONF(NETDEV_UP): hsr_slave_1: link is not ready [ 55.723769] audit: type=1400 audit(1585160126.946:38): avc: denied { create } for pid=8143 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 [ 55.745059] bridge0: port 2(bridge_slave_1) entered blocking state [ 55.748948] audit: type=1400 audit(1585160126.946:39): avc: denied { write } for pid=8143 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 [ 55.754111] bridge0: port 2(bridge_slave_1) entered forwarding state [ 55.778695] audit: type=1400 audit(1585160126.946:40): avc: denied { read } for pid=8143 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 [ 55.784807] bridge0: port 1(bridge_slave_0) entered blocking state [ 55.814702] bridge0: port 1(bridge_slave_0) entered forwarding state [ 55.856938] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 55.863346] 8021q: adding VLAN 0 to HW filter on device bond0 [ 55.871639] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 55.881834] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 55.890763] bridge0: port 1(bridge_slave_0) entered disabled state [ 55.898189] bridge0: port 2(bridge_slave_1) entered disabled state [ 55.905240] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready [ 55.916391] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 55.922577] 8021q: adding VLAN 0 to HW filter on device team0 [ 55.942442] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_0: link becomes ready [ 55.950172] bridge0: port 1(bridge_slave_0) entered blocking state [ 55.956638] bridge0: port 1(bridge_slave_0) entered forwarding state [ 55.967154] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_1: link becomes ready [ 55.975469] bridge0: port 2(bridge_slave_1) entered blocking state [ 55.981872] bridge0: port 2(bridge_slave_1) entered forwarding state [ 56.004780] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready [ 56.013566] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_1: link becomes ready [ 56.021061] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_0: link becomes ready [ 56.029086] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_1: link becomes ready [ 56.037122] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 56.045453] IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready [ 56.051448] IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready [ 56.066768] IPv6: ADDRCONF(NETDEV_UP): vxcan0: link is not ready [ 56.074726] IPv6: ADDRCONF(NETDEV_CHANGE): vxcan0: link becomes ready [ 56.081396] IPv6: ADDRCONF(NETDEV_CHANGE): vxcan1: link becomes ready [ 56.092722] 8021q: adding VLAN 0 to HW filter on device batadv0 [ 56.106451] IPv6: ADDRCONF(NETDEV_UP): veth0_virt_wifi: link is not ready [ 56.116031] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_virt_wifi: link becomes ready [ 56.156764] IPv6: ADDRCONF(NETDEV_UP): veth0_vlan: link is not ready [ 56.164132] IPv6: ADDRCONF(NETDEV_UP): vlan0: link is not ready [ 56.170600] IPv6: ADDRCONF(NETDEV_UP): vlan1: link is not ready [ 56.180471] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_vlan: link becomes ready [ 56.188410] IPv6: ADDRCONF(NETDEV_CHANGE): vlan0: link becomes ready [ 56.195565] IPv6: ADDRCONF(NETDEV_CHANGE): vlan1: link becomes ready [ 56.205200] device veth0_vlan entered promiscuous mode [ 56.215032] device veth1_vlan entered promiscuous mode [ 56.220890] IPv6: ADDRCONF(NETDEV_UP): macvlan0: link is not ready [ 56.229703] IPv6: ADDRCONF(NETDEV_UP): macvlan1: link is not ready [ 56.237799] IPv6: ADDRCONF(NETDEV_CHANGE): macvlan0: link becomes ready [ 56.246739] IPv6: ADDRCONF(NETDEV_CHANGE): macvlan1: link becomes ready [ 56.259697] IPv6: ADDRCONF(NETDEV_UP): veth0_macvtap: link is not ready [ 56.269523] IPv6: ADDRCONF(NETDEV_UP): veth1_macvtap: link is not ready [ 56.276457] IPv6: ADDRCONF(NETDEV_CHANGE): veth1_macvtap: link becomes ready [ 56.284977] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_macvtap: link becomes ready [ 56.295320] device veth0_macvtap entered promiscuous mode [ 56.301438] IPv6: ADDRCONF(NETDEV_UP): macvtap0: link is not ready [ 56.309566] device veth1_macvtap entered promiscuous mode [ 56.316142] IPv6: ADDRCONF(NETDEV_UP): macsec0: link is not ready [ 56.324815] IPv6: ADDRCONF(NETDEV_UP): veth0_to_batadv: link is not ready [ 56.334751] IPv6: ADDRCONF(NETDEV_UP): veth1_to_batadv: link is not ready [ 56.345938] IPv6: ADDRCONF(NETDEV_UP): batadv_slave_0: link is not ready [ 56.353157] batman_adv: batadv0: Interface activated: batadv_slave_0 [ 56.359792] IPv6: ADDRCONF(NETDEV_CHANGE): macvtap0: link becomes ready [ 56.367422] IPv6: ADDRCONF(NETDEV_CHANGE): macsec0: link becomes ready [ 56.374813] IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_0: link becomes ready [ 56.382850] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_batadv: link becomes ready [ 56.394007] IPv6: ADDRCONF(NETDEV_UP): batadv_slave_1: link is not ready [ 56.400863] batman_adv: batadv0: Interface activated: batadv_slave_1 [ 56.407687] IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_1: link becomes ready [ 56.415979] IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready [ 56.527162] audit: type=1400 audit(1585160127.746:41): avc: denied { associate } for pid=8143 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 [ 56.677549] ================================================================== [ 56.685068] BUG: KASAN: use-after-free in __list_add_valid+0x93/0xa0 [ 56.691556] Read of size 8 at addr ffff888087d6d760 by task syz-executor.0/8199 [ 56.699015] [ 56.700643] CPU: 0 PID: 8199 Comm: syz-executor.0 Not tainted 4.19.113-syzkaller #0 [ 56.708423] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 56.717798] Call Trace: [ 56.720395] dump_stack+0x188/0x20d [ 56.724017] ? __list_add_valid+0x93/0xa0 [ 56.728155] print_address_description.cold+0x7c/0x212 [ 56.733419] ? __list_add_valid+0x93/0xa0 [ 56.737552] kasan_report.cold+0x88/0x2b9 [ 56.741733] __list_add_valid+0x93/0xa0 [ 56.745695] rdma_listen+0x609/0x880 [ 56.751053] ucma_listen+0x14d/0x1c0 [ 56.754758] ? ucma_notify+0x190/0x190 [ 56.758677] ? __might_fault+0x192/0x1d0 [ 56.762732] ? _copy_from_user+0xd2/0x140 [ 56.766869] ? ucma_notify+0x190/0x190 [ 56.770756] ucma_write+0x285/0x350 [ 56.774389] ? ucma_open+0x280/0x280 [ 56.778104] ? __fget+0x319/0x510 [ 56.781555] __vfs_write+0xf7/0x760 [ 56.785222] ? ucma_open+0x280/0x280 [ 56.788931] ? kernel_read+0x110/0x110 [ 56.792810] ? __inode_security_revalidate+0xd3/0x120 [ 56.798000] ? avc_policy_seqno+0x9/0x70 [ 56.802050] ? selinux_file_permission+0x87/0x520 [ 56.806884] ? security_file_permission+0x84/0x220 [ 56.811937] vfs_write+0x206/0x550 [ 56.815476] ksys_write+0x12b/0x2a0 [ 56.819130] ? __ia32_sys_read+0xb0/0xb0 [ 56.823183] ? __ia32_sys_clock_settime+0x260/0x260 [ 56.828185] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 56.832933] ? trace_hardirqs_off_caller+0x55/0x210 [ 56.837955] ? do_syscall_64+0x21/0x620 [ 56.841922] do_syscall_64+0xf9/0x620 [ 56.845721] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.850938] RIP: 0033:0x45c849 [ 56.854153] 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 [ 56.873051] RSP: 002b:00007f28cc959c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 56.880876] RAX: ffffffffffffffda RBX: 00007f28cc95a6d4 RCX: 000000000045c849 [ 56.888136] RDX: 0000000000000010 RSI: 0000000020000040 RDI: 0000000000000003 [ 56.895391] RBP: 000000000076bf00 R08: 0000000000000000 R09: 0000000000000000 [ 56.902650] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff [ 56.909962] R13: 0000000000000cc0 R14: 00000000004cee4e R15: 000000000076bf0c [ 56.917229] [ 56.918851] Allocated by task 8193: [ 56.922464] kasan_kmalloc+0xbf/0xe0 [ 56.926169] kmem_cache_alloc_trace+0x14d/0x7a0 [ 56.930821] __rdma_create_id+0x5b/0x630 [ 56.934905] ucma_create_id+0x1cb/0x5a0 [ 56.938908] ucma_write+0x285/0x350 [ 56.942531] __vfs_write+0xf7/0x760 [ 56.946146] vfs_write+0x206/0x550 [ 56.949671] ksys_write+0x12b/0x2a0 [ 56.953295] do_syscall_64+0xf9/0x620 [ 56.957139] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.962306] [ 56.963915] Freed by task 8193: [ 56.967182] __kasan_slab_free+0xf7/0x140 [ 56.971329] kfree+0xce/0x220 [ 56.974431] ucma_close+0x10b/0x320 [ 56.978041] __fput+0x2cd/0x890 [ 56.981309] task_work_run+0x13f/0x1b0 [ 56.985182] exit_to_usermode_loop+0x25a/0x2b0 [ 56.989751] do_syscall_64+0x538/0x620 [ 56.993622] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.998790] [ 57.000402] The buggy address belongs to the object at ffff888087d6d580 [ 57.000402] which belongs to the cache kmalloc-2048 of size 2048 [ 57.013218] The buggy address is located 480 bytes inside of [ 57.013218] 2048-byte region [ffff888087d6d580, ffff888087d6dd80) [ 57.025166] The buggy address belongs to the page: [ 57.030176] page:ffffea00021f5b00 count:1 mapcount:0 mapping:ffff88812c3dcc40 index:0x0 compound_mapcount: 0 [ 57.040122] flags: 0xfffe0000008100(slab|head) [ 57.044689] raw: 00fffe0000008100 ffffea00021fbb88 ffff88812c3d4948 ffff88812c3dcc40 [ 57.052555] raw: 0000000000000000 ffff888087d6c480 0000000100000003 0000000000000000 [ 57.060449] page dumped because: kasan: bad access detected [ 57.066159] [ 57.067764] Memory state around the buggy address: [ 57.072673] ffff888087d6d600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 57.080014] ffff888087d6d680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 57.087357] >ffff888087d6d700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 57.094706] ^ [ 57.101180] ffff888087d6d780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 57.108522] ffff888087d6d800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 57.115861] ================================================================== [ 57.123203] Disabling lock debugging due to kernel taint [ 57.134648] Kernel panic - not syncing: panic_on_warn set ... [ 57.134648] [ 57.142045] CPU: 1 PID: 8199 Comm: syz-executor.0 Tainted: G B 4.19.113-syzkaller #0 [ 57.151219] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 57.160567] Call Trace: [ 57.163149] dump_stack+0x188/0x20d [ 57.166765] panic+0x26a/0x50e [ 57.169960] ? __warn_printk+0xf3/0xf3 [ 57.173834] ? preempt_schedule_common+0x4a/0xc0 [ 57.178622] ? __list_add_valid+0x93/0xa0 [ 57.182758] ? ___preempt_schedule+0x16/0x18 [ 57.187155] ? trace_hardirqs_on+0x55/0x210 [ 57.191459] ? __list_add_valid+0x93/0xa0 [ 57.195594] kasan_end_report+0x43/0x49 [ 57.199580] kasan_report.cold+0xa4/0x2b9 [ 57.203716] __list_add_valid+0x93/0xa0 [ 57.207672] rdma_listen+0x609/0x880 [ 57.211366] ucma_listen+0x14d/0x1c0 [ 57.215058] ? ucma_notify+0x190/0x190 [ 57.218926] ? __might_fault+0x192/0x1d0 [ 57.222967] ? _copy_from_user+0xd2/0x140 [ 57.227097] ? ucma_notify+0x190/0x190 [ 57.230966] ucma_write+0x285/0x350 [ 57.234579] ? ucma_open+0x280/0x280 [ 57.238278] ? __fget+0x319/0x510 [ 57.241717] __vfs_write+0xf7/0x760 [ 57.245325] ? ucma_open+0x280/0x280 [ 57.249020] ? kernel_read+0x110/0x110 [ 57.252895] ? __inode_security_revalidate+0xd3/0x120 [ 57.258067] ? avc_policy_seqno+0x9/0x70 [ 57.262121] ? selinux_file_permission+0x87/0x520 [ 57.266966] ? security_file_permission+0x84/0x220 [ 57.271891] vfs_write+0x206/0x550 [ 57.275424] ksys_write+0x12b/0x2a0 [ 57.279044] ? __ia32_sys_read+0xb0/0xb0 [ 57.283103] ? __ia32_sys_clock_settime+0x260/0x260 [ 57.288108] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 57.292850] ? trace_hardirqs_off_caller+0x55/0x210 [ 57.297865] ? do_syscall_64+0x21/0x620 [ 57.301826] do_syscall_64+0xf9/0x620 [ 57.305615] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 57.310789] RIP: 0033:0x45c849 [ 57.313970] 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 [ 57.332875] RSP: 002b:00007f28cc959c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 57.340574] RAX: ffffffffffffffda RBX: 00007f28cc95a6d4 RCX: 000000000045c849 [ 57.347832] RDX: 0000000000000010 RSI: 0000000020000040 RDI: 0000000000000003 [ 57.355140] RBP: 000000000076bf00 R08: 0000000000000000 R09: 0000000000000000 [ 57.362397] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff [ 57.369650] R13: 0000000000000cc0 R14: 00000000004cee4e R15: 000000000076bf0c [ 57.378145] Kernel Offset: disabled [ 57.381773] Rebooting in 86400 seconds..