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-net-kasan-gce-5,10.128.15.197' (ECDSA) to the list of known hosts. 2017/09/13 18:51:46 parsed 1 programs 2017/09/13 18:51:46 executed programs: 0 syzkaller login: [ 38.277702] dev_remove_pack: ffff8801c905ec40 not found [ 38.311268] ================================================================== [ 38.318661] BUG: KASAN: use-after-free in __list_add_valid+0xb1/0xd0 [ 38.325124] Read of size 8 at addr ffff8801c90c9770 by task syz-executor0/3412 [ 38.332457] [ 38.334058] CPU: 1 PID: 3412 Comm: syz-executor0 Not tainted 4.13.0+ #43 [ 38.340867] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.350191] Call Trace: [ 38.352752] dump_stack+0x194/0x257 [ 38.356355] ? arch_local_irq_restore+0x53/0x53 [ 38.361000] ? show_regs_print_info+0x65/0x65 [ 38.365467] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 38.370463] ? __list_add_valid+0xb1/0xd0 [ 38.374591] print_address_description+0x73/0x250 [ 38.379406] ? __list_add_valid+0xb1/0xd0 [ 38.383532] kasan_report+0x24e/0x340 [ 38.387315] __asan_report_load8_noabort+0x14/0x20 [ 38.392218] __list_add_valid+0xb1/0xd0 [ 38.396170] dev_add_pack+0x113/0x2b0 [ 38.399942] ? napi_skb_free_stolen_head+0x170/0x170 [ 38.405017] ? __lockdep_init_map+0xe4/0x650 [ 38.409400] ? lockdep_init_map+0x3d/0x70 [ 38.413527] register_prot_hook.part.49+0x95/0xb0 [ 38.418342] packet_create+0x820/0xb00 [ 38.422211] ? sock_destroy_inode+0x70/0x70 [ 38.426519] ? register_prot_hook.part.49+0xb0/0xb0 [ 38.431518] ? __sock_create+0x211/0x850 [ 38.435555] ? module_unload_free+0x5b0/0x5b0 [ 38.440031] ? lock_release+0xd70/0xd70 [ 38.443979] ? __lock_is_held+0xbc/0x140 [ 38.448025] __sock_create+0x4d4/0x850 [ 38.451880] ? ___sys_recvmsg+0x630/0x630 [ 38.456004] ? ___sys_recvmsg+0x630/0x630 [ 38.460124] ? __fdget+0x18/0x20 [ 38.463467] ? SyS_futex+0x260/0x390 [ 38.467150] ? SyS_futex+0x269/0x390 [ 38.470842] SyS_socket+0xeb/0x200 [ 38.474355] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 38.479169] ? move_addr_to_kernel+0x60/0x60 [ 38.483547] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 38.488553] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 38.493296] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 38.498031] RIP: 0033:0x451e59 [ 38.501193] RSP: 002b:00007ffb813bfc08 EFLAGS: 00000216 ORIG_RAX: 0000000000000029 [ 38.508878] RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 0000000000451e59 [ 38.516126] RDX: 0000000000000300 RSI: 0000000000000802 RDI: 0000000000000011 [ 38.523381] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 38.530646] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 38.537888] R13: 0000000000a6f7ef R14: 00007ffb813c09c0 R15: 0000000000000000 [ 38.545155] [ 38.546760] Allocated by task 3408: [ 38.550365] save_stack_trace+0x16/0x20 [ 38.554313] save_stack+0x43/0xd0 [ 38.557734] kasan_kmalloc+0xad/0xe0 [ 38.561416] kmem_cache_alloc_trace+0x136/0x750 [ 38.566053] fanout_add+0xa50/0x1190 [ 38.569734] packet_setsockopt+0xfdc/0x1e80 [ 38.574025] SyS_setsockopt+0x189/0x360 [ 38.577968] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 38.582689] [ 38.584288] Freed by task 3405: [ 38.587538] save_stack_trace+0x16/0x20 [ 38.591494] save_stack+0x43/0xd0 [ 38.594917] kasan_slab_free+0x71/0xc0 [ 38.598775] kfree+0xca/0x250 [ 38.601849] packet_release+0xa8f/0xd70 [ 38.605795] sock_release+0x8d/0x1e0 [ 38.609488] sock_close+0x16/0x20 [ 38.612913] __fput+0x333/0x7f0 [ 38.616161] ____fput+0x15/0x20 [ 38.619410] task_work_run+0x199/0x270 [ 38.623268] do_exit+0xa52/0x1b40 [ 38.626696] do_group_exit+0x149/0x400 [ 38.630555] get_signal+0x7e8/0x17e0 [ 38.634239] do_signal+0x94/0x1ee0 [ 38.637749] exit_to_usermode_loop+0x224/0x300 [ 38.642302] syscall_return_slowpath+0x42f/0x500 [ 38.647034] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 38.651771] [ 38.653370] The buggy address belongs to the object at ffff8801c90c8ec0 [ 38.653370] which belongs to the cache kmalloc-4096 of size 4096 [ 38.666169] The buggy address is located 2224 bytes inside of [ 38.666169] 4096-byte region [ffff8801c90c8ec0, ffff8801c90c9ec0) [ 38.678184] The buggy address belongs to the page: [ 38.683084] page:ffffea0007243200 count:1 mapcount:0 mapping:ffff8801c90c8ec0 index:0x0 compound_mapcount: 0 [ 38.693029] flags: 0x200000000008100(slab|head) [ 38.697669] raw: 0200000000008100 ffff8801c90c8ec0 0000000000000000 0000000100000001 [ 38.705523] raw: ffffea0007243420 ffffea0007242f20 ffff8801dac00dc0 0000000000000000 [ 38.713372] page dumped because: kasan: bad access detected [ 38.719047] [ 38.720642] Memory state around the buggy address: [ 38.725539] ffff8801c90c9600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.732868] ffff8801c90c9680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.740197] >ffff8801c90c9700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.747526] ^ [ 38.754509] ffff8801c90c9780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.761839] ffff8801c90c9800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.769164] ================================================================== [ 38.776490] Disabling lock debugging due to kernel taint [ 38.782088] Kernel panic - not syncing: panic_on_warn set ... [ 38.782088] [ 38.789421] CPU: 1 PID: 3412 Comm: syz-executor0 Tainted: G B 4.13.0+ #43 [ 38.797438] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.806759] Call Trace: [ 38.809315] dump_stack+0x194/0x257 [ 38.812908] ? arch_local_irq_restore+0x53/0x53 [ 38.817542] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 38.822266] ? __list_add_valid+0xa0/0xd0 [ 38.826381] panic+0x1e4/0x417 [ 38.829539] ? __warn+0x1d9/0x1d9 [ 38.832962] ? __list_add_valid+0xb1/0xd0 [ 38.837075] kasan_end_report+0x50/0x50 [ 38.841014] kasan_report+0x137/0x340 [ 38.844782] __asan_report_load8_noabort+0x14/0x20 [ 38.849673] __list_add_valid+0xb1/0xd0 [ 38.853613] dev_add_pack+0x113/0x2b0 [ 38.857379] ? napi_skb_free_stolen_head+0x170/0x170 [ 38.862457] ? __lockdep_init_map+0xe4/0x650 [ 38.866834] ? lockdep_init_map+0x3d/0x70 [ 38.870951] register_prot_hook.part.49+0x95/0xb0 [ 38.875756] packet_create+0x820/0xb00 [ 38.879609] ? sock_destroy_inode+0x70/0x70 [ 38.883898] ? register_prot_hook.part.49+0xb0/0xb0 [ 38.888878] ? __sock_create+0x211/0x850 [ 38.892905] ? module_unload_free+0x5b0/0x5b0 [ 38.897366] ? lock_release+0xd70/0xd70 [ 38.901392] ? __lock_is_held+0xbc/0x140 [ 38.905436] __sock_create+0x4d4/0x850 [ 38.909287] ? ___sys_recvmsg+0x630/0x630 [ 38.913400] ? ___sys_recvmsg+0x630/0x630 [ 38.917513] ? __fdget+0x18/0x20 [ 38.920845] ? SyS_futex+0x260/0x390 [ 38.924707] ? SyS_futex+0x269/0x390 [ 38.928388] SyS_socket+0xeb/0x200 [ 38.931895] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 38.936714] ? move_addr_to_kernel+0x60/0x60 [ 38.941085] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 38.946069] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 38.950798] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 38.955518] RIP: 0033:0x451e59 [ 38.958674] RSP: 002b:00007ffb813bfc08 EFLAGS: 00000216 ORIG_RAX: 0000000000000029 [ 38.966355] RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 0000000000451e59 [ 38.973590] RDX: 0000000000000300 RSI: 0000000000000802 RDI: 0000000000000011 [ 38.981517] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 38.988752] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 38.995987] R13: 0000000000a6f7ef R14: 00007ffb813c09c0 R15: 0000000000000000 [ 39.003593] Dumping ftrace buffer: [ 39.007100] (ftrace buffer empty) [ 39.010774] Kernel Offset: disabled [ 39.014370] Rebooting in 86400 seconds..