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-9,10.128.15.200' (ECDSA) to the list of known hosts. 2017/09/03 21:16:38 parsed 1 programs 2017/09/03 21:16:38 executed programs: 0 syzkaller login: [ 46.808860] dev_remove_pack: ffff8801c7041b80 not found [ 46.853210] ================================================================== [ 46.860638] BUG: KASAN: use-after-free in __list_add_valid+0xb1/0xd0 [ 46.867117] Read of size 8 at addr ffff8801c7042b70 by task syz-executor2/3397 [ 46.874468] [ 46.876094] CPU: 0 PID: 3397 Comm: syz-executor2 Not tainted 4.13.0-rc7-next-20170901+ #13 [ 46.884502] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.893849] Call Trace: [ 46.896432] dump_stack+0x194/0x257 [ 46.900055] ? arch_local_irq_restore+0x53/0x53 [ 46.904713] ? show_regs_print_info+0x65/0x65 [ 46.909197] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 46.914216] ? __list_add_valid+0xb1/0xd0 [ 46.918357] print_address_description+0x73/0x250 [ 46.923192] ? __list_add_valid+0xb1/0xd0 [ 46.927340] kasan_report+0x24e/0x340 [ 46.931141] __asan_report_load8_noabort+0x14/0x20 [ 46.936065] __list_add_valid+0xb1/0xd0 [ 46.940045] dev_add_pack+0x113/0x2b0 [ 46.943847] ? napi_skb_free_stolen_head+0x170/0x170 [ 46.948940] ? __lockdep_init_map+0xe4/0x650 [ 46.953343] ? lockdep_init_map+0x3d/0x70 [ 46.957505] register_prot_hook.part.49+0x95/0xb0 [ 46.962350] packet_create+0x820/0xb00 [ 46.966224] ? sock_destroy_inode+0x70/0x70 [ 46.970538] ? register_prot_hook.part.49+0xb0/0xb0 [ 46.975572] ? __sock_create+0x211/0x850 [ 46.979628] ? module_unload_free+0x5b0/0x5b0 [ 46.984124] ? lock_release+0xd70/0xd70 [ 46.988094] ? __lock_is_held+0xbc/0x140 [ 46.992172] __sock_create+0x4d4/0x850 [ 46.996051] ? trace_hardirqs_off+0xd/0x10 [ 47.000288] ? ___sys_recvmsg+0x630/0x630 [ 47.004427] ? __fdget+0x18/0x20 [ 47.007798] ? SyS_futex+0x260/0x390 [ 47.011508] ? SyS_futex+0x269/0x390 [ 47.015215] ? SyS_setsockopt+0x215/0x360 [ 47.019363] SyS_socket+0xeb/0x200 [ 47.022894] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 47.027730] ? move_addr_to_kernel+0x60/0x60 [ 47.032141] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 47.037151] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 47.041912] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 47.046659] RIP: 0033:0x451e59 [ 47.049853] RSP: 002b:00007f467c968c08 EFLAGS: 00000216 ORIG_RAX: 0000000000000029 [ 47.057565] RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 0000000000451e59 [ 47.064822] RDX: 0000000000000008 RSI: 0000000000080003 RDI: 0000000000000011 [ 47.072094] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 47.079353] R10: 0000000000000000 R11: 0000000000000216 R12: 00000000004b7d9c [ 47.086611] R13: 00000000ffffffff R14: 0000000020000000 R15: 0000000000fff000 [ 47.093903] [ 47.095522] Allocated by task 3377: [ 47.099138] save_stack_trace+0x16/0x20 [ 47.103103] save_stack+0x43/0xd0 [ 47.106544] kasan_kmalloc+0xad/0xe0 [ 47.110244] kmem_cache_alloc_trace+0x136/0x750 [ 47.114901] fanout_add+0xa50/0x1190 [ 47.118604] packet_setsockopt+0xfdc/0x1e80 [ 47.122914] SyS_setsockopt+0x189/0x360 [ 47.126878] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 47.131614] [ 47.133228] Freed by task 3394: [ 47.136496] save_stack_trace+0x16/0x20 [ 47.140458] save_stack+0x43/0xd0 [ 47.143896] kasan_slab_free+0x71/0xc0 [ 47.147770] kfree+0xca/0x250 [ 47.150869] packet_release+0xa8f/0xd70 [ 47.154847] sock_release+0x8d/0x1e0 [ 47.158557] sock_close+0x16/0x20 [ 47.161995] __fput+0x333/0x7f0 [ 47.165270] ____fput+0x15/0x20 [ 47.168550] task_work_run+0x199/0x270 [ 47.172422] do_exit+0xa52/0x1b40 [ 47.175861] do_group_exit+0x149/0x400 [ 47.179738] get_signal+0x7e8/0x17e0 [ 47.183440] do_signal+0x94/0x1ee0 [ 47.186980] exit_to_usermode_loop+0x224/0x300 [ 47.191549] syscall_return_slowpath+0x42f/0x500 [ 47.196295] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 47.201033] [ 47.202652] The buggy address belongs to the object at ffff8801c70422c0 [ 47.202652] which belongs to the cache kmalloc-4096 of size 4096 [ 47.215473] The buggy address is located 2224 bytes inside of [ 47.215473] 4096-byte region [ffff8801c70422c0, ffff8801c70432c0) [ 47.227506] The buggy address belongs to the page: [ 47.232427] page:ffffea00071c1080 count:1 mapcount:0 mapping:ffff8801c70422c0 index:0x0 compound_mapcount: 0 [ 47.242400] flags: 0x200000000008100(slab|head) [ 47.247059] raw: 0200000000008100 ffff8801c70422c0 0000000000000000 0000000100000001 [ 47.254931] raw: ffffea00071c2b20 ffff8801dac01a50 ffff8801dac00dc0 0000000000000000 [ 47.262805] page dumped because: kasan: bad access detected [ 47.268503] [ 47.270125] Memory state around the buggy address: [ 47.275042] ffff8801c7042a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.282394] ffff8801c7042a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.289759] >ffff8801c7042b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.297141] ^ [ 47.304336] ffff8801c7042b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.311691] ffff8801c7042c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.319041] ================================================================== [ 47.326390] Disabling lock debugging due to kernel taint [ 47.332245] Kernel panic - not syncing: panic_on_warn set ... [ 47.332245] [ 47.339618] CPU: 0 PID: 3397 Comm: syz-executor2 Tainted: G B 4.13.0-rc7-next-20170901+ #13 [ 47.349229] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 47.358567] Call Trace: [ 47.361143] dump_stack+0x194/0x257 [ 47.364752] ? arch_local_irq_restore+0x53/0x53 [ 47.369416] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 47.374154] ? __list_add_valid+0x70/0xd0 [ 47.378280] panic+0x1e4/0x417 [ 47.381453] ? __warn+0x1d9/0x1d9 [ 47.384899] ? __list_add_valid+0xb1/0xd0 [ 47.389027] kasan_end_report+0x50/0x50 [ 47.392979] kasan_report+0x137/0x340 [ 47.396760] __asan_report_load8_noabort+0x14/0x20 [ 47.401666] __list_add_valid+0xb1/0xd0 [ 47.405619] dev_add_pack+0x113/0x2b0 [ 47.409396] ? napi_skb_free_stolen_head+0x170/0x170 [ 47.414477] ? __lockdep_init_map+0xe4/0x650 [ 47.418876] ? lockdep_init_map+0x3d/0x70 [ 47.423010] register_prot_hook.part.49+0x95/0xb0 [ 47.427840] packet_create+0x820/0xb00 [ 47.431705] ? sock_destroy_inode+0x70/0x70 [ 47.436010] ? register_prot_hook.part.49+0xb0/0xb0 [ 47.441012] ? __sock_create+0x211/0x850 [ 47.445055] ? module_unload_free+0x5b0/0x5b0 [ 47.449531] ? lock_release+0xd70/0xd70 [ 47.453484] ? __lock_is_held+0xbc/0x140 [ 47.457620] __sock_create+0x4d4/0x850 [ 47.461487] ? trace_hardirqs_off+0xd/0x10 [ 47.465704] ? ___sys_recvmsg+0x630/0x630 [ 47.469833] ? __fdget+0x18/0x20 [ 47.473182] ? SyS_futex+0x260/0x390 [ 47.476871] ? SyS_futex+0x269/0x390 [ 47.480565] ? SyS_setsockopt+0x215/0x360 [ 47.484699] SyS_socket+0xeb/0x200 [ 47.488230] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 47.493054] ? move_addr_to_kernel+0x60/0x60 [ 47.497438] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 47.502443] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 47.507186] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 47.511920] RIP: 0033:0x451e59 [ 47.515085] RSP: 002b:00007f467c968c08 EFLAGS: 00000216 ORIG_RAX: 0000000000000029 [ 47.522772] RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 0000000000451e59 [ 47.530029] RDX: 0000000000000008 RSI: 0000000000080003 RDI: 0000000000000011 [ 47.537278] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 47.544526] R10: 0000000000000000 R11: 0000000000000216 R12: 00000000004b7d9c [ 47.551773] R13: 00000000ffffffff R14: 0000000020000000 R15: 0000000000fff000 [ 47.559328] Dumping ftrace buffer: [ 47.562853] (ftrace buffer empty) [ 47.566532] Kernel Offset: disabled [ 47.570131] Rebooting in 86400 seconds..