Warning: Permanently added '10.128.0.154' (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 syzkaller login: [ 37.764877] ================================================================== [ 37.772291] BUG: KASAN: use-after-free in __lock_acquire+0x2cb4/0x3ff0 [ 37.778956] Read of size 8 at addr ffff888238b9cd10 by task syz-executor574/8117 [ 37.786480] [ 37.788113] CPU: 1 PID: 8117 Comm: syz-executor574 Not tainted 4.19.188-syzkaller #0 [ 37.795990] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.805342] Call Trace: [ 37.807940] dump_stack+0x1fc/0x2ef executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 37.811581] print_address_description.cold+0x54/0x219 [ 37.816861] kasan_report_error.cold+0x8a/0x1b9 [ 37.821542] ? __lock_acquire+0x2cb4/0x3ff0 [ 37.825882] __asan_report_load8_noabort+0x88/0x90 [ 37.830819] ? __lock_acquire+0x2cb4/0x3ff0 [ 37.835145] __lock_acquire+0x2cb4/0x3ff0 [ 37.839298] ? __lock_acquire+0x6de/0x3ff0 [ 37.843539] ? mark_held_locks+0xf0/0xf0 [ 37.847607] ? mark_held_locks+0xf0/0xf0 [ 37.851672] ? check_preemption_disabled+0x41/0x280 [ 37.856693] ? reacquire_held_locks+0xb5/0x430 [ 37.861289] ? release_sock+0x1b/0x1b0 [ 37.865185] ? lock_sock_nested+0xa6/0x110 [ 37.869426] lock_acquire+0x170/0x3c0 [ 37.873233] ? nfc_llcp_sock_unlink+0x1d/0x190 [ 37.877818] ? mark_held_locks+0xa6/0xf0 [ 37.881885] _raw_write_lock+0x2a/0x40 [ 37.885779] ? nfc_llcp_sock_unlink+0x1d/0x190 [ 37.890362] nfc_llcp_sock_unlink+0x1d/0x190 [ 37.894881] llcp_sock_release+0x286/0x520 [ 37.899122] __sock_release+0xcd/0x2a0 [ 37.903012] ? __sock_release+0x2a0/0x2a0 [ 37.907161] sock_close+0x15/0x20 [ 37.910616] __fput+0x2ce/0x890 [ 37.913902] task_work_run+0x148/0x1c0 [ 37.917795] do_exit+0xbf3/0x2be0 [ 37.921252] ? lock_downgrade+0x720/0x720 [ 37.925398] ? mm_update_next_owner+0x650/0x650 [ 37.930067] ? up_read+0x17/0x110 [ 37.933530] ? __do_page_fault+0x180/0xd60 [ 37.937769] do_group_exit+0x125/0x310 [ 37.941660] __x64_sys_exit_group+0x3a/0x50 [ 37.945988] do_syscall_64+0xf9/0x620 [ 37.949792] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.954979] RIP: 0033:0x43e989 [ 37.958171] Code: 00 49 c7 c0 c0 ff ff ff be e7 00 00 00 ba 3c 00 00 00 eb 12 0f 1f 44 00 00 89 d0 0f 05 48 3d 00 f0 ff ff 77 1c f4 89 f0 0f 05 <48> 3d 00 f0 ff ff 76 e7 f7 d8 64 41 89 00 eb df 0f 1f 80 00 00 00 [ 37.977073] RSP: 002b:00007ffedcfa28a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 37.984782] RAX: ffffffffffffffda RBX: 00000000004b02f0 RCX: 000000000043e989 [ 37.992051] RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000 [ 37.999315] RBP: 0000000000000000 R08: ffffffffffffffc0 R09: 0000000000000001 [ 38.006583] R10: 0000000000080800 R11: 0000000000000246 R12: 00000000004b02f0 [ 38.013852] R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001 [ 38.021123] [ 38.022748] Allocated by task 1: [ 38.026118] kmem_cache_alloc_trace+0x12f/0x380 [ 38.030793] nfc_llcp_register_device+0x45/0x9b0 [ 38.035547] nfc_register_device+0x6d/0x360 [ 38.039871] nfcsim_device_new+0x333/0x5af [ 38.044110] nfcsim_init+0x71/0x14d [ 38.047735] do_one_initcall+0xf1/0x740 [ 38.051711] kernel_init_freeable+0x9a6/0xa98 [ 38.056243] kernel_init+0xd/0x1b6 [ 38.059786] ret_from_fork+0x24/0x30 [ 38.063490] [ 38.065119] Freed by task 8118: [ 38.068398] kfree+0xcc/0x210 [ 38.071514] nfc_llcp_local_put+0x155/0x1b0 [ 38.075838] llcp_sock_destruct+0x7b/0x140 [ 38.080074] __sk_destruct+0x4b/0x8a0 [ 38.083875] __sk_free+0x165/0x3b0 [ 38.087416] sk_free+0x3b/0x50 [ 38.090614] llcp_sock_release+0x37a/0x520 [ 38.094848] __sock_release+0xcd/0x2a0 [ 38.098734] sock_close+0x15/0x20 [ 38.102191] __fput+0x2ce/0x890 [ 38.105471] task_work_run+0x148/0x1c0 [ 38.109365] do_exit+0xbf3/0x2be0 [ 38.112818] do_group_exit+0x125/0x310 [ 38.116703] __x64_sys_exit_group+0x3a/0x50 [ 38.121023] do_syscall_64+0xf9/0x620 [ 38.124824] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.130000] [ 38.131626] The buggy address belongs to the object at ffff888238b9c900 [ 38.131626] which belongs to the cache kmalloc-2048 of size 2048 [ 38.144462] The buggy address is located 1040 bytes inside of [ 38.144462] 2048-byte region [ffff888238b9c900, ffff888238b9d100) [ 38.156511] The buggy address belongs to the page: [ 38.161441] page:ffffea0008e2e700 count:1 mapcount:0 mapping:ffff88813bff0c40 index:0x0 compound_mapcount: 0 [ 38.171410] flags: 0x57ff00000008100(slab|head) [ 38.176082] raw: 057ff00000008100 ffffea0008e2dd08 ffffea0008e2f008 ffff88813bff0c40 [ 38.183964] raw: 0000000000000000 ffff888238b9c080 0000000100000003 0000000000000000 [ 38.191842] page dumped because: kasan: bad access detected [ 38.197541] [ 38.199162] Memory state around the buggy address: [ 38.204118] ffff888238b9cc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.211476] ffff888238b9cc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.218837] >ffff888238b9cd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.226189] ^ [ 38.230074] ffff888238b9cd80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.237431] ffff888238b9ce00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.244779] ================================================================== [ 38.252128] Disabling lock debugging due to kernel taint [ 38.257572] Kernel panic - not syncing: panic_on_warn set ... [ 38.257572] [ 38.264940] CPU: 1 PID: 8117 Comm: syz-executor574 Tainted: G B 4.19.188-syzkaller #0 [ 38.274205] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.283552] Call Trace: [ 38.286141] dump_stack+0x1fc/0x2ef [ 38.289779] panic+0x26a/0x50e [ 38.292974] ? __warn_printk+0xf3/0xf3 [ 38.296867] ? lock_downgrade+0x720/0x720 [ 38.301020] ? print_shadow_for_address+0xb8/0x114 [ 38.305954] ? trace_hardirqs_off+0x64/0x200 [ 38.310368] kasan_end_report+0x43/0x49 [ 38.314347] kasan_report_error.cold+0xa7/0x1b9 [ 38.319018] ? __lock_acquire+0x2cb4/0x3ff0 [ 38.323343] __asan_report_load8_noabort+0x88/0x90 [ 38.328277] ? __lock_acquire+0x2cb4/0x3ff0 [ 38.332600] __lock_acquire+0x2cb4/0x3ff0 [ 38.336754] ? __lock_acquire+0x6de/0x3ff0 [ 38.340992] ? mark_held_locks+0xf0/0xf0 [ 38.345056] ? mark_held_locks+0xf0/0xf0 [ 38.349120] ? check_preemption_disabled+0x41/0x280 [ 38.354169] ? reacquire_held_locks+0xb5/0x430 [ 38.358760] ? release_sock+0x1b/0x1b0 [ 38.362669] ? lock_sock_nested+0xa6/0x110 [ 38.366909] lock_acquire+0x170/0x3c0 [ 38.370721] ? nfc_llcp_sock_unlink+0x1d/0x190 [ 38.375307] ? mark_held_locks+0xa6/0xf0 [ 38.379371] _raw_write_lock+0x2a/0x40 [ 38.383261] ? nfc_llcp_sock_unlink+0x1d/0x190 [ 38.387845] nfc_llcp_sock_unlink+0x1d/0x190 [ 38.392258] llcp_sock_release+0x286/0x520 [ 38.396508] __sock_release+0xcd/0x2a0 [ 38.400402] ? __sock_release+0x2a0/0x2a0 [ 38.404550] sock_close+0x15/0x20 [ 38.408005] __fput+0x2ce/0x890 [ 38.411290] task_work_run+0x148/0x1c0 [ 38.415180] do_exit+0xbf3/0x2be0 [ 38.418639] ? lock_downgrade+0x720/0x720 [ 38.422805] ? mm_update_next_owner+0x650/0x650 [ 38.427477] ? up_read+0x17/0x110 [ 38.430943] ? __do_page_fault+0x180/0xd60 [ 38.435179] do_group_exit+0x125/0x310 [ 38.439070] __x64_sys_exit_group+0x3a/0x50 [ 38.443396] do_syscall_64+0xf9/0x620 [ 38.447203] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.452391] RIP: 0033:0x43e989 [ 38.455585] Code: 00 49 c7 c0 c0 ff ff ff be e7 00 00 00 ba 3c 00 00 00 eb 12 0f 1f 44 00 00 89 d0 0f 05 48 3d 00 f0 ff ff 77 1c f4 89 f0 0f 05 <48> 3d 00 f0 ff ff 76 e7 f7 d8 64 41 89 00 eb df 0f 1f 80 00 00 00 [ 38.474486] RSP: 002b:00007ffedcfa28a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 38.482201] RAX: ffffffffffffffda RBX: 00000000004b02f0 RCX: 000000000043e989 [ 38.489466] RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000 [ 38.496733] RBP: 0000000000000000 R08: ffffffffffffffc0 R09: 0000000000000001 [ 38.504000] R10: 0000000000080800 R11: 0000000000000246 R12: 00000000004b02f0 [ 38.511265] R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001 [ 38.518952] Kernel Offset: disabled [ 38.522573] Rebooting in 86400 seconds..