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-1,10.128.0.61' (ECDSA) to the list of known hosts. 2017/09/07 16:55:46 parsed 1 programs 2017/09/07 16:55:46 executed programs: 0 syzkaller login: [ 24.464259] dev_remove_pack: ffff8801ceb17680 not found [ 24.489325] ================================================================== [ 24.496733] BUG: KASAN: use-after-free in __list_add_valid+0xb1/0xd0 [ 24.503203] Read of size 8 at addr ffff8801ce4f0b30 by task syz-executor0/3006 [ 24.510526] [ 24.512122] CPU: 0 PID: 3006 Comm: syz-executor0 Not tainted 4.13.0-next-20170907+ #17 [ 24.520141] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.529458] Call Trace: [ 24.532026] dump_stack+0x194/0x257 [ 24.535634] ? arch_local_irq_restore+0x53/0x53 [ 24.540269] ? show_regs_print_info+0x65/0x65 [ 24.544732] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.549721] ? __list_add_valid+0xb1/0xd0 [ 24.553844] print_address_description+0x73/0x250 [ 24.558654] ? __list_add_valid+0xb1/0xd0 [ 24.562780] kasan_report+0x24e/0x340 [ 24.566565] __asan_report_load8_noabort+0x14/0x20 [ 24.571460] __list_add_valid+0xb1/0xd0 [ 24.575405] dev_add_pack+0x113/0x2b0 [ 24.579172] ? napi_skb_free_stolen_head+0x170/0x170 [ 24.584239] ? __lockdep_init_map+0xe4/0x650 [ 24.588616] ? lockdep_init_map+0x3d/0x70 [ 24.592734] register_prot_hook.part.49+0x95/0xb0 [ 24.597542] packet_create+0x820/0xb00 [ 24.601396] ? sock_destroy_inode+0x70/0x70 [ 24.605682] ? register_prot_hook.part.49+0xb0/0xb0 [ 24.610665] ? __sock_create+0x211/0x850 [ 24.614708] ? module_unload_free+0x5b0/0x5b0 [ 24.619172] ? lock_release+0xd70/0xd70 [ 24.623116] ? __lock_is_held+0xbc/0x140 [ 24.627175] __sock_create+0x4d4/0x850 [ 24.631034] ? ___sys_recvmsg+0x630/0x630 [ 24.635175] ? do_page_fault+0xee/0x720 [ 24.639130] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.643600] ? SyS_futex+0x260/0x390 [ 24.647281] ? SyS_futex+0x269/0x390 [ 24.650968] SyS_socket+0xeb/0x200 [ 24.654473] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 24.659283] ? move_addr_to_kernel+0x60/0x60 [ 24.663658] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.668643] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.673372] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 24.678100] RIP: 0033:0x451e59 [ 24.681256] RSP: 002b:00007f1ff91b3c08 EFLAGS: 00000216 ORIG_RAX: 0000000000000029 [ 24.688935] RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 0000000000451e59 [ 24.696176] RDX: 0000000000000005 RSI: 0000000100000802 RDI: 0004000000000011 [ 24.703413] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 24.710647] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 24.717883] R13: 0000000000a6f7ef R14: 00007f1ff91b49c0 R15: 0000000000000000 [ 24.725145] [ 24.726737] Allocated by task 3004: [ 24.730332] save_stack_trace+0x16/0x20 [ 24.734273] save_stack+0x43/0xd0 [ 24.737703] kasan_kmalloc+0xad/0xe0 [ 24.741381] kmem_cache_alloc_trace+0x136/0x750 [ 24.746027] fanout_add+0xa50/0x1190 [ 24.749704] packet_setsockopt+0xfdc/0x1e80 [ 24.753989] SyS_setsockopt+0x189/0x360 [ 24.757927] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 24.762644] [ 24.764239] Freed by task 3004: [ 24.767481] save_stack_trace+0x16/0x20 [ 24.771420] save_stack+0x43/0xd0 [ 24.774851] kasan_slab_free+0x71/0xc0 [ 24.778705] kfree+0xca/0x250 [ 24.781774] packet_release+0xa8f/0xd70 [ 24.785712] sock_release+0x8d/0x1e0 [ 24.789395] sock_close+0x16/0x20 [ 24.792811] __fput+0x333/0x7f0 [ 24.796053] ____fput+0x15/0x20 [ 24.799299] task_work_run+0x199/0x270 [ 24.803158] do_exit+0xa52/0x1b40 [ 24.806575] do_group_exit+0x149/0x400 [ 24.810440] get_signal+0x7e8/0x17e0 [ 24.814119] do_signal+0x94/0x1ee0 [ 24.817622] exit_to_usermode_loop+0x224/0x300 [ 24.822193] syscall_return_slowpath+0x42f/0x500 [ 24.826910] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 24.831638] [ 24.833229] The buggy address belongs to the object at ffff8801ce4f0280 [ 24.833229] which belongs to the cache kmalloc-4096 of size 4096 [ 24.846022] The buggy address is located 2224 bytes inside of [ 24.846022] 4096-byte region [ffff8801ce4f0280, ffff8801ce4f1280) [ 24.858033] The buggy address belongs to the page: [ 24.862928] page:ffffea0007393c00 count:1 mapcount:0 mapping:ffff8801ce4f0280 index:0x0 compound_mapcount: 0 [ 24.872868] flags: 0x200000000008100(slab|head) [ 24.877505] raw: 0200000000008100 ffff8801ce4f0280 0000000000000000 0000000100000001 [ 24.885353] raw: ffffea00073a33a0 ffffea0007393e20 ffff8801dac00dc0 0000000000000000 [ 24.893209] page dumped because: kasan: bad access detected [ 24.898881] [ 24.900483] Memory state around the buggy address: [ 24.905375] ffff8801ce4f0a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.912697] ffff8801ce4f0a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.920036] >ffff8801ce4f0b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.927357] ^ [ 24.932250] ffff8801ce4f0b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.939572] ffff8801ce4f0c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.946892] ================================================================== [ 24.954216] Disabling lock debugging due to kernel taint [ 24.959703] Kernel panic - not syncing: panic_on_warn set ... [ 24.959703] [ 24.967033] CPU: 0 PID: 3006 Comm: syz-executor0 Tainted: G B 4.13.0-next-20170907+ #17 [ 24.976263] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.985575] Call Trace: [ 24.988135] dump_stack+0x194/0x257 [ 24.991762] ? arch_local_irq_restore+0x53/0x53 [ 24.996394] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.001115] ? assoc_array_gc+0x13c0/0x13c0 [ 25.005411] panic+0x1e4/0x417 [ 25.008565] ? __warn+0x1d9/0x1d9 [ 25.011987] ? __list_add_valid+0xb1/0xd0 [ 25.016096] kasan_end_report+0x50/0x50 [ 25.020033] kasan_report+0x137/0x340 [ 25.023799] __asan_report_load8_noabort+0x14/0x20 [ 25.028693] __list_add_valid+0xb1/0xd0 [ 25.032636] dev_add_pack+0x113/0x2b0 [ 25.036402] ? napi_skb_free_stolen_head+0x170/0x170 [ 25.041469] ? __lockdep_init_map+0xe4/0x650 [ 25.045842] ? lockdep_init_map+0x3d/0x70 [ 25.049955] register_prot_hook.part.49+0x95/0xb0 [ 25.054761] packet_create+0x820/0xb00 [ 25.058611] ? sock_destroy_inode+0x70/0x70 [ 25.062907] ? register_prot_hook.part.49+0xb0/0xb0 [ 25.067888] ? __sock_create+0x211/0x850 [ 25.071913] ? module_unload_free+0x5b0/0x5b0 [ 25.076372] ? lock_release+0xd70/0xd70 [ 25.080323] ? __lock_is_held+0xbc/0x140 [ 25.084353] __sock_create+0x4d4/0x850 [ 25.088205] ? ___sys_recvmsg+0x630/0x630 [ 25.092314] ? do_page_fault+0xee/0x720 [ 25.096251] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.100713] ? SyS_futex+0x260/0x390 [ 25.104387] ? SyS_futex+0x269/0x390 [ 25.108066] SyS_socket+0xeb/0x200 [ 25.111568] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 25.116378] ? move_addr_to_kernel+0x60/0x60 [ 25.120760] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.125735] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.130475] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 25.135189] RIP: 0033:0x451e59 [ 25.138340] RSP: 002b:00007f1ff91b3c08 EFLAGS: 00000216 ORIG_RAX: 0000000000000029 [ 25.146008] RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 0000000000451e59 [ 25.153238] RDX: 0000000000000005 RSI: 0000000100000802 RDI: 0004000000000011 [ 25.160468] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 25.167697] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 25.174926] R13: 0000000000a6f7ef R14: 00007f1ff91b49c0 R15: 0000000000000000 [ 25.182203] Dumping ftrace buffer: [ 25.185719] (ftrace buffer empty) [ 25.189394] Kernel Offset: disabled [ 25.192982] Rebooting in 86400 seconds..