[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 19.140177] audit: type=1400 audit(1518185656.241:6): avc: denied { map } for pid=4148 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 [ 184.421029] audit: type=1400 audit(1518185821.522:7): avc: denied { map } for pid=4161 comm="sh" path="/bin/dash" dev="sda1" ino=1473 scontext=system_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.35' (ECDSA) to the list of known hosts. executing program [ 433.930177] audit: type=1400 audit(1518186071.031:8): avc: denied { map } for pid=4168 comm="syzkaller254122" path="/root/syzkaller254122094" 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 [ 433.940775] IPVS: ftp: loaded support on port[0] = 21 executing program [ 433.984383] IPVS: ftp: loaded support on port[0] = 21 executing program executing program executing program executing program executing program [ 434.010106] IPVS: ftp: loaded support on port[0] = 21 executing program executing program [ 434.037198] IPVS: ftp: loaded support on port[0] = 21 executing program executing program executing program executing program executing program executing program [ 434.072511] IPVS: ftp: loaded support on port[0] = 21 executing program executing program executing program executing program executing program executing program executing program [ 434.123594] IPVS: ftp: loaded support on port[0] = 21 executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 434.184348] IPVS: ftp: loaded support on port[0] = 21 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 434.266245] IPVS: ftp: loaded support on port[0] = 21 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 435.167119] ================================================================== [ 435.174604] BUG: KASAN: use-after-free in do_raw_spin_unlock+0x2a4/0x300 [ 435.181421] Read of size 4 at addr ffff8801af8d1328 by task syzkaller254122/4773 [ 435.188924] [ 435.190529] CPU: 0 PID: 4773 Comm: syzkaller254122 Not tainted 4.15.0+ #305 [ 435.197612] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 435.206939] Call Trace: [ 435.209505] dump_stack+0x194/0x257 [ 435.213111] ? arch_local_irq_restore+0x53/0x53 [ 435.217755] ? show_regs_print_info+0x18/0x18 [ 435.222230] ? do_raw_spin_unlock+0x2a4/0x300 [ 435.226703] print_address_description+0x73/0x250 [ 435.231520] ? do_raw_spin_unlock+0x2a4/0x300 [ 435.235989] kasan_report+0x23b/0x360 [ 435.239771] __asan_report_load4_noabort+0x14/0x20 [ 435.244675] do_raw_spin_unlock+0x2a4/0x300 [ 435.248975] ? do_raw_spin_trylock+0x190/0x190 [ 435.253537] ? do_raw_spin_lock+0x185/0x220 [ 435.257838] _raw_spin_unlock_irqrestore+0x27/0xba [ 435.262746] remove_wait_queue+0x1b4/0x350 [ 435.266958] ? rcutorture_record_progress+0x10/0x10 [ 435.271956] ? add_wait_queue+0x290/0x290 [ 435.276092] ? check_noncircular+0x20/0x20 [ 435.280309] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 435.285562] ? __save_stack_trace+0x7e/0xd0 [ 435.289860] ? clear_tfile_check_list+0x370/0x370 [ 435.294688] ? locks_remove_file+0x3fa/0x5a0 [ 435.299081] ep_free+0x13f/0x320 [ 435.302422] ? ep_remove+0x800/0x800 [ 435.306109] ? fsnotify_first_mark+0x2b0/0x2b0 [ 435.310670] ? ep_free+0x320/0x320 [ 435.314185] ep_eventpoll_release+0x44/0x60 [ 435.318480] __fput+0x327/0x7e0 [ 435.321739] ? fput+0x140/0x140 [ 435.324995] ? _raw_spin_unlock_irq+0x27/0x70 [ 435.329471] ____fput+0x15/0x20 [ 435.332723] task_work_run+0x199/0x270 [ 435.336587] ? task_work_cancel+0x210/0x210 [ 435.340887] ? exit_to_usermode_loop+0x8c/0x2f0 [ 435.345547] exit_to_usermode_loop+0x275/0x2f0 [ 435.350107] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 435.355614] ? do_raw_spin_trylock+0x190/0x190 [ 435.360180] ? do_syscall_64+0xb7/0x940 [ 435.364135] do_syscall_64+0x6ed/0x940 [ 435.368004] ? __do_page_fault+0xc90/0xc90 [ 435.372212] ? mmdrop+0x18/0x30 [ 435.375467] ? finish_task_switch+0x29b/0x890 [ 435.379936] ? syscall_return_slowpath+0x550/0x550 [ 435.384841] ? syscall_return_slowpath+0x2ac/0x550 [ 435.389743] ? prepare_exit_to_usermode+0x350/0x350 [ 435.394749] ? entry_SYSCALL_64_after_hwframe+0x36/0x9b [ 435.400098] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 435.404928] entry_SYSCALL_64_after_hwframe+0x26/0x9b [ 435.410449] RIP: 0033:0x44a0f9 [ 435.413621] RSP: 002b:00007f03daef9da8 EFLAGS: 00000246 ORIG_RAX: 0000000000000124 [ 435.421310] RAX: 0000000000000008 RBX: 00000000006debfc RCX: 000000000044a0f9 [ 435.428559] RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000007 [ 435.435806] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 435.443056] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006debf8 [ 435.450302] R13: 6e69622f7665642f R14: 6273752f7665642f R15: 000000000000000b [ 435.457567] [ 435.459172] Allocated by task 4761: [ 435.462781] save_stack+0x43/0xd0 [ 435.466207] kasan_kmalloc+0xad/0xe0 [ 435.469895] kmem_cache_alloc_trace+0x136/0x740 [ 435.474545] binder_get_thread+0x1cf/0x870 [ 435.478754] binder_poll+0x8c/0x390 [ 435.482357] ep_item_poll.isra.10+0xf2/0x320 [ 435.486739] ep_insert+0x6a2/0x1ac0 [ 435.490341] SyS_epoll_ctl+0x12bf/0x1a80 [ 435.494396] do_syscall_64+0x282/0x940 [ 435.498268] entry_SYSCALL_64_after_hwframe+0x26/0x9b [ 435.503430] [ 435.505036] Freed by task 4761: [ 435.508309] save_stack+0x43/0xd0 [ 435.511744] __kasan_slab_free+0x11a/0x170 [ 435.515953] kasan_slab_free+0xe/0x10 [ 435.519736] kfree+0xd9/0x260 [ 435.522817] binder_thread_dec_tmpref+0x27f/0x310 [ 435.527636] binder_thread_release+0x4a1/0x6b0 [ 435.532190] binder_ioctl+0xc02/0x1417 [ 435.536056] do_vfs_ioctl+0x1b1/0x1520 [ 435.539919] SyS_ioctl+0x8f/0xc0 [ 435.543275] do_syscall_64+0x282/0x940 [ 435.547143] entry_SYSCALL_64_after_hwframe+0x26/0x9b [ 435.552314] [ 435.553915] The buggy address belongs to the object at ffff8801af8d1280 [ 435.553915] which belongs to the cache kmalloc-512 of size 512 [ 435.566561] The buggy address is located 168 bytes inside of [ 435.566561] 512-byte region [ffff8801af8d1280, ffff8801af8d1480) [ 435.578413] The buggy address belongs to the page: [ 435.583322] page:ffffea0006be3440 count:1 mapcount:0 mapping:ffff8801af8d1000 index:0x0 [ 435.591440] flags: 0x2fffc0000000100(slab) [ 435.595659] raw: 02fffc0000000100 ffff8801af8d1000 0000000000000000 0000000100000006 [ 435.603522] raw: ffffea0006bcd4a0 ffffea0006bb3e60 ffff8801db000940 0000000000000000 [ 435.611374] page dumped because: kasan: bad access detected [ 435.617061] [ 435.618663] Memory state around the buggy address: [ 435.623566] ffff8801af8d1200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 435.630899] ffff8801af8d1280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 435.638241] >ffff8801af8d1300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 435.645571] ^ [ 435.650212] ffff8801af8d1380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 435.657558] ffff8801af8d1400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 435.664899] ================================================================== [ 435.672235] Disabling lock debugging due to kernel taint [ 435.677661] Kernel panic - not syncing: panic_on_warn set ... [ 435.677661] [ 435.684998] CPU: 0 PID: 4773 Comm: syzkaller254122 Tainted: G B 4.15.0+ #305 [ 435.693374] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 435.702701] Call Trace: [ 435.705271] dump_stack+0x194/0x257 [ 435.708873] ? arch_local_irq_restore+0x53/0x53 [ 435.713532] ? kasan_end_report+0x32/0x50 [ 435.717658] ? lock_downgrade+0x980/0x980 [ 435.721778] ? vsnprintf+0x1ed/0x1900 [ 435.725550] ? do_raw_spin_unlock+0x1f0/0x300 [ 435.730027] panic+0x1e4/0x41c [ 435.733195] ? refcount_error_report+0x214/0x214 [ 435.737932] ? add_taint+0x40/0x50 [ 435.741446] ? add_taint+0x1c/0x50 [ 435.744959] ? do_raw_spin_unlock+0x2a4/0x300 [ 435.749429] kasan_end_report+0x50/0x50 [ 435.753377] kasan_report+0x148/0x360 [ 435.757152] __asan_report_load4_noabort+0x14/0x20 [ 435.762057] do_raw_spin_unlock+0x2a4/0x300 [ 435.766351] ? do_raw_spin_trylock+0x190/0x190 [ 435.770905] ? do_raw_spin_lock+0x185/0x220 [ 435.775204] _raw_spin_unlock_irqrestore+0x27/0xba [ 435.780112] remove_wait_queue+0x1b4/0x350 [ 435.784323] ? rcutorture_record_progress+0x10/0x10 [ 435.789314] ? add_wait_queue+0x290/0x290 [ 435.793437] ? check_noncircular+0x20/0x20 [ 435.797648] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 435.802909] ? __save_stack_trace+0x7e/0xd0 [ 435.807205] ? clear_tfile_check_list+0x370/0x370 [ 435.812035] ? locks_remove_file+0x3fa/0x5a0 [ 435.816425] ep_free+0x13f/0x320 [ 435.819766] ? ep_remove+0x800/0x800 [ 435.823454] ? fsnotify_first_mark+0x2b0/0x2b0 [ 435.828027] ? ep_free+0x320/0x320 [ 435.831544] ep_eventpoll_release+0x44/0x60 [ 435.835841] __fput+0x327/0x7e0 [ 435.839097] ? fput+0x140/0x140 [ 435.842353] ? _raw_spin_unlock_irq+0x27/0x70 [ 435.846825] ____fput+0x15/0x20 [ 435.850077] task_work_run+0x199/0x270 [ 435.853936] ? task_work_cancel+0x210/0x210 [ 435.858240] ? exit_to_usermode_loop+0x8c/0x2f0 [ 435.862905] exit_to_usermode_loop+0x275/0x2f0 [ 435.867474] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 435.872984] ? do_raw_spin_trylock+0x190/0x190 [ 435.877553] ? do_syscall_64+0xb7/0x940 [ 435.881507] do_syscall_64+0x6ed/0x940 [ 435.885370] ? __do_page_fault+0xc90/0xc90 [ 435.889575] ? mmdrop+0x18/0x30 [ 435.892839] ? finish_task_switch+0x29b/0x890 [ 435.897307] ? syscall_return_slowpath+0x550/0x550 [ 435.902208] ? syscall_return_slowpath+0x2ac/0x550 [ 435.907122] ? prepare_exit_to_usermode+0x350/0x350 [ 435.912113] ? entry_SYSCALL_64_after_hwframe+0x36/0x9b [ 435.917451] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 435.922271] entry_SYSCALL_64_after_hwframe+0x26/0x9b [ 435.927435] RIP: 0033:0x44a0f9 [ 435.930597] RSP: 002b:00007f03daef9da8 EFLAGS: 00000246 ORIG_RAX: 0000000000000124 [ 435.938283] RAX: 0000000000000008 RBX: 00000000006debfc RCX: 000000000044a0f9 [ 435.945531] RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000007 [ 435.952784] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 435.960031] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006debf8 [ 435.967275] R13: 6e69622f7665642f R14: 6273752f7665642f R15: 000000000000000b [ 435.975025] Dumping ftrace buffer: [ 435.978540] (ftrace buffer empty) [ 435.982221] Kernel Offset: disabled [ 435.985825] Rebooting in 86400 seconds..