[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting Load/Save RF Kill Switch Status... [ OK ] Started Update UTMP about System Runlevel Changes. [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.246' (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 syzkaller login: [ 77.865723][ T8410] ================================================================== [ 77.873859][ T8410] BUG: KASAN: use-after-free in __lock_acquire+0x3e6f/0x54c0 [ 77.881282][ T8410] Read of size 8 at addr ffff888143ff8468 by task syz-executor412/8410 [ 77.889548][ T8410] [ 77.891884][ T8410] CPU: 0 PID: 8410 Comm: syz-executor412 Not tainted 5.12.0-rc6-syzkaller #0 [ 77.900668][ T8410] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 77.910744][ T8410] Call Trace: executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 77.914035][ T8410] dump_stack+0x141/0x1d7 [ 77.918414][ T8410] ? __lock_acquire+0x3e6f/0x54c0 [ 77.923470][ T8410] print_address_description.constprop.0.cold+0x5b/0x2f8 [ 77.930542][ T8410] ? __lock_acquire+0x3e6f/0x54c0 [ 77.935601][ T8410] ? __lock_acquire+0x3e6f/0x54c0 [ 77.940653][ T8410] kasan_report.cold+0x7c/0xd8 [ 77.945457][ T8410] ? __lock_acquire+0x15d0/0x54c0 [ 77.950510][ T8410] ? __lock_acquire+0x3e6f/0x54c0 [ 77.955563][ T8410] __lock_acquire+0x3e6f/0x54c0 executing program executing program executing program executing program executing program executing program executing program executing program [ 77.960448][ T8410] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 77.966459][ T8410] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 77.972469][ T8410] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 77.978489][ T8410] lock_acquire+0x1ab/0x740 [ 77.983020][ T8410] ? nfc_llcp_sock_unlink+0x1d/0x1c0 [ 77.988336][ T8410] ? lock_release+0x720/0x720 [ 77.993047][ T8410] ? llcp_sock_release+0x1df/0x580 [ 77.998203][ T8410] ? mark_held_locks+0x9f/0xe0 [ 78.003046][ T8410] _raw_write_lock+0x2a/0x40 [ 78.007672][ T8410] ? nfc_llcp_sock_unlink+0x1d/0x1c0 executing program executing program executing program executing program executing program executing program executing program executing program [ 78.013098][ T8410] nfc_llcp_sock_unlink+0x1d/0x1c0 [ 78.018248][ T8410] llcp_sock_release+0x286/0x580 [ 78.023224][ T8410] __sock_release+0xcd/0x280 [ 78.027847][ T8410] sock_close+0x18/0x20 [ 78.032023][ T8410] __fput+0x288/0x920 [ 78.036040][ T8410] ? __sock_release+0x280/0x280 [ 78.040925][ T8410] task_work_run+0xdd/0x1a0 [ 78.045464][ T8410] do_exit+0xbfc/0x2a60 [ 78.049656][ T8410] ? mm_update_next_owner+0x7a0/0x7a0 [ 78.055060][ T8410] ? lock_downgrade+0x6e0/0x6e0 [ 78.059949][ T8410] do_group_exit+0x125/0x310 executing program executing program executing program executing program executing program executing program executing program executing program [ 78.064576][ T8410] __x64_sys_exit_group+0x3a/0x50 [ 78.069629][ T8410] do_syscall_64+0x2d/0x70 [ 78.074077][ T8410] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 78.080002][ T8410] RIP: 0033:0x43e989 [ 78.083915][ T8410] Code: Unable to access opcode bytes at RIP 0x43e95f. [ 78.090773][ T8410] RSP: 002b:00007fffe0cee4e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 78.099214][ T8410] RAX: ffffffffffffffda RBX: 00000000004b02f0 RCX: 000000000043e989 [ 78.107207][ T8410] RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000 executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 78.115198][ T8410] RBP: 0000000000000000 R08: ffffffffffffffc0 R09: 0000000000000001 [ 78.123193][ T8410] R10: 0000000000080800 R11: 0000000000000246 R12: 00000000004b02f0 [ 78.131185][ T8410] R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001 [ 78.139187][ T8410] [ 78.141528][ T8410] Allocated by task 1: [ 78.145606][ T8410] kasan_save_stack+0x1b/0x40 [ 78.150308][ T8410] __kasan_kmalloc+0x99/0xc0 [ 78.154935][ T8410] nfc_llcp_register_device+0x45/0x9d0 [ 78.160427][ T8410] nfc_register_device+0x6d/0x360 executing program executing program executing program executing program executing program executing program executing program executing program [ 78.165481][ T8410] nfcsim_device_new+0x345/0x5c1 [ 78.170447][ T8410] nfcsim_init+0x71/0x14d [ 78.174801][ T8410] do_one_initcall+0x103/0x650 [ 78.179591][ T8410] kernel_init_freeable+0x63e/0x6c2 [ 78.184808][ T8410] kernel_init+0xd/0x1b8 [ 78.189078][ T8410] ret_from_fork+0x1f/0x30 [ 78.193528][ T8410] [ 78.195860][ T8410] Freed by task 8409: [ 78.199846][ T8410] kasan_save_stack+0x1b/0x40 [ 78.204547][ T8410] kasan_set_track+0x1c/0x30 [ 78.209161][ T8410] kasan_set_free_info+0x20/0x30 executing program executing program executing program executing program executing program executing program executing program executing program [ 78.214118][ T8410] __kasan_slab_free+0xf5/0x130 [ 78.218991][ T8410] slab_free_freelist_hook+0x92/0x210 [ 78.224391][ T8410] kfree+0xe5/0x7f0 [ 78.228220][ T8410] nfc_llcp_local_put+0x194/0x200 [ 78.233276][ T8410] llcp_sock_destruct+0x81/0x150 [ 78.238241][ T8410] __sk_destruct+0x4b/0x900 [ 78.242766][ T8410] sk_destruct+0xbd/0xe0 [ 78.247040][ T8410] __sk_free+0xef/0x3d0 [ 78.251231][ T8410] sk_free+0x78/0xa0 [ 78.255154][ T8410] llcp_sock_release+0x3c9/0x580 [ 78.260119][ T8410] __sock_release+0xcd/0x280 executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 78.264733][ T8410] sock_close+0x18/0x20 [ 78.268906][ T8410] __fput+0x288/0x920 [ 78.272907][ T8410] task_work_run+0xdd/0x1a0 [ 78.277434][ T8410] do_exit+0xbfc/0x2a60 [ 78.281616][ T8410] do_group_exit+0x125/0x310 [ 78.286226][ T8410] __x64_sys_exit_group+0x3a/0x50 [ 78.291271][ T8410] do_syscall_64+0x2d/0x70 [ 78.295719][ T8410] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 78.301641][ T8410] [ 78.303971][ T8410] The buggy address belongs to the object at ffff888143ff8000 executing program executing program executing program executing program executing program executing program executing program executing program [ 78.303971][ T8410] which belongs to the cache kmalloc-2k of size 2048 [ 78.318189][ T8410] The buggy address is located 1128 bytes inside of [ 78.318189][ T8410] 2048-byte region [ffff888143ff8000, ffff888143ff8800) [ 78.331658][ T8410] The buggy address belongs to the page: [ 78.337299][ T8410] page:ffffea00050ffe00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x143ff8 [ 78.347560][ T8410] head:ffffea00050ffe00 order:3 compound_mapcount:0 compound_pincount:0 [ 78.355903][ T8410] flags: 0x57ff00000010200(slab|head) executing program executing program executing program executing program executing program executing program executing program executing program [ 78.361311][ T8410] raw: 057ff00000010200 dead000000000100 dead000000000122 ffff888010842000 [ 78.369912][ T8410] raw: 0000000000000000 0000000000080008 00000001ffffffff 0000000000000000 [ 78.378512][ T8410] page dumped because: kasan: bad access detected [ 78.384941][ T8410] [ 78.387317][ T8410] Memory state around the buggy address: [ 78.392961][ T8410] ffff888143ff8300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 78.401045][ T8410] ffff888143ff8380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 78.409138][ T8410] >ffff888143ff8400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 78.417216][ T8410] ^ [ 78.424689][ T8410] ffff888143ff8480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 78.432775][ T8410] ffff888143ff8500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 78.440849][ T8410] ================================================================== [ 78.448922][ T8410] Disabling lock debugging due to kernel taint [ 78.455089][ T8410] Kernel panic - not syncing: panic_on_warn set ... 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 [ 78.461691][ T8410] CPU: 0 PID: 8410 Comm: syz-executor412 Tainted: G B 5.12.0-rc6-syzkaller #0 [ 78.471864][ T8410] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 78.481935][ T8410] Call Trace: [ 78.485226][ T8410] dump_stack+0x141/0x1d7 [ 78.489581][ T8410] panic+0x306/0x73d [ 78.493503][ T8410] ? __warn_printk+0xf3/0xf3 [ 78.498124][ T8410] ? __lock_acquire+0x3e6f/0x54c0 [ 78.503179][ T8410] ? __lock_acquire+0x3e6f/0x54c0 [ 78.508274][ T8410] ? __lock_acquire+0x3e6f/0x54c0 [ 78.513333][ T8410] end_report.cold+0x5a/0x5a 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 [ 78.518060][ T8410] kasan_report.cold+0x6a/0xd8 [ 78.522857][ T8410] ? __lock_acquire+0x15d0/0x54c0 [ 78.527907][ T8410] ? __lock_acquire+0x3e6f/0x54c0 [ 78.532958][ T8410] __lock_acquire+0x3e6f/0x54c0 [ 78.537841][ T8410] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 78.543850][ T8410] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 78.549860][ T8410] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 78.555879][ T8410] lock_acquire+0x1ab/0x740 [ 78.560618][ T8410] ? nfc_llcp_sock_unlink+0x1d/0x1c0 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 [ 78.565938][ T8410] ? lock_release+0x720/0x720 [ 78.570646][ T8410] ? llcp_sock_release+0x1df/0x580 [ 78.575878][ T8410] ? mark_held_locks+0x9f/0xe0 [ 78.580779][ T8410] _raw_write_lock+0x2a/0x40 [ 78.585524][ T8410] ? nfc_llcp_sock_unlink+0x1d/0x1c0 [ 78.590835][ T8410] nfc_llcp_sock_unlink+0x1d/0x1c0 [ 78.595983][ T8410] llcp_sock_release+0x286/0x580 [ 78.600948][ T8410] __sock_release+0xcd/0x280 [ 78.605567][ T8410] sock_close+0x18/0x20 [ 78.609745][ T8410] __fput+0x288/0x920 [ 78.613754][ T8410] ? __sock_release+0x280/0x280 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 [ 78.618635][ T8410] task_work_run+0xdd/0x1a0 [ 78.623165][ T8410] do_exit+0xbfc/0x2a60 [ 78.627351][ T8410] ? mm_update_next_owner+0x7a0/0x7a0 [ 78.632756][ T8410] ? lock_downgrade+0x6e0/0x6e0 [ 78.637641][ T8410] do_group_exit+0x125/0x310 [ 78.642309][ T8410] __x64_sys_exit_group+0x3a/0x50 [ 78.647360][ T8410] do_syscall_64+0x2d/0x70 [ 78.651802][ T8410] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 78.657720][ T8410] RIP: 0033:0x43e989 [ 78.661635][ T8410] Code: Unable to access opcode bytes at RIP 0x43e95f. 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 [ 78.668493][ T8410] RSP: 002b:00007fffe0cee4e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 78.676923][ T8410] RAX: ffffffffffffffda RBX: 00000000004b02f0 RCX: 000000000043e989 [ 78.684919][ T8410] RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000 [ 78.692910][ T8410] RBP: 0000000000000000 R08: ffffffffffffffc0 R09: 0000000000000001 [ 78.700903][ T8410] R10: 0000000000080800 R11: 0000000000000246 R12: 00000000004b02f0 [ 78.708892][ T8410] R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001 [ 78.717457][ T8410] Kernel Offset: disabled [ 78.721941][ T8410] Rebooting in 86400 seconds..