syzbot


BUG: unable to handle kernel paging request in lock_sock_nested

Status: auto-closed as invalid on 2021/09/11 11:51
Reported-by: syzbot+20000683154c019ac49c@syzkaller.appspotmail.com
First crash: 530d, last: 411d
similar bugs (8):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in lock_sock_nested 43 252d 693d 0/22 auto-closed as invalid on 2022/02/16 22:16
linux-4.19 KASAN: slab-out-of-bounds Read in lock_sock_nested 11 25d 593d 0/1 upstream: reported on 2020/11/12 16:53
linux-4.19 KASAN: wild-memory-access Write in lock_sock_nested 2 517d 585d 0/1 auto-closed as invalid on 2021/05/28 14:35
linux-4.14 general protection fault in lock_sock_nested 4 417d 635d 0/1 auto-closed as invalid on 2021/09/04 19:35
linux-4.19 KASAN: use-after-free Read in lock_sock_nested C 427 4d18h 1068d 0/1 upstream: reported C repro on 2019/07/26 21:27
linux-4.14 KASAN: use-after-free Read in lock_sock_nested C inconclusive 326 9d03h 1162d 0/1 upstream: reported C repro on 2019/04/24 06:28
upstream KASAN: use-after-free Read in lock_sock_nested C inconclusive done 1829 23d 1274d 0/22 upstream: reported C repro on 2019/01/02 10:41
upstream KASAN: slab-out-of-bounds Read in lock_sock_nested syz unreliable done 23 247d 686d 0/22 upstream: reported syz repro on 2020/08/11 16:59

Sample crash report:
BUG: unable to handle kernel paging request at ffffffff86d75668
IP: atomic_inc arch/x86/include/asm/atomic.h:92 [inline]
IP: __lock_acquire+0x21e/0x3f20 kernel/locking/lockdep.c:3382
PGD 8e6b067 P4D 8e6b067 PUD 8e6c063 PMD 6c001e1 
Oops: 0003 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 11344 Comm: syz-executor.2 Not tainted 4.14.232-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff88804eb4a500 task.stack: ffff888050748000
RIP: 0010:atomic_inc arch/x86/include/asm/atomic.h:92 [inline]
RIP: 0010:__lock_acquire+0x21e/0x3f20 kernel/locking/lockdep.c:3382
RSP: 0018:ffff88805074f598 EFLAGS: 00010086
RAX: ffffffff86d75530 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 1ffff11013199dcd RSI: 0000000000000000 RDI: ffff888098ccee68
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: ffff88804eb4a500 R12: ffff888098ccee60
R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff8bebbd40
FS:  00007f69ea7a9700(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffff86d75668 CR3: 0000000093ecb000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline]
 _raw_spin_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:176
 spin_lock_bh include/linux/spinlock.h:322 [inline]
 lock_sock_nested+0x39/0x100 net/core/sock.c:2788
 l2cap_sock_teardown_cb+0x93/0x650 net/bluetooth/l2cap_sock.c:1341
 l2cap_chan_del+0xaf/0x950 net/bluetooth/l2cap_core.c:599
 l2cap_conn_del+0x36e/0x690 net/bluetooth/l2cap_core.c:1729
 l2cap_disconn_cfm net/bluetooth/l2cap_core.c:7441 [inline]
 l2cap_disconn_cfm+0x7c/0xb0 net/bluetooth/l2cap_core.c:7434
 hci_disconn_cfm include/net/bluetooth/hci_core.h:1226 [inline]
 hci_conn_hash_flush+0x127/0x260 net/bluetooth/hci_conn.c:1393
 hci_dev_do_close+0x535/0xca0 net/bluetooth/hci_core.c:1622
 hci_unregister_dev+0x17f/0x8c0 net/bluetooth/hci_core.c:3193
 vhci_release+0x70/0xe0 drivers/bluetooth/hci_vhci.c:354
 __fput+0x25f/0x7a0 fs/file_table.c:210
 task_work_run+0x11f/0x190 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0xa44/0x2850 kernel/exit.c:868
 do_group_exit+0x100/0x2e0 kernel/exit.c:965
 get_signal+0x38d/0x1ca0 kernel/signal.c:2423
 do_signal+0x7c/0x1550 arch/x86/kernel/signal.c:792
 exit_to_usermode_loop+0x160/0x200 arch/x86/entry/common.c:160
 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:270 [inline]
 do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x4665d9
RSP: 002b:00007f69ea7a9218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 000000000056bf68 RCX: 00000000004665d9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000056bf68
RBP: 000000000056bf60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf6c
R13: 00007ffe82a8706f R14: 00007f69ea7a9300 R15: 0000000000022000
Code: 00 fc ff df 41 89 f6 4b 8d 7c f4 08 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 5e 2a 00 00 4b 8b 44 f4 08 48 85 c0 0f 84 31 ff ff ff <f0> ff 80 38 01 00 00 49 8d b3 80 08 00 00 48 ba 00 00 00 00 00 
RIP: atomic_inc arch/x86/include/asm/atomic.h:92 [inline] RSP: ffff88805074f598
RIP: __lock_acquire+0x21e/0x3f20 kernel/locking/lockdep.c:3382 RSP: ffff88805074f598
CR2: ffffffff86d75668
---[ end trace 12b1ff33aaa5ab16 ]---

Crashes (4):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-14 2021/05/14 11:50 linux-4.14.y 7d7d1c0ab3eb 8bdd5343 .config log report info BUG: unable to handle kernel paging request in lock_sock_nested
ci2-linux-4-14 2021/04/28 00:38 linux-4.14.y cf256fbcbe34 805b5003 .config log report info BUG: unable to handle kernel paging request in lock_sock_nested
ci2-linux-4-14 2021/04/06 00:28 linux-4.14.y bd634aa64163 6a81331a .config log report info BUG: unable to handle kernel paging request in lock_sock_nested
ci2-linux-4-14 2021/01/15 05:45 linux-4.14.y f79dc86058bc 65a7a854 .config log report info