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-9,10.128.0.18' (ECDSA) to the list of known hosts. 2017/09/19 08:12:53 parsed 1 programs 2017/09/19 08:12:54 executed programs: 0 syzkaller login: [ 40.273734] dev_remove_pack: ffff8801ce139500 not found [ 40.300315] ================================================================== [ 40.307759] BUG: KASAN: use-after-free in __list_add_valid+0xb1/0xd0 [ 40.314225] Read of size 8 at addr ffff8801ce0cd470 by task syz-executor7/3248 [ 40.321555] [ 40.323161] CPU: 0 PID: 3248 Comm: syz-executor7 Not tainted 4.13.0-mm1+ #7 [ 40.330232] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.339560] Call Trace: [ 40.342125] dump_stack+0x194/0x257 [ 40.345733] ? arch_local_irq_restore+0x53/0x53 [ 40.350374] ? show_regs_print_info+0x65/0x65 [ 40.354841] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 40.359835] ? __list_add_valid+0xb1/0xd0 [ 40.363957] print_address_description+0x73/0x250 [ 40.368771] ? __list_add_valid+0xb1/0xd0 [ 40.372894] kasan_report+0x24e/0x340 [ 40.376671] __asan_report_load8_noabort+0x14/0x20 [ 40.381574] __list_add_valid+0xb1/0xd0 [ 40.385527] dev_add_pack+0x113/0x2b0 [ 40.389298] ? napi_skb_free_stolen_head+0x170/0x170 [ 40.394372] ? __lockdep_init_map+0xe4/0x650 [ 40.398758] ? lockdep_init_map+0x3d/0x70 [ 40.402885] register_prot_hook.part.49+0x95/0xb0 [ 40.407704] packet_create+0x820/0xb00 [ 40.411564] ? sock_destroy_inode+0x70/0x70 [ 40.415862] ? register_prot_hook.part.49+0xb0/0xb0 [ 40.420852] ? __sock_create+0x211/0x850 [ 40.424888] ? module_unload_free+0x5b0/0x5b0 [ 40.429358] ? lock_release+0xd70/0xd70 [ 40.433308] ? __lock_is_held+0xbc/0x140 [ 40.437353] __sock_create+0x4d4/0x850 [ 40.441211] ? trace_hardirqs_off+0xd/0x10 [ 40.445421] ? ___sys_recvmsg+0x630/0x630 [ 40.449542] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 40.455049] ? __fdget+0x18/0x20 [ 40.458396] ? syscall_return_slowpath+0x2b3/0x500 [ 40.463301] SyS_socket+0xeb/0x200 [ 40.466818] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 40.471636] ? move_addr_to_kernel+0x60/0x60 [ 40.476016] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 40.481007] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 40.485744] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 40.490470] RIP: 0033:0x451e59 [ 40.493631] RSP: 002b:00007f11abe52c08 EFLAGS: 00000216 ORIG_RAX: 0000000000000029 [ 40.501314] RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 0000000000451e59 [ 40.508556] RDX: 0000000000000008 RSI: 0000000000080003 RDI: 0000000000000011 [ 40.515800] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 40.523043] R10: 0000000000000000 R11: 0000000000000216 R12: 00000000004c0160 [ 40.530283] R13: 00000000ffffffff R14: ffffffffffffffff R15: 0000000000000084 [ 40.537544] [ 40.539145] Allocated by task 3229: [ 40.542749] save_stack_trace+0x16/0x20 [ 40.546696] save_stack+0x43/0xd0 [ 40.550120] kasan_kmalloc+0xad/0xe0 [ 40.553805] kmem_cache_alloc_trace+0x136/0x750 [ 40.558446] fanout_add+0xa50/0x1190 [ 40.562128] packet_setsockopt+0xfdc/0x1e80 [ 40.566430] SyS_setsockopt+0x189/0x360 [ 40.570383] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 40.575106] [ 40.576706] Freed by task 3236: [ 40.579956] save_stack_trace+0x16/0x20 [ 40.583902] save_stack+0x43/0xd0 [ 40.587323] kasan_slab_free+0x71/0xc0 [ 40.591187] kfree+0xca/0x250 [ 40.594260] packet_release+0xa8f/0xd70 [ 40.598204] sock_release+0x8d/0x1e0 [ 40.601885] sock_close+0x16/0x20 [ 40.605309] __fput+0x333/0x7f0 [ 40.608557] ____fput+0x15/0x20 [ 40.611808] task_work_run+0x199/0x270 [ 40.615666] do_exit+0xa52/0x1b40 [ 40.619090] do_group_exit+0x149/0x400 [ 40.622949] get_signal+0x7e8/0x17e0 [ 40.626637] do_signal+0x94/0x1ee0 [ 40.630149] exit_to_usermode_loop+0x224/0x300 [ 40.634701] syscall_return_slowpath+0x42f/0x500 [ 40.639426] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 40.644151] [ 40.645753] The buggy address belongs to the object at ffff8801ce0ccbc0 [ 40.645753] which belongs to the cache kmalloc-4096 of size 4096 [ 40.658551] The buggy address is located 2224 bytes inside of [ 40.658551] 4096-byte region [ffff8801ce0ccbc0, ffff8801ce0cdbc0) [ 40.670576] The buggy address belongs to the page: [ 40.675476] page:ffffea0007383300 count:1 mapcount:0 mapping:ffff8801ce0ccbc0 index:0x0 compound_mapcount: 0 [ 40.685420] flags: 0x200000000008100(slab|head) [ 40.690061] raw: 0200000000008100 ffff8801ce0ccbc0 0000000000000000 0000000100000001 [ 40.697912] raw: ffffea0007204f20 ffff8801dac01a50 ffff8801dac00dc0 0000000000000000 [ 40.705770] page dumped because: kasan: bad access detected [ 40.711445] [ 40.713041] Memory state around the buggy address: [ 40.717940] ffff8801ce0cd300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.725468] ffff8801ce0cd380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.732798] >ffff8801ce0cd400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.740124] ^ [ 40.747104] ffff8801ce0cd480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.754431] ffff8801ce0cd500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.761760] ================================================================== [ 40.769085] Disabling lock debugging due to kernel taint [ 40.774709] Kernel panic - not syncing: panic_on_warn set ... [ 40.774709] [ 40.782042] CPU: 0 PID: 3248 Comm: syz-executor7 Tainted: G B 4.13.0-mm1+ #7 [ 40.790318] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.799639] Call Trace: [ 40.802198] dump_stack+0x194/0x257 [ 40.805794] ? arch_local_irq_restore+0x53/0x53 [ 40.810434] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 40.815162] ? __list_add_valid+0x50/0xd0 [ 40.819280] panic+0x1e4/0x417 [ 40.822439] ? __warn+0x1d9/0x1d9 [ 40.825864] ? __list_add_valid+0xb1/0xd0 [ 40.829979] kasan_end_report+0x50/0x50 [ 40.833918] kasan_report+0x137/0x340 [ 40.837695] __asan_report_load8_noabort+0x14/0x20 [ 40.842587] __list_add_valid+0xb1/0xd0 [ 40.846529] dev_add_pack+0x113/0x2b0 [ 40.850294] ? napi_skb_free_stolen_head+0x170/0x170 [ 40.855362] ? __lockdep_init_map+0xe4/0x650 [ 40.859736] ? lockdep_init_map+0x3d/0x70 [ 40.863855] register_prot_hook.part.49+0x95/0xb0 [ 40.868665] packet_create+0x820/0xb00 [ 40.872519] ? sock_destroy_inode+0x70/0x70 [ 40.876807] ? register_prot_hook.part.49+0xb0/0xb0 [ 40.881789] ? __sock_create+0x211/0x850 [ 40.885822] ? module_unload_free+0x5b0/0x5b0 [ 40.890285] ? lock_release+0xd70/0xd70 [ 40.894228] ? __lock_is_held+0xbc/0x140 [ 40.898260] __sock_create+0x4d4/0x850 [ 40.902113] ? trace_hardirqs_off+0xd/0x10 [ 40.906314] ? ___sys_recvmsg+0x630/0x630 [ 40.910428] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 40.915933] ? __fdget+0x18/0x20 [ 40.919268] ? syscall_return_slowpath+0x2b3/0x500 [ 40.924166] SyS_socket+0xeb/0x200 [ 40.927672] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 40.932478] ? move_addr_to_kernel+0x60/0x60 [ 40.936851] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 40.941834] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 40.946557] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 40.951278] RIP: 0033:0x451e59 [ 40.954433] RSP: 002b:00007f11abe52c08 EFLAGS: 00000216 ORIG_RAX: 0000000000000029 [ 40.962103] RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 0000000000451e59 [ 40.969339] RDX: 0000000000000008 RSI: 0000000000080003 RDI: 0000000000000011 [ 40.976576] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 40.983810] R10: 0000000000000000 R11: 0000000000000216 R12: 00000000004c0160 [ 40.991044] R13: 00000000ffffffff R14: ffffffffffffffff R15: 0000000000000084 [ 40.998643] Dumping ftrace buffer: [ 41.002153] (ftrace buffer empty) [ 41.005831] Kernel Offset: disabled [ 41.009424] Rebooting in 86400 seconds..