[ 43.159705] audit: type=1800 audit(1549127978.225:30): pid=7978 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=2457 res=0 [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] 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.833633] kauditd_printk_skb: 4 callbacks suppressed [ 47.833648] audit: type=1400 audit(1549127982.915:35): avc: denied { map } for pid=8153 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.69' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 54.567518] audit: type=1400 audit(1549127989.655:36): avc: denied { map } for pid=8165 comm="syz-executor595" path="/root/syz-executor595888374" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 54.836305] ================================================================== [ 54.843756] BUG: KASAN: use-after-free in __list_add_valid+0x9a/0xa0 [ 54.850233] Read of size 8 at addr ffff8880993ff720 by task syz-executor595/8342 [ 54.857741] [ 54.859356] CPU: 0 PID: 8342 Comm: syz-executor595 Not tainted 5.0.0-rc4+ #57 [ 54.866608] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 54.875940] Call Trace: [ 54.878514] dump_stack+0x172/0x1f0 [ 54.882157] ? __list_add_valid+0x9a/0xa0 [ 54.886307] print_address_description.cold+0x7c/0x20d [ 54.891585] ? __list_add_valid+0x9a/0xa0 [ 54.895716] ? __list_add_valid+0x9a/0xa0 [ 54.899879] kasan_report.cold+0x1b/0x40 [ 54.903925] ? __list_add_valid+0x9a/0xa0 [ 54.908062] __asan_report_load8_noabort+0x14/0x20 [ 54.912990] __list_add_valid+0x9a/0xa0 [ 54.916964] rdma_listen+0x63b/0x8e0 [ 54.920678] ucma_listen+0x14d/0x1c0 [ 54.924375] ? ucma_notify+0x190/0x190 [ 54.928277] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 54.933808] ? _copy_from_user+0xdd/0x150 [ 54.937960] ucma_write+0x2da/0x3c0 [ 54.941581] ? ucma_notify+0x190/0x190 [ 54.945452] ? ucma_open+0x290/0x290 [ 54.949180] __vfs_write+0x116/0x8e0 [ 54.952873] ? ucma_open+0x290/0x290 [ 54.956583] ? kernel_read+0x120/0x120 [ 54.960453] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 54.965987] ? __inode_security_revalidate+0xda/0x120 [ 54.971163] ? avc_policy_seqno+0xd/0x70 [ 54.975248] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 54.980262] ? selinux_file_permission+0x92/0x550 [ 54.985106] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 54.990630] ? security_file_permission+0x94/0x320 [ 54.995549] ? rw_verify_area+0x118/0x360 [ 54.999699] vfs_write+0x20c/0x580 [ 55.003223] ksys_write+0xea/0x1f0 [ 55.006759] ? __ia32_sys_read+0xb0/0xb0 [ 55.010828] ? do_syscall_64+0x26/0x610 [ 55.014817] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 55.020165] ? do_syscall_64+0x26/0x610 [ 55.024126] __x64_sys_write+0x73/0xb0 [ 55.028030] do_syscall_64+0x103/0x610 [ 55.031938] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 55.037107] RIP: 0033:0x440f59 [ 55.040282] Code: e8 cc ab 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 bb 0a fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 55.059165] RSP: 002b:00007ffda092ca48 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 55.066888] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000440f59 [ 55.074154] RDX: 0000000000000010 RSI: 0000000020000240 RDI: 0000000000000003 [ 55.081405] RBP: 000000000000d626 R08: 00000000004002c8 R09: 00000000004002c8 [ 55.088658] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000401ea0 [ 55.095908] R13: 0000000000401f30 R14: 0000000000000000 R15: 0000000000000000 [ 55.103165] [ 55.104772] Allocated by task 8166: [ 55.108379] save_stack+0x45/0xd0 [ 55.111827] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 55.116746] kasan_kmalloc+0x9/0x10 [ 55.120357] kmem_cache_alloc_trace+0x151/0x760 [ 55.125037] __rdma_create_id+0x5f/0x4e0 [ 55.129097] ucma_create_id+0x1de/0x640 [ 55.133067] ucma_write+0x2da/0x3c0 [ 55.136677] __vfs_write+0x116/0x8e0 [ 55.140375] vfs_write+0x20c/0x580 [ 55.143898] ksys_write+0xea/0x1f0 [ 55.147419] __x64_sys_write+0x73/0xb0 [ 55.151286] do_syscall_64+0x103/0x610 [ 55.155154] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 55.160318] [ 55.161923] Freed by task 8166: [ 55.165181] save_stack+0x45/0xd0 [ 55.168617] __kasan_slab_free+0x102/0x150 [ 55.172831] kasan_slab_free+0xe/0x10 [ 55.176628] kfree+0xcf/0x230 [ 55.179743] rdma_destroy_id+0x723/0xab0 [ 55.183802] ucma_close+0x115/0x320 [ 55.187412] __fput+0x2df/0x8d0 [ 55.190672] ____fput+0x16/0x20 [ 55.193933] task_work_run+0x14a/0x1c0 [ 55.197803] exit_to_usermode_loop+0x273/0x2c0 [ 55.202368] do_syscall_64+0x52d/0x610 [ 55.206239] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 55.211402] [ 55.213010] The buggy address belongs to the object at ffff8880993ff540 [ 55.213010] which belongs to the cache kmalloc-2k of size 2048 [ 55.225646] The buggy address is located 480 bytes inside of [ 55.225646] 2048-byte region [ffff8880993ff540, ffff8880993ffd40) [ 55.237587] The buggy address belongs to the page: [ 55.242502] page:ffffea000264ff80 count:1 mapcount:0 mapping:ffff88812c3f0c40 index:0x0 compound_mapcount: 0 [ 55.252451] flags: 0x1fffc0000010200(slab|head) [ 55.257117] raw: 01fffc0000010200 ffffea0002596a08 ffffea00022f6f08 ffff88812c3f0c40 [ 55.264992] raw: 0000000000000000 ffff8880993fe440 0000000100000003 0000000000000000 [ 55.272872] page dumped because: kasan: bad access detected [ 55.278585] [ 55.280197] Memory state around the buggy address: [ 55.285113] ffff8880993ff600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 55.292482] ffff8880993ff680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 55.299828] >ffff8880993ff700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 55.307165] ^ [ 55.311569] ffff8880993ff780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 55.318910] ffff8880993ff800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 55.326247] ================================================================== [ 55.333593] Disabling lock debugging due to kernel taint [ 55.340132] Kernel panic - not syncing: panic_on_warn set ... [ 55.346040] CPU: 0 PID: 8342 Comm: syz-executor595 Tainted: G B 5.0.0-rc4+ #57 [ 55.354694] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 55.364029] Call Trace: [ 55.366602] dump_stack+0x172/0x1f0 [ 55.370213] panic+0x2cb/0x65c [ 55.373392] ? __warn_printk+0xf3/0xf3 [ 55.377263] ? __list_add_valid+0x9a/0xa0 [ 55.381415] ? preempt_schedule+0x4b/0x60 [ 55.385550] ? ___preempt_schedule+0x16/0x18 [ 55.389940] ? trace_hardirqs_on+0x5e/0x230 [ 55.394245] ? __list_add_valid+0x9a/0xa0 [ 55.398413] end_report+0x47/0x4f [ 55.401848] ? __list_add_valid+0x9a/0xa0 [ 55.405982] kasan_report.cold+0xe/0x40 [ 55.409944] ? __list_add_valid+0x9a/0xa0 [ 55.414078] __asan_report_load8_noabort+0x14/0x20 [ 55.418989] __list_add_valid+0x9a/0xa0 [ 55.422947] rdma_listen+0x63b/0x8e0 [ 55.426644] ucma_listen+0x14d/0x1c0 [ 55.430341] ? ucma_notify+0x190/0x190 [ 55.434210] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 55.439728] ? _copy_from_user+0xdd/0x150 [ 55.443873] ucma_write+0x2da/0x3c0 [ 55.447499] ? ucma_notify+0x190/0x190 [ 55.451365] ? ucma_open+0x290/0x290 [ 55.455062] __vfs_write+0x116/0x8e0 [ 55.458759] ? ucma_open+0x290/0x290 [ 55.462474] ? kernel_read+0x120/0x120 [ 55.466350] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 55.471869] ? __inode_security_revalidate+0xda/0x120 [ 55.477039] ? avc_policy_seqno+0xd/0x70 [ 55.481087] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 55.486104] ? selinux_file_permission+0x92/0x550 [ 55.490937] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 55.496457] ? security_file_permission+0x94/0x320 [ 55.501378] ? rw_verify_area+0x118/0x360 [ 55.505509] vfs_write+0x20c/0x580 [ 55.509033] ksys_write+0xea/0x1f0 [ 55.512555] ? __ia32_sys_read+0xb0/0xb0 [ 55.516602] ? do_syscall_64+0x26/0x610 [ 55.520557] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 55.525900] ? do_syscall_64+0x26/0x610 [ 55.529858] __x64_sys_write+0x73/0xb0 [ 55.533753] do_syscall_64+0x103/0x610 [ 55.537664] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 55.542843] RIP: 0033:0x440f59 [ 55.546017] Code: e8 cc ab 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 bb 0a fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 55.564903] RSP: 002b:00007ffda092ca48 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 55.572595] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000440f59 [ 55.579844] RDX: 0000000000000010 RSI: 0000000020000240 RDI: 0000000000000003 [ 55.587093] RBP: 000000000000d626 R08: 00000000004002c8 R09: 00000000004002c8 [ 55.594343] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000401ea0 [ 55.601614] R13: 0000000000401f30 R14: 0000000000000000 R15: 0000000000000000 [ 55.609809] Kernel Offset: disabled [ 55.613427] Rebooting in 86400 seconds..