Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.1.37' (ECDSA) to the list of known hosts. 2020/06/16 05:16:52 fuzzer started 2020/06/16 05:16:52 connecting to host at 10.128.0.26:33105 2020/06/16 05:16:52 checking machine... 2020/06/16 05:16:52 checking revisions... 2020/06/16 05:16:52 testing simple program... syzkaller login: [ 64.481053][ T6853] IPVS: ftp: loaded support on port[0] = 21 2020/06/16 05:16:53 building call list... [ 64.859307][ T273] tipc: TX() has been purged, node left! [ 65.401917][ T273] ================================================================== [ 65.410352][ T273] BUG: KASAN: use-after-free in afs_wake_up_async_call+0x6aa/0x770 [ 65.418242][ T273] Write of size 1 at addr ffff88809f3489e4 by task kworker/u4:7/273 [ 65.426205][ T273] [ 65.428533][ T273] CPU: 0 PID: 273 Comm: kworker/u4:7 Not tainted 5.8.0-rc1-syzkaller #0 [ 65.436931][ T273] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 65.446986][ T273] Workqueue: netns cleanup_net [ 65.451740][ T273] Call Trace: [ 65.455036][ T273] dump_stack+0x18f/0x20d [ 65.459369][ T273] ? afs_wake_up_async_call+0x6aa/0x770 [ 65.464909][ T273] ? afs_wake_up_async_call+0x6aa/0x770 [ 65.470452][ T273] ? afs_put_call+0xa40/0xa40 [ 65.475129][ T273] print_address_description.constprop.0.cold+0xd3/0x413 [ 65.482157][ T273] ? vprintk_func+0x97/0x1a6 [ 65.486750][ T273] ? afs_wake_up_async_call+0x6aa/0x770 [ 65.492292][ T273] kasan_report.cold+0x1f/0x37 [ 65.497059][ T273] ? rcu_read_lock_held_common+0x51/0xa0 [ 65.502685][ T273] ? afs_wake_up_async_call+0x6aa/0x770 [ 65.508233][ T273] afs_wake_up_async_call+0x6aa/0x770 [ 65.513618][ T273] ? afs_close_socket+0x320/0x320 [ 65.518643][ T273] ? afs_put_call+0xa40/0xa40 [ 65.523318][ T273] rxrpc_notify_socket+0x1db/0x5d0 [ 65.528436][ T273] ? afs_put_call+0xa40/0xa40 [ 65.533116][ T273] __rxrpc_set_call_completion.part.0+0x172/0x410 [ 65.539533][ T273] rxrpc_call_completed+0xca/0xf0 [ 65.544565][ T273] rxrpc_discard_prealloc+0x781/0xab0 [ 65.550169][ T273] ? lock_sock_nested+0x94/0x110 [ 65.555126][ T273] rxrpc_listen+0x147/0x360 [ 65.559650][ T273] afs_close_socket+0x95/0x320 [ 65.564416][ T273] ? afs_purge_servers+0x16d/0x300 [ 65.569529][ T273] ? afs_rx_discard_new_call+0x50/0x50 [ 65.574993][ T273] ? init_wait_var_entry+0x200/0x200 [ 65.580447][ T273] ? rcu_read_lock_held_common+0xa0/0xa0 [ 65.586109][ T273] ? check_preemption_disabled+0x38/0x220 [ 65.591961][ T273] afs_net_exit+0x1bc/0x310 [ 65.596471][ T273] ? afs_net_init+0xe30/0xe30 [ 65.601156][ T273] ops_exit_list.isra.0+0xa8/0x150 [ 65.606276][ T273] cleanup_net+0x511/0xa50 [ 65.610700][ T273] ? unregister_pernet_device+0x70/0x70 [ 65.616263][ T273] ? rcu_read_lock_any_held.part.0+0x50/0x50 [ 65.622254][ T273] process_one_work+0x965/0x1690 [ 65.627205][ T273] ? lock_release+0x800/0x800 [ 65.631880][ T273] ? pwq_dec_nr_in_flight+0x310/0x310 [ 65.637258][ T273] ? rwlock_bug.part.0+0x90/0x90 [ 65.642204][ T273] worker_thread+0x96/0xe10 [ 65.646894][ T273] ? process_one_work+0x1690/0x1690 [ 65.652093][ T273] kthread+0x3b5/0x4a0 [ 65.656167][ T273] ? kthread_mod_delayed_work+0x1a0/0x1a0 [ 65.661893][ T273] ? kthread_mod_delayed_work+0x1a0/0x1a0 [ 65.667643][ T273] ret_from_fork+0x1f/0x30 [ 65.672169][ T273] [ 65.674498][ T273] Allocated by task 6853: [ 65.678826][ T273] save_stack+0x1b/0x40 [ 65.683067][ T273] __kasan_kmalloc.constprop.0+0xbf/0xd0 [ 65.688696][ T273] kmem_cache_alloc_trace+0x153/0x7d0 [ 65.694072][ T273] afs_alloc_call+0x55/0x630 [ 65.698660][ T273] afs_charge_preallocation+0xe9/0x2d0 [ 65.704112][ T273] afs_open_socket+0x292/0x360 [ 65.708872][ T273] afs_net_init+0xa6c/0xe30 [ 65.713372][ T273] ops_init+0xaf/0x420 [ 65.717456][ T273] setup_net+0x2de/0x860 [ 65.721694][ T273] copy_net_ns+0x293/0x590 [ 65.726130][ T273] create_new_namespaces+0x3fb/0xb30 [ 65.731420][ T273] unshare_nsproxy_namespaces+0xbd/0x1f0 [ 65.737058][ T273] ksys_unshare+0x43d/0x8e0 [ 65.741562][ T273] __x64_sys_unshare+0x2d/0x40 [ 65.746327][ T273] do_syscall_64+0x60/0xe0 [ 65.750744][ T273] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 65.756636][ T273] [ 65.758979][ T273] Freed by task 273: [ 65.762919][ T273] save_stack+0x1b/0x40 [ 65.767222][ T273] __kasan_slab_free+0xf7/0x140 [ 65.772189][ T273] kfree+0x109/0x2b0 [ 65.776084][ T273] afs_put_call+0x585/0xa40 [ 65.780592][ T273] rxrpc_discard_prealloc+0x764/0xab0 [ 65.786312][ T273] rxrpc_listen+0x147/0x360 [ 65.790812][ T273] afs_close_socket+0x95/0x320 [ 65.795603][ T273] afs_net_exit+0x1bc/0x310 [ 65.800103][ T273] ops_exit_list.isra.0+0xa8/0x150 [ 65.805207][ T273] cleanup_net+0x511/0xa50 [ 65.809641][ T273] process_one_work+0x965/0x1690 [ 65.814590][ T273] worker_thread+0x96/0xe10 [ 65.819138][ T273] kthread+0x3b5/0x4a0 [ 65.823203][ T273] ret_from_fork+0x1f/0x30 [ 65.827605][ T273] [ 65.829937][ T273] The buggy address belongs to the object at ffff88809f348800 [ 65.829937][ T273] which belongs to the cache kmalloc-1k of size 1024 [ 65.844013][ T273] The buggy address is located 484 bytes inside of [ 65.844013][ T273] 1024-byte region [ffff88809f348800, ffff88809f348c00) [ 65.857361][ T273] The buggy address belongs to the page: [ 65.862994][ T273] page:ffffea00027cd200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 [ 65.872103][ T273] flags: 0xfffe0000000200(slab) [ 65.876963][ T273] raw: 00fffe0000000200 ffffea00029b8bc8 ffffea00024a2608 ffff8880aa000c40 [ 65.885667][ T273] raw: 0000000000000000 ffff88809f348000 0000000100000002 0000000000000000 [ 65.894353][ T273] page dumped because: kasan: bad access detected [ 65.900757][ T273] [ 65.903074][ T273] Memory state around the buggy address: [ 65.908703][ T273] ffff88809f348880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 65.916760][ T273] ffff88809f348900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 65.924818][ T273] >ffff88809f348980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 65.932886][ T273] ^ [ 65.940114][ T273] ffff88809f348a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 65.948276][ T273] ffff88809f348a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 65.956347][ T273] ================================================================== [ 65.964401][ T273] Disabling lock debugging due to kernel taint [ 65.970636][ T273] Kernel panic - not syncing: panic_on_warn set ... [ 65.977317][ T273] CPU: 0 PID: 273 Comm: kworker/u4:7 Tainted: G B 5.8.0-rc1-syzkaller #0 [ 65.987635][ T273] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 65.998150][ T273] Workqueue: netns cleanup_net [ 66.002926][ T273] Call Trace: [ 66.006221][ T273] dump_stack+0x18f/0x20d [ 66.010560][ T273] ? afs_wake_up_async_call+0x5d0/0x770 [ 66.016112][ T273] ? afs_put_call+0xa40/0xa40 [ 66.020794][ T273] panic+0x2e3/0x75c [ 66.024706][ T273] ? __warn_printk+0xf3/0xf3 [ 66.029304][ T273] ? asm_sysvec_apic_timer_interrupt+0x12/0x20 [ 66.035460][ T273] ? trace_hardirqs_on+0x55/0x220 [ 66.040679][ T273] ? afs_wake_up_async_call+0x6aa/0x770 [ 66.046231][ T273] ? afs_wake_up_async_call+0x6aa/0x770 [ 66.051780][ T273] ? afs_put_call+0xa40/0xa40 [ 66.056552][ T273] end_report+0x4d/0x53 [ 66.060707][ T273] kasan_report.cold+0xd/0x37 [ 66.065403][ T273] ? rcu_read_lock_held_common+0x51/0xa0 [ 66.071039][ T273] ? afs_wake_up_async_call+0x6aa/0x770 [ 66.076582][ T273] afs_wake_up_async_call+0x6aa/0x770 [ 66.081946][ T273] ? afs_close_socket+0x320/0x320 [ 66.086989][ T273] ? afs_put_call+0xa40/0xa40 [ 66.091850][ T273] rxrpc_notify_socket+0x1db/0x5d0 [ 66.096981][ T273] ? afs_put_call+0xa40/0xa40 [ 66.101747][ T273] __rxrpc_set_call_completion.part.0+0x172/0x410 [ 66.108331][ T273] rxrpc_call_completed+0xca/0xf0 [ 66.113352][ T273] rxrpc_discard_prealloc+0x781/0xab0 [ 66.118724][ T273] ? lock_sock_nested+0x94/0x110 [ 66.123659][ T273] rxrpc_listen+0x147/0x360 [ 66.128158][ T273] afs_close_socket+0x95/0x320 [ 66.132921][ T273] ? afs_purge_servers+0x16d/0x300 [ 66.138026][ T273] ? afs_rx_discard_new_call+0x50/0x50 [ 66.143482][ T273] ? init_wait_var_entry+0x200/0x200 [ 66.148772][ T273] ? rcu_read_lock_held_common+0xa0/0xa0 [ 66.154408][ T273] ? check_preemption_disabled+0x38/0x220 [ 66.160141][ T273] afs_net_exit+0x1bc/0x310 [ 66.164659][ T273] ? afs_net_init+0xe30/0xe30 [ 66.169420][ T273] ops_exit_list.isra.0+0xa8/0x150 [ 66.174525][ T273] cleanup_net+0x511/0xa50 [ 66.178941][ T273] ? unregister_pernet_device+0x70/0x70 [ 66.184492][ T273] ? rcu_read_lock_any_held.part.0+0x50/0x50 [ 66.190469][ T273] process_one_work+0x965/0x1690 [ 66.195407][ T273] ? lock_release+0x800/0x800 [ 66.200088][ T273] ? pwq_dec_nr_in_flight+0x310/0x310 [ 66.205645][ T273] ? rwlock_bug.part.0+0x90/0x90 [ 66.210595][ T273] worker_thread+0x96/0xe10 [ 66.215799][ T273] ? process_one_work+0x1690/0x1690 [ 66.221013][ T273] kthread+0x3b5/0x4a0 [ 66.225094][ T273] ? kthread_mod_delayed_work+0x1a0/0x1a0 [ 66.230804][ T273] ? kthread_mod_delayed_work+0x1a0/0x1a0 [ 66.236515][ T273] ret_from_fork+0x1f/0x30 [ 66.242496][ T273] Kernel Offset: disabled [ 66.246833][ T273] Rebooting in 86400 seconds..