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-5,10.128.0.9' (ECDSA) to the list of known hosts. 2017/09/21 13:07:47 parsed 1 programs 2017/09/21 13:07:47 executed programs: 0 syzkaller login: [ 43.004655] dev_remove_pack: ffff8801c8402880 not found [ 43.037442] ================================================================== [ 43.044872] BUG: KASAN: use-after-free in __list_add_valid+0xb1/0xd0 [ 43.051346] Read of size 8 at addr ffff8801ca0a73b0 by task syz-executor0/3440 [ 43.058675] [ 43.060283] CPU: 1 PID: 3440 Comm: syz-executor0 Not tainted 4.13.0-mm1+ #7 [ 43.067362] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.076690] Call Trace: [ 43.079258] dump_stack+0x194/0x257 [ 43.082866] ? arch_local_irq_restore+0x53/0x53 [ 43.087509] ? show_regs_print_info+0x65/0x65 [ 43.091977] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 43.096971] ? __list_add_valid+0xb1/0xd0 [ 43.101095] print_address_description+0x73/0x250 [ 43.105909] ? __list_add_valid+0xb1/0xd0 [ 43.110029] kasan_report+0x24e/0x340 [ 43.113806] __asan_report_load8_noabort+0x14/0x20 [ 43.118721] __list_add_valid+0xb1/0xd0 [ 43.122678] dev_add_pack+0x113/0x2b0 [ 43.126454] ? napi_skb_free_stolen_head+0x170/0x170 [ 43.131530] ? __lockdep_init_map+0xe4/0x650 [ 43.135923] ? lockdep_init_map+0x3d/0x70 [ 43.140051] register_prot_hook.part.49+0x95/0xb0 [ 43.144865] packet_create+0x820/0xb00 [ 43.148728] ? sock_destroy_inode+0x70/0x70 [ 43.153027] ? register_prot_hook.part.49+0xb0/0xb0 [ 43.158017] ? __sock_create+0x211/0x850 [ 43.162052] ? module_unload_free+0x5b0/0x5b0 [ 43.166532] ? lock_release+0xd70/0xd70 [ 43.170481] ? __lock_is_held+0xbc/0x140 [ 43.174526] __sock_create+0x4d4/0x850 [ 43.179167] ? ___sys_recvmsg+0x630/0x630 [ 43.183292] ? ___sys_recvmsg+0x630/0x630 [ 43.187418] ? __fdget+0x18/0x20 [ 43.190763] ? SyS_futex+0x260/0x390 [ 43.194450] ? SyS_futex+0x269/0x390 [ 43.198151] SyS_socket+0xeb/0x200 [ 43.201667] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 43.206483] ? move_addr_to_kernel+0x60/0x60 [ 43.210875] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 43.215866] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 43.220601] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 43.225330] RIP: 0033:0x4520a9 [ 43.228504] RSP: 002b:00007f4390801c08 EFLAGS: 00000216 ORIG_RAX: 0000000000000029 [ 43.236188] RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 00000000004520a9 [ 43.243433] RDX: 0000000000000300 RSI: 0000000000000802 RDI: 0000000000000011 [ 43.250676] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 43.257916] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 43.265157] R13: 0000000000a6f7ef R14: 00007f43908029c0 R15: 0000000000000000 [ 43.272415] [ 43.274015] Allocated by task 3436: [ 43.277616] save_stack_trace+0x16/0x20 [ 43.281562] save_stack+0x43/0xd0 [ 43.284996] kasan_kmalloc+0xad/0xe0 [ 43.288680] kmem_cache_alloc_trace+0x136/0x750 [ 43.293319] fanout_add+0xa50/0x1190 [ 43.297003] packet_setsockopt+0xfdc/0x1e80 [ 43.301294] SyS_setsockopt+0x189/0x360 [ 43.305240] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 43.309963] [ 43.311563] Freed by task 3433: [ 43.314811] save_stack_trace+0x16/0x20 [ 43.318753] save_stack+0x43/0xd0 [ 43.322188] kasan_slab_free+0x71/0xc0 [ 43.326046] kfree+0xca/0x250 [ 43.329122] packet_release+0xa8f/0xd70 [ 43.333069] sock_release+0x8d/0x1e0 [ 43.336752] sock_close+0x16/0x20 [ 43.340175] __fput+0x333/0x7f0 [ 43.343425] ____fput+0x15/0x20 [ 43.346677] task_work_run+0x199/0x270 [ 43.350537] do_exit+0xa52/0x1b40 [ 43.353963] do_group_exit+0x149/0x400 [ 43.357820] get_signal+0x7e8/0x17e0 [ 43.361508] do_signal+0x94/0x1ee0 [ 43.365024] exit_to_usermode_loop+0x224/0x300 [ 43.369577] syscall_return_slowpath+0x42f/0x500 [ 43.374307] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 43.379031] [ 43.380629] The buggy address belongs to the object at ffff8801ca0a6b00 [ 43.380629] which belongs to the cache kmalloc-4096 of size 4096 [ 43.393429] The buggy address is located 2224 bytes inside of [ 43.393429] 4096-byte region [ffff8801ca0a6b00, ffff8801ca0a7b00) [ 43.405444] The buggy address belongs to the page: [ 43.410342] page:ffffea0007282980 count:1 mapcount:0 mapping:ffff8801ca0a6b00 index:0x0 compound_mapcount: 0 [ 43.420285] flags: 0x200000000008100(slab|head) [ 43.424926] raw: 0200000000008100 ffff8801ca0a6b00 0000000000000000 0000000100000001 [ 43.432778] raw: ffffea00072828a0 ffffea00072834a0 ffff8801dac00dc0 0000000000000000 [ 43.440633] page dumped because: kasan: bad access detected [ 43.446311] [ 43.447909] Memory state around the buggy address: [ 43.452805] ffff8801ca0a7280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.460139] ffff8801ca0a7300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.467469] >ffff8801ca0a7380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.474798] ^ [ 43.479696] ffff8801ca0a7400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.487024] ffff8801ca0a7480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.494350] ================================================================== [ 43.501679] Disabling lock debugging due to kernel taint [ 43.507196] Kernel panic - not syncing: panic_on_warn set ... [ 43.507196] [ 43.514531] CPU: 1 PID: 3440 Comm: syz-executor0 Tainted: G B 4.13.0-mm1+ #7 [ 43.522814] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.532137] Call Trace: [ 43.534698] dump_stack+0x194/0x257 [ 43.538300] ? arch_local_irq_restore+0x53/0x53 [ 43.542937] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 43.547670] ? __list_add_valid+0x50/0xd0 [ 43.551782] panic+0x1e4/0x417 [ 43.554955] ? __warn+0x1d9/0x1d9 [ 43.558377] ? __list_add_valid+0xb1/0xd0 [ 43.562491] kasan_end_report+0x50/0x50 [ 43.566426] kasan_report+0x137/0x340 [ 43.570193] __asan_report_load8_noabort+0x14/0x20 [ 43.575085] __list_add_valid+0xb1/0xd0 [ 43.579025] dev_add_pack+0x113/0x2b0 [ 43.582794] ? napi_skb_free_stolen_head+0x170/0x170 [ 43.587860] ? __lockdep_init_map+0xe4/0x650 [ 43.592237] ? lockdep_init_map+0x3d/0x70 [ 43.596354] register_prot_hook.part.49+0x95/0xb0 [ 43.601162] packet_create+0x820/0xb00 [ 43.605016] ? sock_destroy_inode+0x70/0x70 [ 43.609303] ? register_prot_hook.part.49+0xb0/0xb0 [ 43.614283] ? __sock_create+0x211/0x850 [ 43.618312] ? module_unload_free+0x5b0/0x5b0 [ 43.622772] ? lock_release+0xd70/0xd70 [ 43.626714] ? __lock_is_held+0xbc/0x140 [ 43.630744] __sock_create+0x4d4/0x850 [ 43.634596] ? ___sys_recvmsg+0x630/0x630 [ 43.638710] ? ___sys_recvmsg+0x630/0x630 [ 43.642824] ? __fdget+0x18/0x20 [ 43.646157] ? SyS_futex+0x260/0x390 [ 43.649834] ? SyS_futex+0x269/0x390 [ 43.653514] SyS_socket+0xeb/0x200 [ 43.657019] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 43.661825] ? move_addr_to_kernel+0x60/0x60 [ 43.666203] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 43.671184] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 43.675907] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 43.680626] RIP: 0033:0x4520a9 [ 43.683779] RSP: 002b:00007f4390801c08 EFLAGS: 00000216 ORIG_RAX: 0000000000000029 [ 43.691449] RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 00000000004520a9 [ 43.698682] RDX: 0000000000000300 RSI: 0000000000000802 RDI: 0000000000000011 [ 43.705915] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 43.713147] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 43.720380] R13: 0000000000a6f7ef R14: 00007f43908029c0 R15: 0000000000000000 [ 43.727656] Dumping ftrace buffer: [ 43.731162] (ftrace buffer empty) [ 43.734839] Kernel Offset: disabled [ 43.738434] Rebooting in 86400 seconds..