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-kasan-gce-5,10.128.0.20' (ECDSA) to the list of known hosts. 2017/09/13 19:07:53 parsed 1 programs 2017/09/13 19:07:53 executed programs: 0 2017/09/13 19:07:58 executed programs: 104 syzkaller login: [ 49.325692] dev_remove_pack: ffff8801c3939e00 not found [ 49.360490] ================================================================== [ 49.367879] BUG: KASAN: use-after-free in __list_add_valid+0xb1/0xd0 [ 49.374342] Read of size 8 at addr ffff8801c393ad30 by task syz-executor0/4028 [ 49.381669] [ 49.383272] CPU: 0 PID: 4028 Comm: syz-executor0 Not tainted 4.13.0+ #82 [ 49.390079] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 49.399404] Call Trace: [ 49.401965] dump_stack+0x194/0x257 [ 49.405569] ? arch_local_irq_restore+0x53/0x53 [ 49.410211] ? show_regs_print_info+0x65/0x65 [ 49.414677] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 49.419669] ? __list_add_valid+0xb1/0xd0 [ 49.423790] print_address_description+0x73/0x250 [ 49.428607] ? __list_add_valid+0xb1/0xd0 [ 49.432726] kasan_report+0x24e/0x340 [ 49.436503] __asan_report_load8_noabort+0x14/0x20 [ 49.441403] __list_add_valid+0xb1/0xd0 [ 49.445352] dev_add_pack+0x113/0x2b0 [ 49.449128] ? napi_skb_free_stolen_head+0x170/0x170 [ 49.454201] ? __lockdep_init_map+0xe4/0x650 [ 49.458588] ? lockdep_init_map+0x3d/0x70 [ 49.462714] register_prot_hook.part.49+0x95/0xb0 [ 49.467529] packet_create+0x820/0xb00 [ 49.471390] ? sock_destroy_inode+0x70/0x70 [ 49.475686] ? register_prot_hook.part.49+0xb0/0xb0 [ 49.480676] ? __sock_create+0x211/0x850 [ 49.484712] ? module_unload_free+0x5b0/0x5b0 [ 49.489182] ? lock_release+0xd70/0xd70 [ 49.493134] ? __lock_is_held+0xbc/0x140 [ 49.497178] __sock_create+0x4d4/0x850 [ 49.501035] ? ___sys_recvmsg+0x630/0x630 [ 49.505163] ? ___sys_recvmsg+0x630/0x630 [ 49.509284] ? __fdget+0x18/0x20 [ 49.512626] ? SyS_futex+0x260/0x390 [ 49.516311] ? SyS_futex+0x269/0x390 [ 49.520091] SyS_socket+0xeb/0x200 [ 49.523605] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 49.528420] ? move_addr_to_kernel+0x60/0x60 [ 49.532801] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 49.537790] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 49.542534] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 49.547263] RIP: 0033:0x451e59 [ 49.550424] RSP: 002b:00007f289350fc08 EFLAGS: 00000216 ORIG_RAX: 0000000000000029 [ 49.558107] RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 0000000000451e59 [ 49.565358] RDX: 0000000000000300 RSI: 0000000000000802 RDI: 0000000000000011 [ 49.572602] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 49.579843] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 49.587092] R13: 0000000000a6f7ef R14: 00007f28935109c0 R15: 0000000000000000 [ 49.594359] [ 49.595959] Allocated by task 4024: [ 49.599564] save_stack_trace+0x16/0x20 [ 49.603511] save_stack+0x43/0xd0 [ 49.606936] kasan_kmalloc+0xad/0xe0 [ 49.610620] kmem_cache_alloc_trace+0x136/0x750 [ 49.615261] fanout_add+0xa50/0x1190 [ 49.618956] packet_setsockopt+0xfdc/0x1e80 [ 49.623250] SyS_setsockopt+0x189/0x360 [ 49.627195] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 49.631920] [ 49.633520] Freed by task 4021: [ 49.636768] save_stack_trace+0x16/0x20 [ 49.640715] save_stack+0x43/0xd0 [ 49.644139] kasan_slab_free+0x71/0xc0 [ 49.647996] kfree+0xca/0x250 [ 49.651072] packet_release+0xa8f/0xd70 [ 49.655017] sock_release+0x8d/0x1e0 [ 49.658705] sock_close+0x16/0x20 [ 49.662140] __fput+0x333/0x7f0 [ 49.665389] ____fput+0x15/0x20 [ 49.668642] task_work_run+0x199/0x270 [ 49.672500] do_exit+0xa52/0x1b40 [ 49.675922] do_group_exit+0x149/0x400 [ 49.679781] get_signal+0x7e8/0x17e0 [ 49.683467] do_signal+0x94/0x1ee0 [ 49.686977] exit_to_usermode_loop+0x224/0x300 [ 49.691531] syscall_return_slowpath+0x42f/0x500 [ 49.696259] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 49.700984] [ 49.702587] The buggy address belongs to the object at ffff8801c393a480 [ 49.702587] which belongs to the cache kmalloc-4096 of size 4096 [ 49.715385] The buggy address is located 2224 bytes inside of [ 49.715385] 4096-byte region [ffff8801c393a480, ffff8801c393b480) [ 49.727404] The buggy address belongs to the page: [ 49.732304] page:ffffea00070e4e80 count:1 mapcount:0 mapping:ffff8801c393a480 index:0x0 compound_mapcount: 0 [ 49.742250] flags: 0x200000000008100(slab|head) [ 49.746896] raw: 0200000000008100 ffff8801c393a480 0000000000000000 0000000100000001 [ 49.754752] raw: ffffea00070fa420 ffffea00070e79a0 ffff8801dac00dc0 0000000000000000 [ 49.762603] page dumped because: kasan: bad access detected [ 49.768283] [ 49.769880] Memory state around the buggy address: [ 49.774783] ffff8801c393ac00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.782115] ffff8801c393ac80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.789444] >ffff8801c393ad00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.796770] ^ [ 49.801669] ffff8801c393ad80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.808998] ffff8801c393ae00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.816324] ================================================================== [ 49.823650] Disabling lock debugging due to kernel taint [ 49.829161] Kernel panic - not syncing: panic_on_warn set ... [ 49.829161] [ 49.836492] CPU: 0 PID: 4028 Comm: syz-executor0 Tainted: G B 4.13.0+ #82 [ 49.844514] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 49.853834] Call Trace: [ 49.856389] dump_stack+0x194/0x257 [ 49.859983] ? arch_local_irq_restore+0x53/0x53 [ 49.864621] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 49.869347] ? __list_add_valid+0x80/0xd0 [ 49.873467] panic+0x1e4/0x417 [ 49.876624] ? __warn+0x1d9/0x1d9 [ 49.880062] ? __list_add_valid+0xb1/0xd0 [ 49.884176] kasan_end_report+0x50/0x50 [ 49.888115] kasan_report+0x137/0x340 [ 49.891880] __asan_report_load8_noabort+0x14/0x20 [ 49.896775] __list_add_valid+0xb1/0xd0 [ 49.900714] dev_add_pack+0x113/0x2b0 [ 49.904479] ? napi_skb_free_stolen_head+0x170/0x170 [ 49.909548] ? __lockdep_init_map+0xe4/0x650 [ 49.913920] ? lockdep_init_map+0x3d/0x70 [ 49.918035] register_prot_hook.part.49+0x95/0xb0 [ 49.922841] packet_create+0x820/0xb00 [ 49.926696] ? sock_destroy_inode+0x70/0x70 [ 49.930983] ? register_prot_hook.part.49+0xb0/0xb0 [ 49.935965] ? __sock_create+0x211/0x850 [ 49.939991] ? module_unload_free+0x5b0/0x5b0 [ 49.944450] ? lock_release+0xd70/0xd70 [ 49.948392] ? __lock_is_held+0xbc/0x140 [ 49.952421] __sock_create+0x4d4/0x850 [ 49.956270] ? ___sys_recvmsg+0x630/0x630 [ 49.960382] ? ___sys_recvmsg+0x630/0x630 [ 49.964495] ? __fdget+0x18/0x20 [ 49.967827] ? SyS_futex+0x260/0x390 [ 49.971503] ? SyS_futex+0x269/0x390 [ 49.975187] SyS_socket+0xeb/0x200 [ 49.978696] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 49.983505] ? move_addr_to_kernel+0x60/0x60 [ 49.987877] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 49.992857] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 49.997581] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 50.002301] RIP: 0033:0x451e59 [ 50.005454] RSP: 002b:00007f289350fc08 EFLAGS: 00000216 ORIG_RAX: 0000000000000029 [ 50.013127] RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 0000000000451e59 [ 50.020361] RDX: 0000000000000300 RSI: 0000000000000802 RDI: 0000000000000011 [ 50.027595] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 50.034829] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 50.042067] R13: 0000000000a6f7ef R14: 00007f28935109c0 R15: 0000000000000000 [ 50.049340] Dumping ftrace buffer: [ 50.052845] (ftrace buffer empty) [ 50.056530] Kernel Offset: disabled [ 50.060126] Rebooting in 86400 seconds..