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-2,10.128.0.55' (ECDSA) to the list of known hosts. 2017/09/05 11:43:32 parsed 1 programs 2017/09/05 11:43:32 executed programs: 0 syzkaller login: [ 126.737254] syz-executor4 uses obsolete (PF_INET,SOCK_PACKET) 2017/09/05 11:43:37 executed programs: 194 2017/09/05 11:43:42 executed programs: 398 [ 139.364961] dev_remove_pack: ffff8801c518acc0 not found [ 139.415439] ================================================================== [ 139.422867] BUG: KASAN: use-after-free in __dev_remove_pack+0x305/0x3b0 [ 139.429616] Read of size 8 at addr ffff8801c49154a8 by task syz-executor6/6434 [ 139.436958] [ 139.438574] CPU: 0 PID: 6434 Comm: syz-executor6 Not tainted 4.13.0+ #68 [ 139.445395] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 139.454733] Call Trace: [ 139.457311] dump_stack+0x194/0x257 [ 139.460947] ? arch_local_irq_restore+0x53/0x53 [ 139.465615] ? show_regs_print_info+0x65/0x65 [ 139.470112] ? __dev_remove_pack+0x305/0x3b0 [ 139.474511] print_address_description+0x73/0x250 [ 139.479342] ? __dev_remove_pack+0x305/0x3b0 [ 139.483739] kasan_report+0x24e/0x340 [ 139.487550] __asan_report_load8_noabort+0x14/0x20 [ 139.492464] __dev_remove_pack+0x305/0x3b0 [ 139.496689] ? dev_get_by_name_rcu+0x270/0x270 [ 139.501283] ? refcount_sub_and_test+0x115/0x1b0 [ 139.506031] ? refcount_inc+0x50/0x50 [ 139.509836] __unregister_prot_hook+0x224/0x280 [ 139.514504] packet_release+0x8bb/0xd70 [ 139.518479] ? packet_set_ring+0x1b70/0x1b70 [ 139.522878] ? dentry_free+0xcd/0x130 [ 139.526678] ? rcu_read_lock_sched_held+0x108/0x120 [ 139.531684] ? kmem_cache_free+0x249/0x280 [ 139.535920] ? dentry_free+0xd2/0x130 [ 139.539717] ? locks_remove_file+0x414/0x560 [ 139.544119] ? fcntl_setlk+0x10d0/0x10d0 [ 139.548175] ? __fsnotify_parent+0xb4/0x3a0 [ 139.552503] ? fsnotify+0x1af0/0x1af0 [ 139.556312] sock_release+0x8d/0x1e0 [ 139.560014] ? sock_release+0x8d/0x1e0 [ 139.563902] ? sock_release+0x1e0/0x1e0 [ 139.567865] sock_close+0x16/0x20 [ 139.571312] __fput+0x333/0x7f0 [ 139.574590] ? fput+0x140/0x140 [ 139.577860] ? check_same_owner+0x320/0x320 [ 139.582171] ? _raw_spin_unlock_irq+0x27/0x70 [ 139.586705] ____fput+0x15/0x20 [ 139.589991] task_work_run+0x199/0x270 [ 139.593885] ? task_work_cancel+0x210/0x210 [ 139.598222] ? _raw_spin_unlock+0x22/0x30 [ 139.602378] ? switch_task_namespaces+0x87/0xc0 [ 139.607046] do_exit+0xa52/0x1b40 [ 139.610487] ? plist_check_list+0xa0/0xa0 [ 139.614640] ? plist_del+0x47b/0x990 [ 139.618345] ? mm_update_next_owner+0x930/0x930 [ 139.623007] ? plist_add+0x760/0x760 [ 139.626733] ? check_same_owner+0x320/0x320 [ 139.631056] ? find_held_lock+0x39/0x1d0 [ 139.635128] ? check_noncircular+0x20/0x20 [ 139.639360] ? lock_downgrade+0x990/0x990 [ 139.643501] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 139.648888] ? find_held_lock+0x39/0x1d0 [ 139.652974] ? lock_downgrade+0x990/0x990 [ 139.657112] ? recalc_sigpending_tsk+0x117/0x150 [ 139.661859] ? recalc_sigpending+0x103/0x160 [ 139.666259] ? recalc_sigpending_tsk+0x150/0x150 [ 139.671001] ? get_signal+0x397/0x17e0 [ 139.674909] do_group_exit+0x149/0x400 [ 139.678788] ? __lock_is_held+0xbc/0x140 [ 139.682837] ? SyS_exit+0x30/0x30 [ 139.686282] ? _raw_spin_unlock_irq+0x27/0x70 [ 139.690769] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 139.695784] get_signal+0x7e8/0x17e0 [ 139.699538] ? ptrace_notify+0x130/0x130 [ 139.703584] ? __fget+0xbb/0x580 [ 139.706951] ? lock_release+0xd70/0xd70 [ 139.710935] ? exit_robust_list+0x240/0x240 [ 139.715267] do_signal+0x94/0x1ee0 [ 139.718806] ? iterate_fd+0x3f0/0x3f0 [ 139.722604] ? setup_sigcontext+0x7d0/0x7d0 [ 139.726927] ? find_held_lock+0x39/0x1d0 [ 139.731000] ? __fget_light+0x29d/0x390 [ 139.734973] ? selinux_tun_dev_create+0xc0/0xc0 [ 139.739634] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 139.745339] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 139.750607] ? exit_to_usermode_loop+0x98/0x300 [ 139.755274] exit_to_usermode_loop+0x224/0x300 [ 139.759854] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 139.765400] syscall_return_slowpath+0x42f/0x500 [ 139.770147] ? prepare_exit_to_usermode+0x2c0/0x2c0 [ 139.775164] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 139.780086] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 139.785094] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 139.789853] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 139.794595] RIP: 0033:0x451e59 [ 139.797769] RSP: 002b:00007f9b648c7cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 139.805469] RAX: fffffffffffffe00 RBX: 0000000000718188 RCX: 0000000000451e59 [ 139.812726] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000718188 [ 139.819985] RBP: 0000000000718160 R08: 0000000000000000 R09: 0000000000000000 [ 139.827241] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 139.834498] R13: 00007ffeb838557f R14: 00007f9b648c89c0 R15: 0000000000000016 [ 139.841783] [ 139.843400] Allocated by task 6412: [ 139.847019] save_stack_trace+0x16/0x20 [ 139.850986] save_stack+0x43/0xd0 [ 139.854429] kasan_kmalloc+0xad/0xe0 [ 139.858130] kmem_cache_alloc_trace+0x136/0x750 [ 139.862787] fanout_add+0xa50/0x1190 [ 139.866489] packet_setsockopt+0xfdc/0x1e80 [ 139.870800] SyS_setsockopt+0x189/0x360 [ 139.874764] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 139.879504] [ 139.881118] Freed by task 6434: [ 139.884384] save_stack_trace+0x16/0x20 [ 139.888343] save_stack+0x43/0xd0 [ 139.891788] kasan_slab_free+0x71/0xc0 [ 139.895661] kfree+0xca/0x250 [ 139.898756] packet_release+0xa8f/0xd70 [ 139.902715] sock_release+0x8d/0x1e0 [ 139.906413] sock_close+0x16/0x20 [ 139.909852] __fput+0x333/0x7f0 [ 139.913119] ____fput+0x15/0x20 [ 139.916383] task_work_run+0x199/0x270 [ 139.920257] do_exit+0xa52/0x1b40 [ 139.923698] do_group_exit+0x149/0x400 [ 139.927572] get_signal+0x7e8/0x17e0 [ 139.931271] do_signal+0x94/0x1ee0 [ 139.934800] exit_to_usermode_loop+0x224/0x300 [ 139.939370] syscall_return_slowpath+0x42f/0x500 [ 139.944113] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 139.948847] [ 139.950461] The buggy address belongs to the object at ffff8801c4914c00 [ 139.950461] which belongs to the cache kmalloc-4096 of size 4096 [ 139.963277] The buggy address is located 2216 bytes inside of [ 139.963277] 4096-byte region [ffff8801c4914c00, ffff8801c4915c00) [ 139.975306] The buggy address belongs to the page: [ 139.980223] page:ffffea0007124500 count:1 mapcount:0 mapping:ffff8801c4914c00 index:0x0 compound_mapcount: 0 [ 139.990193] flags: 0x200000000008100(slab|head) [ 139.994848] raw: 0200000000008100 ffff8801c4914c00 0000000000000000 0000000100000001 [ 140.002978] raw: ffffea0007128ba0 ffffea0007113aa0 ffff8801dac00dc0 0000000000000000 [ 140.010840] page dumped because: kasan: bad access detected [ 140.016534] [ 140.018144] Memory state around the buggy address: [ 140.023066] ffff8801c4915380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 140.030408] ffff8801c4915400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 140.037752] >ffff8801c4915480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 140.045093] ^ [ 140.049745] ffff8801c4915500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 140.057090] ffff8801c4915580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 140.064432] ================================================================== [ 140.071770] Disabling lock debugging due to kernel taint [ 140.077304] Kernel panic - not syncing: panic_on_warn set ... [ 140.077304] [ 140.084653] CPU: 0 PID: 6434 Comm: syz-executor6 Tainted: G B 4.13.0+ #68 [ 140.092709] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 140.102037] Call Trace: [ 140.104618] dump_stack+0x194/0x257 [ 140.108225] ? arch_local_irq_restore+0x53/0x53 [ 140.112883] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 140.117629] ? __dev_remove_pack+0x240/0x3b0 [ 140.122016] panic+0x1e4/0x417 [ 140.125186] ? __warn+0x1d9/0x1d9 [ 140.128626] ? __dev_remove_pack+0x305/0x3b0 [ 140.133029] kasan_end_report+0x50/0x50 [ 140.136982] kasan_report+0x137/0x340 [ 140.140765] __asan_report_load8_noabort+0x14/0x20 [ 140.145671] __dev_remove_pack+0x305/0x3b0 [ 140.149887] ? dev_get_by_name_rcu+0x270/0x270 [ 140.154458] ? refcount_sub_and_test+0x115/0x1b0 [ 140.159190] ? refcount_inc+0x50/0x50 [ 140.162975] __unregister_prot_hook+0x224/0x280 [ 140.167638] packet_release+0x8bb/0xd70 [ 140.171594] ? packet_set_ring+0x1b70/0x1b70 [ 140.175983] ? dentry_free+0xcd/0x130 [ 140.179762] ? rcu_read_lock_sched_held+0x108/0x120 [ 140.184773] ? kmem_cache_free+0x249/0x280 [ 140.189000] ? dentry_free+0xd2/0x130 [ 140.192805] ? locks_remove_file+0x414/0x560 [ 140.197195] ? fcntl_setlk+0x10d0/0x10d0 [ 140.201237] ? __fsnotify_parent+0xb4/0x3a0 [ 140.205537] ? fsnotify+0x1af0/0x1af0 [ 140.209320] sock_release+0x8d/0x1e0 [ 140.213023] ? sock_release+0x8d/0x1e0 [ 140.216888] ? sock_release+0x1e0/0x1e0 [ 140.220844] sock_close+0x16/0x20 [ 140.224273] __fput+0x333/0x7f0 [ 140.227547] ? fput+0x140/0x140 [ 140.230802] ? check_same_owner+0x320/0x320 [ 140.235102] ? _raw_spin_unlock_irq+0x27/0x70 [ 140.239578] ____fput+0x15/0x20 [ 140.242833] task_work_run+0x199/0x270 [ 140.246701] ? task_work_cancel+0x210/0x210 [ 140.251011] ? _raw_spin_unlock+0x22/0x30 [ 140.255138] ? switch_task_namespaces+0x87/0xc0 [ 140.259788] do_exit+0xa52/0x1b40 [ 140.263243] ? plist_check_list+0xa0/0xa0 [ 140.267375] ? plist_del+0x47b/0x990 [ 140.271082] ? mm_update_next_owner+0x930/0x930 [ 140.275740] ? plist_add+0x760/0x760 [ 140.279440] ? check_same_owner+0x320/0x320 [ 140.283741] ? find_held_lock+0x39/0x1d0 [ 140.287787] ? check_noncircular+0x20/0x20 [ 140.292001] ? lock_downgrade+0x990/0x990 [ 140.296127] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 140.301479] ? find_held_lock+0x39/0x1d0 [ 140.305524] ? lock_downgrade+0x990/0x990 [ 140.309650] ? recalc_sigpending_tsk+0x117/0x150 [ 140.314384] ? recalc_sigpending+0x103/0x160 [ 140.318771] ? recalc_sigpending_tsk+0x150/0x150 [ 140.323551] ? get_signal+0x397/0x17e0 [ 140.327424] do_group_exit+0x149/0x400 [ 140.331291] ? __lock_is_held+0xbc/0x140 [ 140.335330] ? SyS_exit+0x30/0x30 [ 140.338761] ? _raw_spin_unlock_irq+0x27/0x70 [ 140.343243] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 140.348241] get_signal+0x7e8/0x17e0 [ 140.351955] ? ptrace_notify+0x130/0x130 [ 140.355991] ? __fget+0xbb/0x580 [ 140.359362] ? lock_release+0xd70/0xd70 [ 140.363322] ? exit_robust_list+0x240/0x240 [ 140.367632] do_signal+0x94/0x1ee0 [ 140.371161] ? iterate_fd+0x3f0/0x3f0 [ 140.374944] ? setup_sigcontext+0x7d0/0x7d0 [ 140.379257] ? find_held_lock+0x39/0x1d0 [ 140.383323] ? __fget_light+0x29d/0x390 [ 140.387279] ? selinux_tun_dev_create+0xc0/0xc0 [ 140.391933] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 140.397620] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 140.402877] ? exit_to_usermode_loop+0x98/0x300 [ 140.407886] exit_to_usermode_loop+0x224/0x300 [ 140.412457] ? trace_event_raw_event_sys_exit+0x260/0x260