INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added 'ci-upstream-next-kasan-gce-8,10.128.15.208' (ECDSA) to the list of known hosts. 2017/09/12 13:17:21 parsed 1 programs 2017/09/12 13:17:21 executed programs: 0 2017/09/12 13:17:26 executed programs: 411 2017/09/12 13:17:31 executed programs: 767 2017/09/12 13:17:36 executed programs: 1133 2017/09/12 13:17:41 executed programs: 1501 2017/09/12 13:17:46 executed programs: 1867 2017/09/12 13:17:51 executed programs: 2231 2017/09/12 13:17:56 executed programs: 2595 2017/09/12 13:18:01 executed programs: 2959 syzkaller login: [ 169.804298] ================================================================== [ 169.805459] BUG: KASAN: use-after-free in get_work_pool+0x1c2/0x1e0 [ 169.806377] Read of size 8 at addr ffff8801c34d6fb8 by task syz-executor1/18335 [ 169.807987] [ 169.808242] CPU: 1 PID: 18335 Comm: syz-executor1 Not tainted 4.13.0-next-20170912+ #20 [ 169.809322] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 169.811212] Call Trace: [ 169.811696] dump_stack+0x194/0x257 [ 169.812734] ? arch_local_irq_restore+0x53/0x53 [ 169.813593] ? show_regs_print_info+0x65/0x65 [ 169.814260] ? __kernel_text_address+0xae/0xe0 [ 169.814932] ? get_work_pool+0x1c2/0x1e0 [ 169.815504] print_address_description+0x73/0x250 [ 169.816411] ? get_work_pool+0x1c2/0x1e0 [ 169.817003] kasan_report+0x24e/0x340 [ 169.817572] __asan_report_load8_noabort+0x14/0x20 [ 169.818485] get_work_pool+0x1c2/0x1e0 [ 169.819032] ? check_flush_dependency+0x370/0x370 [ 169.819693] ? save_stack_trace+0x16/0x20 [ 169.820255] ? save_stack+0x43/0xd0 [ 169.820783] ? kasan_kmalloc+0xad/0xe0 [ 169.821320] ? kasan_slab_alloc+0x12/0x20 [ 169.821886] __queue_work+0x235/0x1150 [ 169.822429] ? retint_kernel+0x10/0x10 [ 169.822987] ? insert_work+0x5d0/0x5d0 [ 169.823677] ? lock_downgrade+0x990/0x990 [ 169.824373] ? SyS_ioctl+0x8f/0xc0 [ 169.827728] ? psock_now_avail+0x34c/0x6c0 [ 169.831944] ? kcm_rcv_strparser+0x9a0/0x9a0 [ 169.836341] ? do_raw_spin_trylock+0x190/0x190 [ 169.840928] ? lockdep_init_map+0x3d/0x70 [ 169.845061] ? unreserve_rx_kcm+0x4d0/0x4d0 [ 169.849358] ? __local_bh_enable_ip+0x9d/0x160 [ 169.853934] queue_work_on+0x16a/0x1c0 [ 169.857810] strp_check_rcv+0x25/0x30 [ 169.861602] kcm_ioctl+0x826/0x1610 [ 169.865248] ? kcm_unattach+0x1510/0x1510 [ 169.869397] ? avc_ss_reset+0x110/0x110 [ 169.873372] ? lock_release+0xd70/0xd70 [ 169.877335] ? __lock_is_held+0xbc/0x140 [ 169.881399] sock_do_ioctl+0x65/0xb0 [ 169.885109] sock_ioctl+0x2c2/0x440 [ 169.888730] ? dlci_ioctl_set+0x40/0x40 [ 169.892692] do_vfs_ioctl+0x1b1/0x1530 [ 169.896586] ? ioctl_preallocate+0x2b0/0x2b0 [ 169.900984] ? selinux_capable+0x40/0x40 [ 169.905050] ? SyS_futex+0x260/0x390 [ 169.908745] ? SyS_futex+0x269/0x390 [ 169.912434] ? SyS_setsockopt+0x1fb/0x360 [ 169.916569] ? security_file_ioctl+0x7d/0xb0 [ 169.920952] ? security_file_ioctl+0x89/0xb0 [ 169.925339] SyS_ioctl+0x8f/0xc0 [ 169.928689] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 169.933424] RIP: 0033:0x451e59 [ 169.936587] RSP: 002b:00007fdfd06e6c08 EFLAGS: 00000216 ORIG_RAX: 0000000000000010 [ 169.944274] RAX: ffffffffffffffda RBX: 00000000007180b0 RCX: 0000000000451e59 [ 169.951517] RDX: 00000000209b9000 RSI: 00000000000089e0 RDI: 000000000000000a [ 169.958763] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 169.966009] R10: 0000000000000000 R11: 0000000000000216 R12: 00000000004b71b5 [ 169.973259] R13: 00000000ffffffff R14: 0000000000000005 R15: 0000000020b4cfd0 [ 169.980520] [ 169.982123] Allocated by task 18335: [ 169.985816] save_stack_trace+0x16/0x20 [ 169.989770] save_stack+0x43/0xd0 [ 169.993194] kasan_kmalloc+0xad/0xe0 [ 169.996879] kasan_slab_alloc+0x12/0x20 [ 170.000826] kmem_cache_alloc+0x12e/0x760 [ 170.004946] kcm_ioctl+0x2d1/0x1610 [ 170.008551] sock_do_ioctl+0x65/0xb0 [ 170.012248] sock_ioctl+0x2c2/0x440 [ 170.015858] do_vfs_ioctl+0x1b1/0x1530 [ 170.019723] SyS_ioctl+0x8f/0xc0 [ 170.023061] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 170.027784] [ 170.029389] Freed by task 18339: [ 170.032742] save_stack_trace+0x16/0x20 [ 170.036696] save_stack+0x43/0xd0 [ 170.040118] kasan_slab_free+0x71/0xc0 [ 170.043984] kmem_cache_free+0x77/0x280 [ 170.047942] kcm_unattach+0xe50/0x1510 [ 170.051809] kcm_ioctl+0xdf0/0x1610 [ 170.055406] sock_do_ioctl+0x65/0xb0 [ 170.059093] sock_ioctl+0x2c2/0x440 [ 170.062690] do_vfs_ioctl+0x1b1/0x1530 [ 170.066554] SyS_ioctl+0x8f/0xc0 [ 170.069908] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 170.074631] [ 170.076237] The buggy address belongs to the object at ffff8801c34d6e80 [ 170.076237] which belongs to the cache kcm_psock_cache of size 664 [ 170.089232] The buggy address is located 312 bytes inside of [ 170.089232] 664-byte region [ffff8801c34d6e80, ffff8801c34d7118) [ 170.101076] The buggy address belongs to the page: [ 170.105982] page:ffffea00070d3580 count:1 mapcount:0 mapping:ffff8801c34d6180 index:0x0 compound_mapcount: 0 [ 170.115950] flags: 0x200000000008100(slab|head) [ 170.120600] raw: 0200000000008100 ffff8801c34d6180 0000000000000000 0000000100000009 [ 170.128451] raw: ffffea00070d81a0 ffffea00070ff0a0 ffff8801d2ff7cc0 0000000000000000 [ 170.136299] page dumped because: kasan: bad access detected [ 170.141981] [ 170.143587] Memory state around the buggy address: [ 170.148491] ffff8801c34d6e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 170.155829] ffff8801c34d6f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 170.163163] >ffff8801c34d6f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 170.170500] ^ [ 170.175663] ffff8801c34d7000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 170.183007] ffff8801c34d7080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 170.190341] ================================================================== [ 170.197674] Disabling lock debugging due to kernel taint [ 170.203090] Kernel panic - not syncing: panic_on_warn set ... [ 170.203090] [ 170.210423] CPU: 1 PID: 18335 Comm: syz-executor1 Tainted: G B 4.13.0-next-20170912+ #20 [ 170.219741] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 170.229059] Call Trace: [ 170.231617] dump_stack+0x194/0x257 [ 170.235213] ? arch_local_irq_restore+0x53/0x53 [ 170.239851] ? vprintk_default+0x28/0x30 [ 170.244256] ? get_work_pool+0x160/0x1e0 [ 170.248299] panic+0x1e4/0x417 [ 170.251458] ? __warn+0x1d9/0x1d9 [ 170.254884] ? get_work_pool+0x1c2/0x1e0 [ 170.258910] kasan_end_report+0x50/0x50 [ 170.262886] kasan_report+0x137/0x340 [ 170.266661] __asan_report_load8_noabort+0x14/0x20 [ 170.271556] get_work_pool+0x1c2/0x1e0 [ 170.275415] ? check_flush_dependency+0x370/0x370 [ 170.280224] ? save_stack_trace+0x16/0x20 [ 170.284337] ? save_stack+0x43/0xd0 [ 170.287932] ? kasan_kmalloc+0xad/0xe0 [ 170.291790] ? kasan_slab_alloc+0x12/0x20 [ 170.295908] __queue_work+0x235/0x1150 [ 170.299762] ? retint_kernel+0x10/0x10 [ 170.303620] ? insert_work+0x5d0/0x5d0 [ 170.307480] ? lock_downgrade+0x990/0x990 [ 170.311595] ? SyS_ioctl+0x8f/0xc0 [ 170.315101] ? psock_now_avail+0x34c/0x6c0 [ 170.319302] ? kcm_rcv_strparser+0x9a0/0x9a0 [ 170.323678] ? do_raw_spin_trylock+0x190/0x190 [ 170.328223] ? lockdep_init_map+0x3d/0x70 [ 170.332335] ? unreserve_rx_kcm+0x4d0/0x4d0 [ 170.336624] ? __local_bh_enable_ip+0x9d/0x160 [ 170.341172] queue_work_on+0x16a/0x1c0 [ 170.345029] strp_check_rcv+0x25/0x30 [ 170.348797] kcm_ioctl+0x826/0x1610 [ 170.352394] ? kcm_unattach+0x1510/0x1510 [ 170.356508] ? avc_ss_reset+0x110/0x110 [ 170.360451] ? lock_release+0xd70/0xd70 [ 170.364391] ? __lock_is_held+0xbc/0x140 [ 170.368435] sock_do_ioctl+0x65/0xb0 [ 170.372115] sock_ioctl+0x2c2/0x440 [ 170.375709] ? dlci_ioctl_set+0x40/0x40 [ 170.379648] do_vfs_ioctl+0x1b1/0x1530 [ 170.383502] ? ioctl_preallocate+0x2b0/0x2b0 [ 170.387877] ? selinux_capable+0x40/0x40 [ 170.391906] ? SyS_futex+0x260/0x390 [ 170.395585] ? SyS_futex+0x269/0x390 [ 170.399264] ? SyS_setsockopt+0x1fb/0x360 [ 170.403384] ? security_file_ioctl+0x7d/0xb0 [ 170.407757] ? security_file_ioctl+0x89/0xb0 [ 170.412140] SyS_ioctl+0x8f/0xc0 [ 170.415479] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 170.420197] RIP: 0033:0x451e59 [ 170.423352] RSP: 002b:00007fdfd06e6c08 EFLAGS: 00000216 ORIG_RAX: 0000000000000010 [ 170.431028] RAX: ffffffffffffffda RBX: 00000000007180b0 RCX: 0000000000451e59 [ 170.438263] RDX: 00000000209b9000 RSI: 00000000000089e0 RDI: 000000000000000a [ 170.445497] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 170.452731] R10: 0000000000000000 R11: 0000000000000216 R12: 00000000004b71b5 [ 170.459965] R13: 00000000ffffffff R14: 0000000000000005 R15: 0000000020b4cfd0 [ 170.467644] Dumping ftrace buffer: [ 170.471151] (ftrace buffer empty) [ 170.474826] Kernel Offset: disabled [ 170.478419] Rebooting in 86400 seconds..