[ 35.354451] audit: type=1800 audit(1550989885.614:27): pid=7464 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2436 res=0 [ 35.383314] audit: type=1800 audit(1550989885.614:28): pid=7464 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.096824] audit: type=1800 audit(1550989886.354:29): pid=7464 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.119651] audit: type=1800 audit(1550989886.354:30): pid=7464 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.196' (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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.072760] ================================================================== [ 45.080277] BUG: KASAN: use-after-free in __list_add_valid+0x9a/0xa0 [ 45.086782] Read of size 8 at addr ffff8880a8a9e7a0 by task syz-executor835/8186 [ 45.094299] [ 45.095918] CPU: 0 PID: 8186 Comm: syz-executor835 Not tainted 5.0.0-rc7+ #85 [ 45.103175] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 45.112567] Call Trace: [ 45.115171] dump_stack+0x172/0x1f0 [ 45.118786] ? __list_add_valid+0x9a/0xa0 [ 45.122929] print_address_description.cold+0x7c/0x20d [ 45.128192] ? __list_add_valid+0x9a/0xa0 [ 45.132328] ? __list_add_valid+0x9a/0xa0 [ 45.136464] kasan_report.cold+0x1b/0x40 [ 45.140510] ? __list_add_valid+0x9a/0xa0 [ 45.144645] __asan_report_load8_noabort+0x14/0x20 [ 45.149560] __list_add_valid+0x9a/0xa0 [ 45.153538] rdma_listen+0x63b/0x8e0 [ 45.157247] ucma_listen+0x14d/0x1c0 [ 45.160944] ? ucma_notify+0x190/0x190 [ 45.164822] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 45.170353] ? _copy_from_user+0xdd/0x150 [ 45.174486] ucma_write+0x2da/0x3c0 [ 45.178114] ? ucma_notify+0x190/0x190 [ 45.181987] ? ucma_open+0x290/0x290 [ 45.185687] ? do_wp_page+0x2f5/0x1520 [ 45.189565] __vfs_write+0x116/0x8e0 [ 45.193266] ? ucma_open+0x290/0x290 [ 45.196971] ? kernel_read+0x120/0x120 [ 45.200847] ? fsnotify+0x395/0xbd0 [ 45.204458] ? fsnotify+0xbd0/0xbd0 [ 45.208087] ? fsnotify_first_mark+0x210/0x210 [ 45.212661] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 45.218207] ? security_file_permission+0x94/0x320 [ 45.223137] ? rw_verify_area+0x118/0x360 [ 45.227278] vfs_write+0x20c/0x580 [ 45.230815] ksys_write+0xea/0x1f0 [ 45.234345] ? __ia32_sys_read+0xb0/0xb0 [ 45.238398] ? do_syscall_64+0x26/0x610 [ 45.242358] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 45.247705] ? do_syscall_64+0x26/0x610 [ 45.251666] __x64_sys_write+0x73/0xb0 [ 45.255540] do_syscall_64+0x103/0x610 [ 45.259432] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 45.264606] RIP: 0033:0x440f59 [ 45.267784] 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.286672] RSP: 002b:00007ffd28f49ca8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 45.294376] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000440f59 [ 45.301647] RDX: 0000000000000010 RSI: 00000000200001c0 RDI: 0000000000000003 [ 45.308907] RBP: 000000000000aff1 R08: 00000000004002c8 R09: 00000000004002c8 [ 45.316162] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000401ea0 [ 45.323417] R13: 0000000000401f30 R14: 0000000000000000 R15: 0000000000000000 [ 45.330675] [ 45.332288] Allocated by task 7710: [ 45.335910] save_stack+0x45/0xd0 [ 45.339436] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 45.344347] kasan_kmalloc+0x9/0x10 [ 45.347957] kmem_cache_alloc_trace+0x151/0x760 [ 45.352626] __rdma_create_id+0x5f/0x4e0 [ 45.356675] ucma_create_id+0x1de/0x640 [ 45.360644] ucma_write+0x2da/0x3c0 [ 45.364267] __vfs_write+0x116/0x8e0 [ 45.367970] vfs_write+0x20c/0x580 [ 45.371581] ksys_write+0xea/0x1f0 [ 45.375119] __x64_sys_write+0x73/0xb0 [ 45.378992] do_syscall_64+0x103/0x610 [ 45.382865] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 45.388042] [ 45.389656] Freed by task 7710: [ 45.392921] save_stack+0x45/0xd0 [ 45.396358] __kasan_slab_free+0x102/0x150 [ 45.400576] kasan_slab_free+0xe/0x10 [ 45.404364] kfree+0xcf/0x230 [ 45.407483] rdma_destroy_id+0x723/0xab0 [ 45.411546] ucma_close+0x115/0x320 [ 45.415160] __fput+0x2df/0x8d0 [ 45.418421] ____fput+0x16/0x20 [ 45.421687] task_work_run+0x14a/0x1c0 [ 45.425562] exit_to_usermode_loop+0x273/0x2c0 [ 45.430128] do_syscall_64+0x52d/0x610 [ 45.434003] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 45.439169] [ 45.440782] The buggy address belongs to the object at ffff8880a8a9e5c0 [ 45.440782] which belongs to the cache kmalloc-2k of size 2048 [ 45.453420] The buggy address is located 480 bytes inside of [ 45.453420] 2048-byte region [ffff8880a8a9e5c0, ffff8880a8a9edc0) [ 45.465377] The buggy address belongs to the page: [ 45.470295] page:ffffea0002a2a780 count:1 mapcount:0 mapping:ffff88812c3f0c40 index:0x0 compound_mapcount: 0 [ 45.480250] flags: 0x1fffc0000010200(slab|head) [ 45.484907] raw: 01fffc0000010200 ffffea0002428e08 ffffea0002a16f88 ffff88812c3f0c40 [ 45.492774] raw: 0000000000000000 ffff8880a8a9e5c0 0000000100000003 0000000000000000 [ 45.500652] page dumped because: kasan: bad access detected [ 45.506357] [ 45.507968] Memory state around the buggy address: [ 45.512881] ffff8880a8a9e680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 45.520221] ffff8880a8a9e700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 45.527562] >ffff8880a8a9e780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 45.534918] ^ [ 45.539316] ffff8880a8a9e800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 45.546660] ffff8880a8a9e880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 45.553997] ================================================================== [ 45.561333] Disabling lock debugging due to kernel taint [ 45.568027] Kernel panic - not syncing: panic_on_warn set ... [ 45.573935] CPU: 0 PID: 8186 Comm: syz-executor835 Tainted: G B 5.0.0-rc7+ #85 [ 45.582923] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 45.592255] Call Trace: [ 45.594833] dump_stack+0x172/0x1f0 [ 45.598449] panic+0x2cb/0x65c [ 45.601634] ? __warn_printk+0xf3/0xf3 [ 45.605550] ? __list_add_valid+0x9a/0xa0 [ 45.609683] ? preempt_schedule+0x4b/0x60 [ 45.613832] ? ___preempt_schedule+0x16/0x18 [ 45.618244] ? trace_hardirqs_on+0x5e/0x230 [ 45.622553] ? __list_add_valid+0x9a/0xa0 [ 45.626687] end_report+0x47/0x4f [ 45.630129] ? __list_add_valid+0x9a/0xa0 [ 45.634261] kasan_report.cold+0xe/0x40 [ 45.638220] ? __list_add_valid+0x9a/0xa0 [ 45.642351] __asan_report_load8_noabort+0x14/0x20 [ 45.647262] __list_add_valid+0x9a/0xa0 [ 45.651224] rdma_listen+0x63b/0x8e0 [ 45.654940] ucma_listen+0x14d/0x1c0 [ 45.658652] ? ucma_notify+0x190/0x190 [ 45.662525] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 45.668052] ? _copy_from_user+0xdd/0x150 [ 45.672186] ucma_write+0x2da/0x3c0 [ 45.675796] ? ucma_notify+0x190/0x190 [ 45.679668] ? ucma_open+0x290/0x290 [ 45.683365] ? do_wp_page+0x2f5/0x1520 [ 45.687237] __vfs_write+0x116/0x8e0 [ 45.690931] ? ucma_open+0x290/0x290 [ 45.694626] ? kernel_read+0x120/0x120 [ 45.698504] ? fsnotify+0x395/0xbd0 [ 45.702116] ? fsnotify+0xbd0/0xbd0 [ 45.705724] ? fsnotify_first_mark+0x210/0x210 [ 45.710290] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 45.715835] ? security_file_permission+0x94/0x320 [ 45.720770] ? rw_verify_area+0x118/0x360 [ 45.724919] vfs_write+0x20c/0x580 [ 45.728448] ksys_write+0xea/0x1f0 [ 45.731972] ? __ia32_sys_read+0xb0/0xb0 [ 45.736020] ? do_syscall_64+0x26/0x610 [ 45.739987] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 45.745334] ? do_syscall_64+0x26/0x610 [ 45.749295] __x64_sys_write+0x73/0xb0 [ 45.753171] do_syscall_64+0x103/0x610 [ 45.757049] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 45.762219] RIP: 0033:0x440f59 [ 45.765396] 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.784290] RSP: 002b:00007ffd28f49ca8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 45.791997] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000440f59 [ 45.799250] RDX: 0000000000000010 RSI: 00000000200001c0 RDI: 0000000000000003 [ 45.806521] RBP: 000000000000aff1 R08: 00000000004002c8 R09: 00000000004002c8 [ 45.813776] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000401ea0 [ 45.821046] R13: 0000000000401f30 R14: 0000000000000000 R15: 0000000000000000 [ 45.829265] Kernel Offset: disabled [ 45.832885] Rebooting in 86400 seconds..