Warning: Permanently added 'ci-upstream-kasan-gce-2,10.128.0.41' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 41.775890] dev_remove_pack: ffff8801cb519a00 not found [ 41.811349] ================================================================== [ 41.818782] BUG: KASAN: use-after-free in __dev_remove_pack+0x305/0x3b0 [ 41.825511] Read of size 8 at addr ffff8801cb37a928 by task syzkaller418271/4077 [ 41.833021] [ 41.834627] CPU: 1 PID: 4077 Comm: syzkaller418271 Not tainted 4.13.0+ #72 [ 41.841609] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.850937] Call Trace: [ 41.853510] dump_stack+0x194/0x257 [ 41.857115] ? arch_local_irq_restore+0x53/0x53 [ 41.861763] ? show_regs_print_info+0x65/0x65 [ 41.866243] ? __dev_remove_pack+0x305/0x3b0 [ 41.870630] print_address_description+0x73/0x250 [ 41.875448] ? __dev_remove_pack+0x305/0x3b0 [ 41.879830] kasan_report+0x24e/0x340 [ 41.883609] __asan_report_load8_noabort+0x14/0x20 [ 41.888512] __dev_remove_pack+0x305/0x3b0 [ 41.892722] ? dev_get_by_name_rcu+0x270/0x270 [ 41.897280] ? refcount_sub_and_test+0x115/0x1b0 [ 41.902039] __unregister_prot_hook+0x211/0x280 [ 41.906690] packet_release+0x8bb/0xd70 [ 41.910646] ? packet_set_ring+0x1b70/0x1b70 [ 41.915034] ? dentry_free+0xcd/0x130 [ 41.918811] ? rcu_read_lock_sched_held+0x108/0x120 [ 41.923807] ? kmem_cache_free+0x249/0x280 [ 41.928019] ? dentry_free+0xd2/0x130 [ 41.931803] ? locks_remove_file+0x3fa/0x5a0 [ 41.936187] ? fcntl_setlk+0x10d0/0x10d0 [ 41.940226] ? __fsnotify_parent+0xb4/0x3a0 [ 41.944532] ? fsnotify+0x1af0/0x1af0 [ 41.948317] sock_release+0x8d/0x1e0 [ 41.952016] ? sock_release+0x8d/0x1e0 [ 41.955885] ? sock_release+0x1e0/0x1e0 [ 41.959836] sock_close+0x16/0x20 [ 41.963267] __fput+0x333/0x7f0 [ 41.966531] ? fput+0x140/0x140 [ 41.969787] ? check_same_owner+0x320/0x320 [ 41.974081] ? _raw_spin_unlock_irq+0x27/0x70 [ 41.978557] ____fput+0x15/0x20 [ 41.981822] task_work_run+0x199/0x270 [ 41.985711] ? task_work_cancel+0x210/0x210 [ 41.990007] ? _raw_spin_unlock+0x22/0x30 [ 41.994130] ? switch_task_namespaces+0x87/0xc0 [ 41.998779] do_exit+0xa52/0x1b40 [ 42.002210] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 42.007205] ? trace_hardirqs_on+0xd/0x10 [ 42.011344] ? __hrtimer_get_remaining+0x191/0x1c0 [ 42.016254] ? mm_update_next_owner+0x930/0x930 [ 42.020901] ? __hrtimer_get_remaining+0x1c0/0x1c0 [ 42.025921] ? check_same_owner+0x320/0x320 [ 42.030237] ? _do_fork+0x2f5/0xfe0 [ 42.033854] ? __might_sleep+0x95/0x190 [ 42.037816] ? do_nanosleep+0x508/0x6f0 [ 42.041776] ? schedule_timeout_idle+0x90/0x90 [ 42.046351] ? memset+0x31/0x40 [ 42.049618] ? hrtimer_nanosleep+0x2cc/0x860 [ 42.054011] ? nanosleep_copyout+0x100/0x100 [ 42.058398] ? __might_sleep+0x95/0x190 [ 42.062369] ? kasan_check_write+0x14/0x20 [ 42.066581] ? _copy_from_user+0x99/0x110 [ 42.070711] ? __hrtimer_init+0x140/0x140 [ 42.074837] ? syscall_return_slowpath+0x500/0x500 [ 42.079746] do_group_exit+0x149/0x400 [ 42.083608] ? SyS_exit+0x30/0x30 [ 42.087040] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 42.092061] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 42.096802] SyS_exit_group+0x1d/0x20 [ 42.100583] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 42.105310] RIP: 0033:0x446669 [ 42.108472] RSP: 002b:00007ffcd6f2bfb8 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7 [ 42.116156] RAX: ffffffffffffffda RBX: 000000000000000b RCX: 0000000000446669 [ 42.123401] RDX: 0000000000444dc1 RSI: 0000000000000000 RDI: 0000000000000000 [ 42.130647] RBP: 0000000000000082 R08: 00000000006da1c0 R09: 0000000000000000 [ 42.137899] R10: 00000000006da144 R11: 0000000000000206 R12: 0000000000000000 [ 42.145150] R13: 00007ffcd6f2bf5f R14: 00007f26ac6339c0 R15: 0000000000000000 [ 42.152425] [ 42.154032] Allocated by task 4185: [ 42.157640] save_stack_trace+0x16/0x20 [ 42.161593] save_stack+0x43/0xd0 [ 42.165026] kasan_kmalloc+0xad/0xe0 [ 42.168726] kmem_cache_alloc_trace+0x136/0x750 [ 42.173369] fanout_add+0xa50/0x1190 [ 42.177059] packet_setsockopt+0xfdc/0x1e80 [ 42.181360] SyS_setsockopt+0x189/0x360 [ 42.185313] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 42.190041] [ 42.191641] Freed by task 4077: [ 42.194896] save_stack_trace+0x16/0x20 [ 42.198860] save_stack+0x43/0xd0 [ 42.202299] kasan_slab_free+0x71/0xc0 [ 42.206187] kfree+0xca/0x250 [ 42.209280] packet_release+0xa8f/0xd70 [ 42.213232] sock_release+0x8d/0x1e0 [ 42.216940] sock_close+0x16/0x20 [ 42.220368] __fput+0x333/0x7f0 [ 42.223628] ____fput+0x15/0x20 [ 42.226887] task_work_run+0x199/0x270 [ 42.230752] do_exit+0xa52/0x1b40 [ 42.234182] do_group_exit+0x149/0x400 [ 42.238040] SyS_exit_group+0x1d/0x20 [ 42.241819] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 42.246550] [ 42.248160] The buggy address belongs to the object at ffff8801cb37a080 [ 42.248160] which belongs to the cache kmalloc-4096 of size 4096 [ 42.260975] The buggy address is located 2216 bytes inside of [ 42.260975] 4096-byte region [ffff8801cb37a080, ffff8801cb37b080) [ 42.273088] The buggy address belongs to the page: [ 42.277998] page:ffffea00072cde80 count:1 mapcount:0 mapping:ffff8801cb37a080 index:0x0 compound_mapcount: 0 [ 42.287958] flags: 0x200000000008100(slab|head) [ 42.292607] raw: 0200000000008100 ffff8801cb37a080 0000000000000000 0000000100000001 [ 42.300465] raw: ffffea00072ce520 ffff8801dac01a50 ffff8801dac00dc0 0000000000000000 [ 42.308329] page dumped because: kasan: bad access detected [ 42.314010] [ 42.315611] Memory state around the buggy address: [ 42.320512] ffff8801cb37a800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.327846] ffff8801cb37a880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.335194] >ffff8801cb37a900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.342531] ^ [ 42.347180] ffff8801cb37a980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.354517] ffff8801cb37aa00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.361849] ================================================================== [ 42.369178] Disabling lock debugging due to kernel taint [ 42.374746] Kernel panic - not syncing: panic_on_warn set ... [ 42.374746] [ 42.382102] CPU: 1 PID: 4077 Comm: syzkaller418271 Tainted: G B 4.13.0+ #72 [ 42.390649] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.400071] Call Trace: [ 42.402711] dump_stack+0x194/0x257 [ 42.406311] ? arch_local_irq_restore+0x53/0x53 [ 42.410950] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 42.415694] ? __dev_remove_pack+0x230/0x3b0 [ 42.420074] panic+0x1e4/0x417 [ 42.423234] ? __warn+0x1d9/0x1d9 [ 42.426672] ? __dev_remove_pack+0x305/0x3b0 [ 42.431063] kasan_end_report+0x50/0x50 [ 42.435007] kasan_report+0x137/0x340 [ 42.438778] __asan_report_load8_noabort+0x14/0x20 [ 42.443688] __dev_remove_pack+0x305/0x3b0 [ 42.447898] ? dev_get_by_name_rcu+0x270/0x270 [ 42.452455] ? refcount_sub_and_test+0x115/0x1b0 [ 42.457190] __unregister_prot_hook+0x211/0x280 [ 42.461830] packet_release+0x8bb/0xd70 [ 42.465773] ? packet_set_ring+0x1b70/0x1b70 [ 42.470149] ? dentry_free+0xcd/0x130 [ 42.473915] ? rcu_read_lock_sched_held+0x108/0x120 [ 42.478902] ? kmem_cache_free+0x249/0x280 [ 42.483108] ? dentry_free+0xd2/0x130 [ 42.486880] ? locks_remove_file+0x3fa/0x5a0 [ 42.491264] ? fcntl_setlk+0x10d0/0x10d0 [ 42.495307] ? __fsnotify_parent+0xb4/0x3a0 [ 42.499597] ? fsnotify+0x1af0/0x1af0 [ 42.503371] sock_release+0x8d/0x1e0 [ 42.507057] ? sock_release+0x8d/0x1e0 [ 42.510915] ? sock_release+0x1e0/0x1e0 [ 42.514875] sock_close+0x16/0x20 [ 42.518298] __fput+0x333/0x7f0 [ 42.521552] ? fput+0x140/0x140 [ 42.524804] ? check_same_owner+0x320/0x320 [ 42.529097] ? _raw_spin_unlock_irq+0x27/0x70 [ 42.533562] ____fput+0x15/0x20 [ 42.536813] task_work_run+0x199/0x270 [ 42.540683] ? task_work_cancel+0x210/0x210 [ 42.544978] ? _raw_spin_unlock+0x22/0x30 [ 42.549098] ? switch_task_namespaces+0x87/0xc0 [ 42.553741] do_exit+0xa52/0x1b40 [ 42.557167] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 42.562151] ? trace_hardirqs_on+0xd/0x10 [ 42.566272] ? __hrtimer_get_remaining+0x191/0x1c0 [ 42.571171] ? mm_update_next_owner+0x930/0x930 [ 42.575806] ? __hrtimer_get_remaining+0x1c0/0x1c0 [ 42.580711] ? check_same_owner+0x320/0x320 [ 42.585003] ? _do_fork+0x2f5/0xfe0 [ 42.588606] ? __might_sleep+0x95/0x190 [ 42.592559] ? do_nanosleep+0x508/0x6f0 [ 42.596514] ? schedule_timeout_idle+0x90/0x90 [ 42.601075] ? memset+0x31/0x40 [ 42.604336] ? hrtimer_nanosleep+0x2cc/0x860 [ 42.608716] ? nanosleep_copyout+0x100/0x100 [ 42.613092] ? __might_sleep+0x95/0x190 [ 42.617037] ? kasan_check_write+0x14/0x20 [ 42.621253] ? _copy_from_user+0x99/0x110 [ 42.625385] ? __hrtimer_init+0x140/0x140 [ 42.629507] ? syscall_return_slowpath+0x500/0x500 [ 42.634409] do_group_exit+0x149/0x400 [ 42.638356] ? SyS_exit+0x30/0x30 [ 42.641866] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 42.646852] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 42.651579] SyS_exit_group+0x1d/0x20 [ 42.655353] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 42.660080] RIP: 0033:0x446669 [ 42.663236] RSP: 002b:00007ffcd6f2bfb8 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7 [ 42.670913] RAX: ffffffffffffffda RBX: 000000000000000b RCX: 0000000000446669 [ 42.678153] RDX: 0000000000444dc1 RSI: 0000000000000000 RDI: 0000000000000000 [ 42.685394] RBP: 0000000000000082 R08: 00000000006da1c0 R09: 0000000000000000 [ 42.692634] R10: 00000000006da144 R11: 0000000000000206 R12: 0000000000000000 [ 42.699873] R13: 00007ffcd6f2bf5f R14: 00007f26ac6339c0 R15: 0000000000000000 [ 42.707156] Dumping ftrace buffer: [ 42.710674] (ftrace buffer empty) [ 42.714438] Kernel Offset: disabled [ 42.718142] Rebooting in 86400 seconds..