[ 52.205280] audit: type=1800 audit(1584861848.106:30): pid=8299 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="startpar" name="mcstrans" dev="sda1" ino=2490 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: [ 58.385676] kauditd_printk_skb: 4 callbacks suppressed [ 58.385690] audit: type=1400 audit(1584861854.336:35): avc: denied { map } for pid=8475 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.178' (ECDSA) to the list of known hosts. [ 65.328038] audit: type=1400 audit(1584861861.276:36): avc: denied { map } for pid=8487 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/22 07:24:21 parsed 1 programs [ 67.078288] audit: type=1400 audit(1584861863.026:37): avc: denied { map } for pid=8487 comm="syz-execprog" path="/sys/kernel/debug/kcov" dev="debugfs" ino=17124 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/22 07:24:23 executed programs: 0 [ 67.255180] IPVS: ftp: loaded support on port[0] = 21 [ 67.319897] chnl_net:caif_netlink_parms(): no params data found [ 67.372668] bridge0: port 1(bridge_slave_0) entered blocking state [ 67.379256] bridge0: port 1(bridge_slave_0) entered disabled state [ 67.386346] device bridge_slave_0 entered promiscuous mode [ 67.394200] bridge0: port 2(bridge_slave_1) entered blocking state [ 67.401053] bridge0: port 2(bridge_slave_1) entered disabled state [ 67.408135] device bridge_slave_1 entered promiscuous mode [ 67.425017] bond0: Enslaving bond_slave_0 as an active interface with an up link [ 67.434964] bond0: Enslaving bond_slave_1 as an active interface with an up link [ 67.452570] IPv6: ADDRCONF(NETDEV_UP): team_slave_0: link is not ready [ 67.460274] team0: Port device team_slave_0 added [ 67.465986] IPv6: ADDRCONF(NETDEV_UP): team_slave_1: link is not ready [ 67.473740] team0: Port device team_slave_1 added [ 67.488420] batman_adv: batadv0: Adding interface: batadv_slave_0 [ 67.494724] 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. [ 67.520106] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active [ 67.532210] batman_adv: batadv0: Adding interface: batadv_slave_1 [ 67.538455] 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. [ 67.564313] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active [ 67.575222] IPv6: ADDRCONF(NETDEV_UP): bridge_slave_0: link is not ready [ 67.582783] IPv6: ADDRCONF(NETDEV_UP): bridge_slave_1: link is not ready [ 67.651244] device hsr_slave_0 entered promiscuous mode [ 67.689779] device hsr_slave_1 entered promiscuous mode [ 67.759419] IPv6: ADDRCONF(NETDEV_UP): hsr_slave_0: link is not ready [ 67.766587] IPv6: ADDRCONF(NETDEV_UP): hsr_slave_1: link is not ready [ 67.821230] audit: type=1400 audit(1584861863.776:38): avc: denied { create } for pid=8503 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 [ 67.845510] audit: type=1400 audit(1584861863.776:39): avc: denied { write } for pid=8503 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 [ 67.848480] bridge0: port 2(bridge_slave_1) entered blocking state [ 67.869892] audit: type=1400 audit(1584861863.776:40): avc: denied { read } for pid=8503 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 [ 67.875786] bridge0: port 2(bridge_slave_1) entered forwarding state [ 67.906407] bridge0: port 1(bridge_slave_0) entered blocking state [ 67.912821] bridge0: port 1(bridge_slave_0) entered forwarding state [ 67.952653] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 67.959193] 8021q: adding VLAN 0 to HW filter on device bond0 [ 67.967559] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 67.977905] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 67.996659] bridge0: port 1(bridge_slave_0) entered disabled state [ 68.003949] bridge0: port 2(bridge_slave_1) entered disabled state [ 68.011809] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready [ 68.023026] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 68.029294] 8021q: adding VLAN 0 to HW filter on device team0 [ 68.039091] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_0: link becomes ready [ 68.046722] bridge0: port 1(bridge_slave_0) entered blocking state [ 68.053138] bridge0: port 1(bridge_slave_0) entered forwarding state [ 68.063721] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_1: link becomes ready [ 68.071577] bridge0: port 2(bridge_slave_1) entered blocking state [ 68.077935] bridge0: port 2(bridge_slave_1) entered forwarding state [ 68.101075] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready [ 68.109280] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_1: link becomes ready [ 68.117237] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_0: link becomes ready [ 68.125885] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 68.137459] hsr0: Slave B (hsr_slave_1) is not up; please bring it up to get a fully working HSR network [ 68.148054] IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready [ 68.154176] IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready [ 68.161499] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_1: link becomes ready [ 68.177484] IPv6: ADDRCONF(NETDEV_UP): vxcan0: link is not ready [ 68.186049] IPv6: ADDRCONF(NETDEV_CHANGE): vxcan0: link becomes ready [ 68.193762] IPv6: ADDRCONF(NETDEV_CHANGE): vxcan1: link becomes ready [ 68.204680] 8021q: adding VLAN 0 to HW filter on device batadv0 [ 68.217978] IPv6: ADDRCONF(NETDEV_UP): veth0_virt_wifi: link is not ready [ 68.229145] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_virt_wifi: link becomes ready [ 68.270769] IPv6: ADDRCONF(NETDEV_UP): veth0_vlan: link is not ready [ 68.277836] IPv6: ADDRCONF(NETDEV_UP): vlan0: link is not ready [ 68.285101] IPv6: ADDRCONF(NETDEV_UP): vlan1: link is not ready [ 68.295229] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_vlan: link becomes ready [ 68.302897] IPv6: ADDRCONF(NETDEV_CHANGE): vlan0: link becomes ready [ 68.310097] IPv6: ADDRCONF(NETDEV_CHANGE): vlan1: link becomes ready [ 68.319946] device veth0_vlan entered promiscuous mode [ 68.330313] device veth1_vlan entered promiscuous mode [ 68.346336] IPv6: ADDRCONF(NETDEV_UP): veth0_macvtap: link is not ready [ 68.357528] IPv6: ADDRCONF(NETDEV_UP): veth1_macvtap: link is not ready [ 68.365461] IPv6: ADDRCONF(NETDEV_CHANGE): veth1_macvtap: link becomes ready [ 68.373955] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_macvtap: link becomes ready [ 68.383716] device veth0_macvtap entered promiscuous mode [ 68.389980] IPv6: ADDRCONF(NETDEV_UP): macvtap0: link is not ready [ 68.398103] device veth1_macvtap entered promiscuous mode [ 68.404875] IPv6: ADDRCONF(NETDEV_UP): macsec0: link is not ready [ 68.413854] IPv6: ADDRCONF(NETDEV_UP): veth0_to_batadv: link is not ready [ 68.423329] IPv6: ADDRCONF(NETDEV_UP): veth1_to_batadv: link is not ready [ 68.433021] IPv6: ADDRCONF(NETDEV_UP): batadv_slave_0: link is not ready [ 68.440350] batman_adv: batadv0: Interface activated: batadv_slave_0 [ 68.447035] IPv6: ADDRCONF(NETDEV_CHANGE): macvtap0: link becomes ready [ 68.454478] IPv6: ADDRCONF(NETDEV_CHANGE): macsec0: link becomes ready [ 68.462162] IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_0: link becomes ready [ 68.470638] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_batadv: link becomes ready [ 68.481101] IPv6: ADDRCONF(NETDEV_UP): batadv_slave_1: link is not ready [ 68.487999] batman_adv: batadv0: Interface activated: batadv_slave_1 [ 68.496205] IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_1: link becomes ready [ 68.504525] IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready [ 68.622837] audit: type=1400 audit(1584861864.576:41): avc: denied { associate } for pid=8503 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 [ 68.715901] ================================================================== [ 68.723387] BUG: KASAN: use-after-free in __list_add_valid+0x93/0xa0 [ 68.729867] Read of size 8 at addr ffff88809ad60fa0 by task syz-executor.0/8545 [ 68.737290] [ 68.738909] CPU: 1 PID: 8545 Comm: syz-executor.0 Not tainted 4.19.112-syzkaller #0 [ 68.746684] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 68.756028] Call Trace: [ 68.758638] dump_stack+0x188/0x20d [ 68.762293] ? __list_add_valid+0x93/0xa0 [ 68.766457] print_address_description.cold+0x7c/0x212 [ 68.771730] ? __list_add_valid+0x93/0xa0 [ 68.775873] kasan_report.cold+0x88/0x2b9 [ 68.780034] __list_add_valid+0x93/0xa0 [ 68.784036] rdma_listen+0x609/0x880 [ 68.787761] ucma_listen+0x14d/0x1c0 [ 68.791467] ? ucma_notify+0x190/0x190 [ 68.795392] ? __might_fault+0x192/0x1d0 [ 68.799451] ? _copy_from_user+0xd2/0x140 [ 68.803589] ? ucma_notify+0x190/0x190 [ 68.807483] ucma_write+0x285/0x350 [ 68.811150] ? ucma_open+0x280/0x280 [ 68.814899] ? __fget+0x319/0x510 [ 68.818352] __vfs_write+0xf7/0x760 [ 68.821974] ? ucma_open+0x280/0x280 [ 68.825703] ? kernel_read+0x110/0x110 [ 68.829618] ? __inode_security_revalidate+0xd3/0x120 [ 68.834802] ? avc_policy_seqno+0x9/0x70 [ 68.838851] ? selinux_file_permission+0x87/0x520 [ 68.843687] ? security_file_permission+0x84/0x220 [ 68.848613] vfs_write+0x206/0x550 [ 68.852146] ksys_write+0x12b/0x2a0 [ 68.855775] ? __ia32_sys_read+0xb0/0xb0 [ 68.859857] ? __ia32_sys_clock_settime+0x260/0x260 [ 68.864871] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 68.869667] ? trace_hardirqs_off_caller+0x55/0x210 [ 68.874676] ? do_syscall_64+0x21/0x620 [ 68.878638] do_syscall_64+0xf9/0x620 [ 68.882438] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 68.887614] RIP: 0033:0x45c849 [ 68.890792] 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 [ 68.909724] RSP: 002b:00007fa683c61c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 68.917452] RAX: ffffffffffffffda RBX: 00007fa683c626d4 RCX: 000000000045c849 [ 68.924706] RDX: 0000000000000010 RSI: 0000000020000040 RDI: 0000000000000003 [ 68.931960] RBP: 000000000076bf00 R08: 0000000000000000 R09: 0000000000000000 [ 68.939213] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff [ 68.946467] R13: 0000000000000cc0 R14: 00000000004cee66 R15: 000000000076bf0c [ 68.953730] [ 68.955351] Allocated by task 8539: [ 68.958972] kasan_kmalloc+0xbf/0xe0 [ 68.962679] kmem_cache_alloc_trace+0x14d/0x7a0 [ 68.967356] __rdma_create_id+0x5b/0x630 [ 68.971404] ucma_create_id+0x1cb/0x5a0 [ 68.975363] ucma_write+0x285/0x350 [ 68.978975] __vfs_write+0xf7/0x760 [ 68.982693] vfs_write+0x206/0x550 [ 68.986225] ksys_write+0x12b/0x2a0 [ 68.989858] do_syscall_64+0xf9/0x620 [ 68.993645] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 68.998814] [ 69.000423] Freed by task 8538: [ 69.003691] __kasan_slab_free+0xf7/0x140 [ 69.007823] kfree+0xce/0x220 [ 69.010943] ucma_close+0x10b/0x320 [ 69.014585] __fput+0x2cd/0x890 [ 69.017849] task_work_run+0x13f/0x1b0 [ 69.021763] exit_to_usermode_loop+0x25a/0x2b0 [ 69.026334] do_syscall_64+0x538/0x620 [ 69.030247] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 69.035449] [ 69.037063] The buggy address belongs to the object at ffff88809ad60dc0 [ 69.037063] which belongs to the cache kmalloc-2048 of size 2048 [ 69.049878] The buggy address is located 480 bytes inside of [ 69.049878] 2048-byte region [ffff88809ad60dc0, ffff88809ad615c0) [ 69.061823] The buggy address belongs to the page: [ 69.066751] page:ffffea00026b5800 count:1 mapcount:0 mapping:ffff88812c3dcc40 index:0x0 compound_mapcount: 0 [ 69.076711] flags: 0xfffe0000008100(slab|head) [ 69.081312] raw: 00fffe0000008100 ffffea0002782b88 ffffea00026b5b88 ffff88812c3dcc40 [ 69.089178] raw: 0000000000000000 ffff88809ad60540 0000000100000003 0000000000000000 [ 69.097038] page dumped because: kasan: bad access detected [ 69.102727] [ 69.104336] Memory state around the buggy address: [ 69.109247] ffff88809ad60e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 69.116590] ffff88809ad60f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 69.123934] >ffff88809ad60f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 69.131276] ^ [ 69.135667] ffff88809ad61000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 69.143010] ffff88809ad61080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 69.150349] ================================================================== [ 69.157688] Disabling lock debugging due to kernel taint [ 69.168512] Kernel panic - not syncing: panic_on_warn set ... [ 69.168512] [ 69.175900] CPU: 0 PID: 8545 Comm: syz-executor.0 Tainted: G B 4.19.112-syzkaller #0 [ 69.185060] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 69.194393] Call Trace: [ 69.196969] dump_stack+0x188/0x20d [ 69.200593] panic+0x26a/0x50e [ 69.203780] ? __warn_printk+0xf3/0xf3 [ 69.207652] ? preempt_schedule_common+0x4a/0xc0 [ 69.212392] ? __list_add_valid+0x93/0xa0 [ 69.216520] ? ___preempt_schedule+0x16/0x18 [ 69.220911] ? trace_hardirqs_on+0x55/0x210 [ 69.225225] ? __list_add_valid+0x93/0xa0 [ 69.229375] kasan_end_report+0x43/0x49 [ 69.233347] kasan_report.cold+0xa4/0x2b9 [ 69.237527] __list_add_valid+0x93/0xa0 [ 69.241490] rdma_listen+0x609/0x880 [ 69.245186] ucma_listen+0x14d/0x1c0 [ 69.248887] ? ucma_notify+0x190/0x190 [ 69.252780] ? __might_fault+0x192/0x1d0 [ 69.256833] ? _copy_from_user+0xd2/0x140 [ 69.260964] ? ucma_notify+0x190/0x190 [ 69.264833] ucma_write+0x285/0x350 [ 69.268457] ? ucma_open+0x280/0x280 [ 69.272164] ? __fget+0x319/0x510 [ 69.275623] __vfs_write+0xf7/0x760 [ 69.279233] ? ucma_open+0x280/0x280 [ 69.282930] ? kernel_read+0x110/0x110 [ 69.286810] ? __inode_security_revalidate+0xd3/0x120 [ 69.291982] ? avc_policy_seqno+0x9/0x70 [ 69.296023] ? selinux_file_permission+0x87/0x520 [ 69.300848] ? security_file_permission+0x84/0x220 [ 69.305759] vfs_write+0x206/0x550 [ 69.309296] ksys_write+0x12b/0x2a0 [ 69.312922] ? __ia32_sys_read+0xb0/0xb0 [ 69.316966] ? __ia32_sys_clock_settime+0x260/0x260 [ 69.321963] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 69.326700] ? trace_hardirqs_off_caller+0x55/0x210 [ 69.331816] ? do_syscall_64+0x21/0x620 [ 69.335773] do_syscall_64+0xf9/0x620 [ 69.339559] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 69.344734] RIP: 0033:0x45c849 [ 69.347905] 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 [ 69.366792] RSP: 002b:00007fa683c61c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 69.374482] RAX: ffffffffffffffda RBX: 00007fa683c626d4 RCX: 000000000045c849 [ 69.381733] RDX: 0000000000000010 RSI: 0000000020000040 RDI: 0000000000000003 [ 69.388991] RBP: 000000000076bf00 R08: 0000000000000000 R09: 0000000000000000 [ 69.396248] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff [ 69.403498] R13: 0000000000000cc0 R14: 00000000004cee66 R15: 000000000076bf0c [ 69.411852] Kernel Offset: disabled [ 69.415488] Rebooting in 86400 seconds..