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: 1196d, last: 1077d
Similar bugs (11)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in lock_sock_nested bluetooth 43 918d 1359d 0/26 auto-closed as invalid on 2022/02/16 22:16
upstream general protection fault in lock_sock_nested bluetooth C done done 90 16h19m 227d 0/26 upstream: reported C repro on 2023/09/11 07:52
linux-5.15 general protection fault in lock_sock_nested origin:upstream syz 9 16h28m 21d 0/3 upstream: reported syz repro on 2024/04/04 13:25
linux-4.19 KASAN: slab-out-of-bounds Read in lock_sock_nested 14 596d 1259d 0/1 auto-obsoleted due to no activity on 2023/01/05 15:59
linux-4.19 KASAN: wild-memory-access Write in lock_sock_nested 2 1183d 1251d 0/1 auto-closed as invalid on 2021/05/28 14:35
linux-4.14 general protection fault in lock_sock_nested 4 1083d 1301d 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 471 421d 1734d 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 331 461d 1828d 0/1 upstream: reported C repro on 2019/04/24 06:28
upstream KASAN: use-after-free Read in lock_sock_nested hams C inconclusive done 1856 331d 1940d 0/26 auto-obsoleted due to no activity on 2023/08/23 09:06
linux-6.1 general protection fault in lock_sock_nested 1 11d 11d 0/3 upstream: reported on 2024/04/14 08:46
upstream KASAN: slab-out-of-bounds Read in lock_sock_nested bluetooth syz unreliable done 23 913d 1352d 0/26 auto-obsoleted due to no activity on 2022/09/29 10:19

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):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/14 11:50 linux-4.14.y 7d7d1c0ab3eb 8bdd5343 .config console log report info ci2-linux-4-14 BUG: unable to handle kernel paging request in lock_sock_nested
2021/04/28 00:38 linux-4.14.y cf256fbcbe34 805b5003 .config console log report info ci2-linux-4-14 BUG: unable to handle kernel paging request in lock_sock_nested
2021/04/06 00:28 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 BUG: unable to handle kernel paging request in lock_sock_nested
2021/01/15 05:45 linux-4.14.y f79dc86058bc 65a7a854 .config console log report info ci2-linux-4-14
* Struck through repros no longer work on HEAD.