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-mmots-kasan-gce-6,10.128.0.59' (ECDSA) to the list of known hosts. 2017/09/20 22:15:01 parsed 1 programs 2017/09/20 22:15:01 executed programs: 0 2017/09/20 22:15:06 executed programs: 602 2017/09/20 22:15:11 executed programs: 1162 syzkaller login: [ 61.690957] dev_remove_pack: ffff8801c4b27340 not found [ 61.743532] ================================================================== [ 61.750956] BUG: KASAN: use-after-free in __list_add_valid+0xb1/0xd0 [ 61.757424] Read of size 8 at addr ffff8801c310aab0 by task syz-executor1/6617 [ 61.764751] [ 61.766354] CPU: 0 PID: 6617 Comm: syz-executor1 Not tainted 4.13.0-mm1+ #7 [ 61.773426] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 61.782750] Call Trace: [ 61.785315] dump_stack+0x194/0x257 [ 61.788921] ? arch_local_irq_restore+0x53/0x53 [ 61.793563] ? show_regs_print_info+0x65/0x65 [ 61.798031] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 61.803031] ? __list_add_valid+0xb1/0xd0 [ 61.807153] print_address_description+0x73/0x250 [ 61.811971] ? __list_add_valid+0xb1/0xd0 [ 61.816093] kasan_report+0x24e/0x340 [ 61.819874] __asan_report_load8_noabort+0x14/0x20 [ 61.824787] __list_add_valid+0xb1/0xd0 [ 61.828741] dev_add_pack+0x113/0x2b0 [ 61.832515] ? napi_skb_free_stolen_head+0x170/0x170 [ 61.837591] ? __lockdep_init_map+0xe4/0x650 [ 61.841980] ? lockdep_init_map+0x3d/0x70 [ 61.846108] register_prot_hook.part.49+0x95/0xb0 [ 61.850923] packet_create+0x820/0xb00 [ 61.854783] ? sock_destroy_inode+0x70/0x70 [ 61.859079] ? register_prot_hook.part.49+0xb0/0xb0 [ 61.864070] ? __sock_create+0x211/0x850 [ 61.868107] ? module_unload_free+0x5b0/0x5b0 [ 61.872582] ? lock_release+0xd70/0xd70 [ 61.876533] ? __lock_is_held+0xbc/0x140 [ 61.880585] __sock_create+0x4d4/0x850 [ 61.884452] ? ___sys_recvmsg+0x630/0x630 [ 61.888581] ? __fdget+0x18/0x20 [ 61.891924] ? SyS_futex+0x260/0x390 [ 61.895609] ? SyS_futex+0x269/0x390 [ 61.899296] ? SyS_setsockopt+0x215/0x360 [ 61.903423] SyS_socket+0xeb/0x200 [ 61.906936] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 61.911752] ? move_addr_to_kernel+0x60/0x60 [ 61.916131] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 61.921121] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 61.925860] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 61.930594] RIP: 0033:0x4520a9 [ 61.933756] RSP: 002b:00007f44de92bc08 EFLAGS: 00000216 ORIG_RAX: 0000000000000029 [ 61.941439] RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 00000000004520a9 [ 61.948680] RDX: 0000000000000008 RSI: 0000000000080003 RDI: 0000000000000011 [ 61.955920] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 61.963161] R10: 0000000000000000 R11: 0000000000000216 R12: 00000000004bb52e [ 61.970402] R13: 00000000ffffffff R14: 0000000000000003 R15: 0000000000000107 [ 61.977670] [ 61.979272] Allocated by task 6581: [ 61.982872] save_stack_trace+0x16/0x20 [ 61.986818] save_stack+0x43/0xd0 [ 61.990241] kasan_kmalloc+0xad/0xe0 [ 61.993928] kmem_cache_alloc_trace+0x136/0x750 [ 61.998567] fanout_add+0xa50/0x1190 [ 62.002252] packet_setsockopt+0xfdc/0x1e80 [ 62.006545] SyS_setsockopt+0x189/0x360 [ 62.010491] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 62.015213] [ 62.016812] Freed by task 6613: [ 62.020061] save_stack_trace+0x16/0x20 [ 62.024010] save_stack+0x43/0xd0 [ 62.027436] kasan_slab_free+0x71/0xc0 [ 62.031293] kfree+0xca/0x250 [ 62.034373] packet_release+0xa8f/0xd70 [ 62.038318] sock_release+0x8d/0x1e0 [ 62.042001] sock_close+0x16/0x20 [ 62.045429] __fput+0x333/0x7f0 [ 62.048678] ____fput+0x15/0x20 [ 62.051929] task_work_run+0x199/0x270 [ 62.055790] do_exit+0xa52/0x1b40 [ 62.059212] do_group_exit+0x149/0x400 [ 62.063069] get_signal+0x7e8/0x17e0 [ 62.066756] do_signal+0x94/0x1ee0 [ 62.070267] exit_to_usermode_loop+0x224/0x300 [ 62.074818] syscall_return_slowpath+0x42f/0x500 [ 62.079545] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 62.084270] [ 62.085870] The buggy address belongs to the object at ffff8801c310a200 [ 62.085870] which belongs to the cache kmalloc-4096 of size 4096 [ 62.098670] The buggy address is located 2224 bytes inside of [ 62.098670] 4096-byte region [ffff8801c310a200, ffff8801c310b200) [ 62.110685] The buggy address belongs to the page: [ 62.115584] page:ffffea00070c4280 count:1 mapcount:0 mapping:ffff8801c310a200 index:0x0 compound_mapcount: 0 [ 62.125529] flags: 0x200000000008100(slab|head) [ 62.130173] raw: 0200000000008100 ffff8801c310a200 0000000000000000 0000000100000001 [ 62.138025] raw: ffffea00070c3aa0 ffffea00070d6ea0 ffff8801dac00dc0 0000000000000000 [ 62.145873] page dumped because: kasan: bad access detected [ 62.151550] [ 62.153149] Memory state around the buggy address: [ 62.158050] ffff8801c310a980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.165381] ffff8801c310aa00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.172711] >ffff8801c310aa80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.180038] ^ [ 62.184938] ffff8801c310ab00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.192266] ffff8801c310ab80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 62.199593] ================================================================== [ 62.206921] Disabling lock debugging due to kernel taint [ 62.212436] Kernel panic - not syncing: panic_on_warn set ... [ 62.212436] [ 62.219765] CPU: 0 PID: 6617 Comm: syz-executor1 Tainted: G B 4.13.0-mm1+ #7 [ 62.228043] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 62.237360] Call Trace: [ 62.239917] dump_stack+0x194/0x257 [ 62.243514] ? arch_local_irq_restore+0x53/0x53 [ 62.248149] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 62.252873] ? __list_add_valid+0x50/0xd0 [ 62.256990] panic+0x1e4/0x417 [ 62.260152] ? __warn+0x1d9/0x1d9 [ 62.263579] ? __list_add_valid+0xb1/0xd0 [ 62.267693] kasan_end_report+0x50/0x50 [ 62.271631] kasan_report+0x137/0x340 [ 62.275400] __asan_report_load8_noabort+0x14/0x20 [ 62.280294] __list_add_valid+0xb1/0xd0 [ 62.284235] dev_add_pack+0x113/0x2b0 [ 62.288002] ? napi_skb_free_stolen_head+0x170/0x170 [ 62.293072] ? __lockdep_init_map+0xe4/0x650 [ 62.297447] ? lockdep_init_map+0x3d/0x70 [ 62.301564] register_prot_hook.part.49+0x95/0xb0 [ 62.306371] packet_create+0x820/0xb00 [ 62.310225] ? sock_destroy_inode+0x70/0x70 [ 62.314515] ? register_prot_hook.part.49+0xb0/0xb0 [ 62.319509] ? __sock_create+0x211/0x850 [ 62.323539] ? module_unload_free+0x5b0/0x5b0 [ 62.328002] ? lock_release+0xd70/0xd70 [ 62.331945] ? __lock_is_held+0xbc/0x140 [ 62.335979] __sock_create+0x4d4/0x850 [ 62.339836] ? ___sys_recvmsg+0x630/0x630 [ 62.343952] ? __fdget+0x18/0x20 [ 62.347287] ? SyS_futex+0x260/0x390 [ 62.350964] ? SyS_futex+0x269/0x390 [ 62.354644] ? SyS_setsockopt+0x215/0x360 [ 62.358764] SyS_socket+0xeb/0x200 [ 62.362276] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 62.367083] ? move_addr_to_kernel+0x60/0x60 [ 62.371455] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 62.376443] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 62.381166] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 62.385886] RIP: 0033:0x4520a9 [ 62.389042] RSP: 002b:00007f44de92bc08 EFLAGS: 00000216 ORIG_RAX: 0000000000000029 [ 62.396714] RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 00000000004520a9 [ 62.403950] RDX: 0000000000000008 RSI: 0000000000080003 RDI: 0000000000000011 [ 62.411185] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 62.418424] R10: 0000000000000000 R11: 0000000000000216 R12: 00000000004bb52e [ 62.425658] R13: 00000000ffffffff R14: 0000000000000003 R15: 0000000000000107 [ 62.433353] Dumping ftrace buffer: [ 62.436862] (ftrace buffer empty) [ 62.440537] Kernel Offset: disabled [ 62.444129] Rebooting in 86400 seconds..