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-0,10.128.0.6' (ECDSA) to the list of known hosts. 2017/09/05 07:00:32 parsed 1 programs 2017/09/05 07:00:32 executed programs: 0 syzkaller login: [ 26.789292] dev_remove_pack: ffff8801d35c0d00 not found [ 26.798342] ================================================================== [ 26.799396] BUG: KASAN: use-after-free in __dev_remove_pack+0x305/0x3b0 [ 26.800289] Read of size 8 at addr ffff8801ce6acb68 by task syz-executor0/3030 [ 26.801285] [ 26.801524] CPU: 1 PID: 3030 Comm: syz-executor0 Not tainted 4.13.0-next-20170905+ #15 [ 26.802581] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.803803] Call Trace: [ 26.804163] dump_stack+0x194/0x257 [ 26.804660] ? arch_local_irq_restore+0x53/0x53 [ 26.805286] ? show_regs_print_info+0x65/0x65 [ 26.805937] ? __dev_remove_pack+0x305/0x3b0 [ 26.806534] print_address_description+0x73/0x250 [ 26.807184] ? __dev_remove_pack+0x305/0x3b0 [ 26.807777] kasan_report+0x24e/0x340 [ 26.808309] __asan_report_load8_noabort+0x14/0x20 [ 26.808969] __dev_remove_pack+0x305/0x3b0 [ 26.809540] ? dev_get_by_name_rcu+0x270/0x270 [ 26.814094] ? refcount_sub_and_test+0x115/0x1b0 [ 26.818834] __unregister_prot_hook+0x211/0x280 [ 26.823481] packet_release+0x8bb/0xd70 [ 26.827434] ? packet_set_ring+0x1b70/0x1b70 [ 26.831815] ? dentry_free+0xcd/0x130 [ 26.835587] ? rcu_read_lock_sched_held+0x108/0x120 [ 26.840580] ? kmem_cache_free+0x249/0x280 [ 26.844788] ? dentry_free+0xd2/0x130 [ 26.848571] ? locks_remove_file+0x3fa/0x5a0 [ 26.852954] ? fcntl_setlk+0x10d0/0x10d0 [ 26.856988] ? __fsnotify_parent+0xb4/0x3a0 [ 26.861283] ? fsnotify+0x1af0/0x1af0 [ 26.865059] sock_release+0x8d/0x1e0 [ 26.868744] ? sock_release+0x8d/0x1e0 [ 26.872603] ? sock_release+0x1e0/0x1e0 [ 26.876549] sock_close+0x16/0x20 [ 26.879974] __fput+0x333/0x7f0 [ 26.883230] ? fput+0x140/0x140 [ 26.886485] ? check_same_owner+0x320/0x320 [ 26.890777] ? _raw_spin_unlock_irq+0x27/0x70 [ 26.895251] ____fput+0x15/0x20 [ 26.898502] task_work_run+0x199/0x270 [ 26.902363] ? task_work_cancel+0x210/0x210 [ 26.906656] ? _raw_spin_unlock+0x22/0x30 [ 26.910777] ? switch_task_namespaces+0x87/0xc0 [ 26.915425] do_exit+0xa52/0x1b40 [ 26.918851] ? plist_check_list+0xa0/0xa0 [ 26.922981] ? plist_del+0x47b/0x990 [ 26.926667] ? mm_update_next_owner+0x930/0x930 [ 26.931323] ? plist_add+0x760/0x760 [ 26.935019] ? check_same_owner+0x320/0x320 [ 26.939323] ? find_held_lock+0x39/0x1d0 [ 26.943367] ? check_noncircular+0x20/0x20 [ 26.947574] ? lock_downgrade+0x990/0x990 [ 26.951694] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 26.957050] ? find_held_lock+0x39/0x1d0 [ 26.961092] ? lock_downgrade+0x990/0x990 [ 26.965210] ? recalc_sigpending_tsk+0x117/0x150 [ 26.969946] ? recalc_sigpending+0x103/0x160 [ 26.974328] ? recalc_sigpending_tsk+0x150/0x150 [ 26.979054] ? get_signal+0x397/0x17e0 [ 26.982926] do_group_exit+0x149/0x400 [ 26.986785] ? __lock_is_held+0xbc/0x140 [ 26.990817] ? SyS_exit+0x30/0x30 [ 26.994245] ? _raw_spin_unlock_irq+0x27/0x70 [ 26.998715] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.003709] get_signal+0x7e8/0x17e0 [ 27.007424] ? ptrace_notify+0x130/0x130 [ 27.011455] ? __fget+0xbb/0x580 [ 27.014792] ? __lockdep_init_map+0xe4/0x650 [ 27.019181] ? lock_release+0xd70/0xd70 [ 27.023133] ? exit_robust_list+0x240/0x240 [ 27.027439] do_signal+0x94/0x1ee0 [ 27.030957] ? iterate_fd+0x3f0/0x3f0 [ 27.034737] ? setup_sigcontext+0x7d0/0x7d0 [ 27.039035] ? __lock_is_held+0xbc/0x140 [ 27.043081] ? __fget_light+0x29d/0x390 [ 27.047032] ? selinux_tun_dev_create+0xc0/0xc0 [ 27.051673] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 27.057364] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 27.062612] ? alloc_file+0x284/0x3a0 [ 27.066387] ? exit_to_usermode_loop+0x98/0x300 [ 27.071034] exit_to_usermode_loop+0x224/0x300 [ 27.075591] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 27.081109] syscall_return_slowpath+0x42f/0x500 [ 27.085838] ? prepare_exit_to_usermode+0x2c0/0x2c0 [ 27.090831] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 27.095733] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.100722] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.105459] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 27.110184] RIP: 0033:0x451e59 [ 27.113344] RSP: 002b:00007f5538277cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 27.121026] RAX: fffffffffffffe00 RBX: 00000000007180d8 RCX: 0000000000451e59 [ 27.128265] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000007180d8 [ 27.135515] RBP: 00000000007180b0 R08: 0000000000000000 R09: 0000000000000000 [ 27.142757] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 27.149998] R13: 00007ffdf1c6816f R14: 00007f55382789c0 R15: 0000000000000002 [ 27.157264] [ 27.158862] Allocated by task 3029: [ 27.162464] save_stack_trace+0x16/0x20 [ 27.166416] save_stack+0x43/0xd0 [ 27.169839] kasan_kmalloc+0xad/0xe0 [ 27.173522] kmem_cache_alloc_trace+0x136/0x750 [ 27.178162] fanout_add+0xa50/0x1190 [ 27.181845] packet_setsockopt+0xfdc/0x1e80 [ 27.186136] SyS_setsockopt+0x189/0x360 [ 27.190082] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 27.194807] [ 27.196404] Freed by task 3030: [ 27.199655] save_stack_trace+0x16/0x20 [ 27.203599] save_stack+0x43/0xd0 [ 27.207023] kasan_slab_free+0x71/0xc0 [ 27.210881] kfree+0xca/0x250 [ 27.213956] packet_release+0xa8f/0xd70 [ 27.217899] sock_release+0x8d/0x1e0 [ 27.221581] sock_close+0x16/0x20 [ 27.225004] __fput+0x333/0x7f0 [ 27.228254] ____fput+0x15/0x20 [ 27.231506] task_work_run+0x199/0x270 [ 27.235363] do_exit+0xa52/0x1b40 [ 27.238786] do_group_exit+0x149/0x400 [ 27.242641] get_signal+0x7e8/0x17e0 [ 27.246353] do_signal+0x94/0x1ee0 [ 27.249864] exit_to_usermode_loop+0x224/0x300 [ 27.254415] syscall_return_slowpath+0x42f/0x500 [ 27.259138] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 27.263859] [ 27.265462] The buggy address belongs to the object at ffff8801ce6ac2c0 [ 27.265462] which belongs to the cache kmalloc-4096 of size 4096 [ 27.278261] The buggy address is located 2216 bytes inside of [ 27.278261] 4096-byte region [ffff8801ce6ac2c0, ffff8801ce6ad2c0) [ 27.290388] The buggy address belongs to the page: [ 27.295290] page:ffffea000739ab00 count:1 mapcount:0 mapping:ffff8801ce6ac2c0 index:0x0 compound_mapcount: 0 [ 27.305243] flags: 0x200000000008100(slab|head) [ 27.309883] raw: 0200000000008100 ffff8801ce6ac2c0 0000000000000000 0000000100000001 [ 27.317734] raw: ffffea000739ac20 ffff8801dac01a50 ffff8801dac00dc0 0000000000000000 [ 27.325596] page dumped because: kasan: bad access detected [ 27.331277] [ 27.332872] Memory state around the buggy address: [ 27.337771] ffff8801ce6aca00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.345099] ffff8801ce6aca80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.352429] >ffff8801ce6acb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.359757] ^ [ 27.366484] ffff8801ce6acb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.373811] ffff8801ce6acc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.381137] ================================================================== [ 27.388463] Disabling lock debugging due to kernel taint [ 27.393960] Kernel panic - not syncing: panic_on_warn set ... [ 27.393960] [ 27.401300] CPU: 1 PID: 3030 Comm: syz-executor0 Tainted: G B 4.13.0-next-20170905+ #15 [ 27.410535] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.419855] Call Trace: [ 27.422412] dump_stack+0x194/0x257 [ 27.426006] ? arch_local_irq_restore+0x53/0x53 [ 27.430642] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.435368] ? __dev_remove_pack+0x2e0/0x3b0 [ 27.439744] panic+0x1e4/0x417 [ 27.442904] ? __warn+0x1d9/0x1d9 [ 27.446330] ? __dev_remove_pack+0x305/0x3b0 [ 27.450701] kasan_end_report+0x50/0x50 [ 27.454639] kasan_report+0x137/0x340 [ 27.458420] __asan_report_load8_noabort+0x14/0x20 [ 27.463316] __dev_remove_pack+0x305/0x3b0 [ 27.467527] ? dev_get_by_name_rcu+0x270/0x270 [ 27.472075] ? refcount_sub_and_test+0x115/0x1b0 [ 27.476802] __unregister_prot_hook+0x211/0x280 [ 27.481439] packet_release+0x8bb/0xd70 [ 27.485385] ? packet_set_ring+0x1b70/0x1b70 [ 27.489767] ? dentry_free+0xcd/0x130 [ 27.493542] ? rcu_read_lock_sched_held+0x108/0x120 [ 27.498523] ? kmem_cache_free+0x249/0x280 [ 27.502723] ? dentry_free+0xd2/0x130 [ 27.506498] ? locks_remove_file+0x3fa/0x5a0 [ 27.510878] ? fcntl_setlk+0x10d0/0x10d0 [ 27.514907] ? __fsnotify_parent+0xb4/0x3a0 [ 27.519192] ? fsnotify+0x1af0/0x1af0 [ 27.522963] sock_release+0x8d/0x1e0 [ 27.526640] ? sock_release+0x8d/0x1e0 [ 27.530493] ? sock_release+0x1e0/0x1e0 [ 27.534431] sock_close+0x16/0x20 [ 27.537848] __fput+0x333/0x7f0 [ 27.541094] ? fput+0x140/0x140 [ 27.544339] ? check_same_owner+0x320/0x320 [ 27.548625] ? _raw_spin_unlock_irq+0x27/0x70 [ 27.553086] ____fput+0x15/0x20 [ 27.556330] task_work_run+0x199/0x270 [ 27.560183] ? task_work_cancel+0x210/0x210 [ 27.564470] ? _raw_spin_unlock+0x22/0x30 [ 27.568583] ? switch_task_namespaces+0x87/0xc0 [ 27.573219] do_exit+0xa52/0x1b40 [ 27.576643] ? plist_check_list+0xa0/0xa0 [ 27.580761] ? plist_del+0x47b/0x990 [ 27.584445] ? mm_update_next_owner+0x930/0x930 [ 27.589078] ? plist_add+0x760/0x760 [ 27.592764] ? check_same_owner+0x320/0x320 [ 27.597054] ? find_held_lock+0x39/0x1d0 [ 27.601082] ? check_noncircular+0x20/0x20 [ 27.605280] ? lock_downgrade+0x990/0x990 [ 27.609400] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 27.614744] ? find_held_lock+0x39/0x1d0 [ 27.618776] ? lock_downgrade+0x990/0x990 [ 27.622889] ? recalc_sigpending_tsk+0x117/0x150 [ 27.627617] ? recalc_sigpending+0x103/0x160 [ 27.631988] ? recalc_sigpending_tsk+0x150/0x150 [ 27.636707] ? get_signal+0x397/0x17e0 [ 27.640564] do_group_exit+0x149/0x400 [ 27.644415] ? __lock_is_held+0xbc/0x140 [ 27.648441] ? SyS_exit+0x30/0x30 [ 27.651861] ? _raw_spin_unlock_irq+0x27/0x70 [ 27.656322] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.661309] get_signal+0x7e8/0x17e0 [ 27.665004] ? ptrace_notify+0x130/0x130 [ 27.669030] ? __fget+0xbb/0x580 [ 27.672361] ? __lockdep_init_map+0xe4/0x650 [ 27.676743] ? lock_release+0xd70/0xd70 [ 27.680693] ? exit_robust_list+0x240/0x240 [ 27.684985] do_signal+0x94/0x1ee0 [ 27.688492] ? iterate_fd+0x3f0/0x3f0 [ 27.692257] ? setup_sigcontext+0x7d0/0x7d0 [ 27.696546] ? __lock_is_held+0xbc/0x140 [ 27.700579] ? __fget_light+0x29d/0x390 [ 27.704520] ? selinux_tun_dev_create+0xc0/0xc0 [ 27.709154] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 27.714827] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 27.720066] ? alloc_file+0x284/0x3a0 [ 27.723831] ? exit_to_usermode_loop+0x98/0x300 [ 27.728467] exit_to_usermode_loop+0x224/0x300 [ 27.733016] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 27.738521] syscall_return_slowpath+0x42f/0x500 [ 27.743241] ? prepare_exit_to_usermode+0x2c0/0x2c0 [ 27.748225] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 27.753120] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.758103] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.762829] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 27.767555] RIP: 0033:0x451e59 [ 27.770711] RSP: 002b:00007f5538277cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 27.778382] RAX: fffffffffffffe00 RBX: 00000000007180d8 RCX: 0000000000451e59 [ 27.785621] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000007180d8