[ 35.767367] audit: type=1800 audit(1549128337.501:27): pid=7543 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2436 res=0 [ 35.788262] audit: type=1800 audit(1549128337.511:28): pid=7543 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="ssh" dev="sda1" ino=2417 res=0 [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 36.910287] audit: type=1800 audit(1549128338.701:29): pid=7543 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="rc.local" dev="sda1" ino=2432 res=0 [ 36.928977] audit: type=1800 audit(1549128338.701:30): pid=7543 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="rmnologin" dev="sda1" ino=2423 res=0 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.192' (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 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 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 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 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 syzkaller login: [ 45.717987] ================================================================== [ 45.725603] BUG: KASAN: use-after-free in __list_add_valid+0x9a/0xa0 [ 45.732086] Read of size 8 at addr ffff8880901af060 by task syz-executor656/8212 [ 45.739684] [ 45.741298] CPU: 0 PID: 8212 Comm: syz-executor656 Not tainted 5.0.0-rc4+ #57 [ 45.748707] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 45.758048] Call Trace: [ 45.760623] dump_stack+0x172/0x1f0 [ 45.764239] ? __list_add_valid+0x9a/0xa0 [ 45.768464] print_address_description.cold+0x7c/0x20d [ 45.773735] ? __list_add_valid+0x9a/0xa0 [ 45.777870] ? __list_add_valid+0x9a/0xa0 [ 45.782005] kasan_report.cold+0x1b/0x40 [ 45.786052] ? __list_add_valid+0x9a/0xa0 [ 45.790217] __asan_report_load8_noabort+0x14/0x20 [ 45.795134] __list_add_valid+0x9a/0xa0 [ 45.799228] rdma_listen+0x63b/0x8e0 [ 45.802931] ucma_listen+0x14d/0x1c0 [ 45.806634] ? ucma_notify+0x190/0x190 [ 45.810509] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 45.816031] ? _copy_from_user+0xdd/0x150 [ 45.820161] ucma_write+0x2da/0x3c0 [ 45.823772] ? ucma_notify+0x190/0x190 [ 45.827645] ? ucma_open+0x290/0x290 [ 45.831350] ? do_wp_page+0x2f5/0x11d0 [ 45.835241] __vfs_write+0x116/0x8e0 [ 45.838946] ? ucma_open+0x290/0x290 [ 45.842647] ? kernel_read+0x120/0x120 [ 45.846525] ? fsnotify+0x395/0xbd0 [ 45.850151] ? fsnotify+0xbd0/0xbd0 [ 45.853766] ? fsnotify_first_mark+0x210/0x210 [ 45.858332] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 45.863864] ? security_file_permission+0x94/0x320 [ 45.868781] ? rw_verify_area+0x118/0x360 [ 45.872917] vfs_write+0x20c/0x580 [ 45.876446] ksys_write+0xea/0x1f0 [ 45.879984] ? __ia32_sys_read+0xb0/0xb0 [ 45.884038] ? do_syscall_64+0x26/0x610 [ 45.888004] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 45.893361] ? do_syscall_64+0x26/0x610 [ 45.897335] __x64_sys_write+0x73/0xb0 [ 45.901219] do_syscall_64+0x103/0x610 [ 45.905181] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 45.910371] RIP: 0033:0x440f59 [ 45.913548] 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 [ 45.932532] RSP: 002b:00007fff4333ba08 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 45.940224] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000440f59 [ 45.947481] RDX: 0000000000000010 RSI: 0000000020000240 RDI: 0000000000000003 [ 45.954740] RBP: 000000000000b278 R08: 00000000004002c8 R09: 00000000004002c8 [ 45.961996] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000401ea0 [ 45.969252] R13: 0000000000401f30 R14: 0000000000000000 R15: 0000000000000000 [ 45.976516] [ 45.978125] Allocated by task 7708: [ 45.981748] save_stack+0x45/0xd0 [ 45.985187] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 45.990099] kasan_kmalloc+0x9/0x10 [ 45.993707] kmem_cache_alloc_trace+0x151/0x760 [ 45.998366] __rdma_create_id+0x5f/0x4e0 [ 46.002410] ucma_create_id+0x1de/0x640 [ 46.006374] ucma_write+0x2da/0x3c0 [ 46.009982] __vfs_write+0x116/0x8e0 [ 46.013678] vfs_write+0x20c/0x580 [ 46.017197] ksys_write+0xea/0x1f0 [ 46.020722] __x64_sys_write+0x73/0xb0 [ 46.024592] do_syscall_64+0x103/0x610 [ 46.028461] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.033625] [ 46.035232] Freed by task 7708: [ 46.038493] save_stack+0x45/0xd0 [ 46.041932] __kasan_slab_free+0x102/0x150 [ 46.046210] kasan_slab_free+0xe/0x10 [ 46.050010] kfree+0xcf/0x230 [ 46.053103] rdma_destroy_id+0x723/0xab0 [ 46.057149] ucma_close+0x115/0x320 [ 46.060761] __fput+0x2df/0x8d0 [ 46.064023] ____fput+0x16/0x20 [ 46.067286] task_work_run+0x14a/0x1c0 [ 46.071159] exit_to_usermode_loop+0x273/0x2c0 [ 46.075731] do_syscall_64+0x52d/0x610 [ 46.079605] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.084797] [ 46.086425] The buggy address belongs to the object at ffff8880901aee80 [ 46.086425] which belongs to the cache kmalloc-2k of size 2048 [ 46.099119] The buggy address is located 480 bytes inside of [ 46.099119] 2048-byte region [ffff8880901aee80, ffff8880901af680) [ 46.111065] The buggy address belongs to the page: [ 46.115990] page:ffffea0002406b80 count:1 mapcount:0 mapping:ffff88812c3f0c40 index:0x0 compound_mapcount: 0 [ 46.125943] flags: 0x1fffc0000010200(slab|head) [ 46.130595] raw: 01fffc0000010200 ffffea00023c4808 ffffea0002388c08 ffff88812c3f0c40 [ 46.138467] raw: 0000000000000000 ffff8880901ae600 0000000100000003 0000000000000000 [ 46.146341] page dumped because: kasan: bad access detected [ 46.152106] [ 46.153723] Memory state around the buggy address: [ 46.158721] ffff8880901aef00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.166065] ffff8880901aef80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.173412] >ffff8880901af000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.180757] ^ [ 46.187242] ffff8880901af080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.194588] ffff8880901af100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.201933] ================================================================== [ 46.209276] Disabling lock debugging due to kernel taint [ 46.215243] Kernel panic - not syncing: panic_on_warn set ... [ 46.221133] CPU: 0 PID: 8212 Comm: syz-executor656 Tainted: G B 5.0.0-rc4+ #57 [ 46.229818] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.239153] Call Trace: [ 46.241730] dump_stack+0x172/0x1f0 [ 46.245345] panic+0x2cb/0x65c [ 46.248523] ? __warn_printk+0xf3/0xf3 [ 46.252397] ? __list_add_valid+0x9a/0xa0 [ 46.256533] ? preempt_schedule+0x4b/0x60 [ 46.260662] ? ___preempt_schedule+0x16/0x18 [ 46.265048] ? trace_hardirqs_on+0x5e/0x230 [ 46.269365] ? __list_add_valid+0x9a/0xa0 [ 46.273501] end_report+0x47/0x4f [ 46.276938] ? __list_add_valid+0x9a/0xa0 [ 46.281073] kasan_report.cold+0xe/0x40 [ 46.285039] ? __list_add_valid+0x9a/0xa0 [ 46.289179] __asan_report_load8_noabort+0x14/0x20 [ 46.294110] __list_add_valid+0x9a/0xa0 [ 46.298072] rdma_listen+0x63b/0x8e0 [ 46.301771] ucma_listen+0x14d/0x1c0 [ 46.305469] ? ucma_notify+0x190/0x190 [ 46.309345] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 46.314866] ? _copy_from_user+0xdd/0x150 [ 46.318995] ucma_write+0x2da/0x3c0 [ 46.322607] ? ucma_notify+0x190/0x190 [ 46.326475] ? ucma_open+0x290/0x290 [ 46.330168] ? do_wp_page+0x2f5/0x11d0 [ 46.334039] __vfs_write+0x116/0x8e0 [ 46.337734] ? ucma_open+0x290/0x290 [ 46.341445] ? kernel_read+0x120/0x120 [ 46.345322] ? fsnotify+0x395/0xbd0 [ 46.348939] ? fsnotify+0xbd0/0xbd0 [ 46.352558] ? fsnotify_first_mark+0x210/0x210 [ 46.357122] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 46.362642] ? security_file_permission+0x94/0x320 [ 46.367641] ? rw_verify_area+0x118/0x360 [ 46.371778] vfs_write+0x20c/0x580 [ 46.375302] ksys_write+0xea/0x1f0 [ 46.378834] ? __ia32_sys_read+0xb0/0xb0 [ 46.382878] ? do_syscall_64+0x26/0x610 [ 46.386842] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.392192] ? do_syscall_64+0x26/0x610 [ 46.396155] __x64_sys_write+0x73/0xb0 [ 46.400030] do_syscall_64+0x103/0x610 [ 46.403900] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.409072] RIP: 0033:0x440f59 [ 46.412246] 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 [ 46.431126] RSP: 002b:00007fff4333ba08 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 46.438817] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000440f59 [ 46.446076] RDX: 0000000000000010 RSI: 0000000020000240 RDI: 0000000000000003 [ 46.453335] RBP: 000000000000b278 R08: 00000000004002c8 R09: 00000000004002c8 [ 46.460587] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000401ea0 [ 46.467837] R13: 0000000000401f30 R14: 0000000000000000 R15: 0000000000000000 [ 46.476214] Kernel Offset: disabled [ 46.479835] Rebooting in 86400 seconds..