syzbot


BUG: corrupted list in klist_dec_and_del

Status: upstream: reported C repro on 2020/11/02 15:23
Reported-by: syzbot+096e2d3f6cc43bf20205@syzkaller.appspotmail.com
First crash: 1319d, last: 628d
Fix bisection the fix commit could be any of (bisect log):
  27ce4f2a6817 Linux 4.14.206
  964f3712e6a7 Linux 4.14.240
  
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: corrupted list in klist_dec_and_del bluetooth C inconclusive inconclusive 3 624d 1161d 0/28 auto-obsoleted due to no activity on 2023/01/26 07:44
linux-4.19 BUG: corrupted list in klist_dec_and_del C error 5 628d 1293d 0/1 upstream: reported C repro on 2020/11/28 07:47
linux-4.19 KASAN: use-after-free Read in klist_dec_and_del C error 3 764d 1042d 0/1 upstream: reported C repro on 2021/08/06 19:37
Last patch testing requests (2)
Created Duration User Patch Repo Result
2022/09/17 23:29 10m retest repro linux-4.14.y report log
2022/09/17 22:29 10m retest repro linux-4.14.y report log
Fix bisection attempts (10)
Created Duration User Patch Repo Result
2021/07/22 22:58 19m bisect fix linux-4.14.y job log (2)
2021/06/22 16:36 25m bisect fix linux-4.14.y job log (0) log
2021/05/23 08:58 22m bisect fix linux-4.14.y job log (0) log
2021/04/23 06:00 21m bisect fix linux-4.14.y job log (0) log
2021/03/24 02:31 21m bisect fix linux-4.14.y job log (0) log
2021/02/22 02:09 20m bisect fix linux-4.14.y job log (0) log
2021/02/18 12:35 18m bisect fix linux-4.14.y error job log (0)
2021/02/10 19:30 0m bisect fix linux-4.14.y error job log (0)
2021/01/11 18:46 21m bisect fix linux-4.14.y job log (0) log
2020/12/12 18:20 26m bisect fix linux-4.14.y job log (0) log

Sample crash report:
IPVS: ftp: loaded support on port[0] = 21
list_del corruption. prev->next should be ffff8880b30c45e0, but was ffff8880b3fa5cf8
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:51!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 7986 Comm: syz-executor139 Not tainted 4.14.294-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
task: ffff8880b47bc000 task.stack: ffff8880b36e0000
RIP: 0010:__list_del_entry_valid.cold+0xf/0x4a lib/list_debug.c:51
RSP: 0018:ffff8880b36e7a30 EFLAGS: 00010282
RAX: 0000000000000054 RBX: ffff8880b3fa5cc1 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff878bc9e0 RDI: ffffed10166dcf3c
RBP: ffff8880b30c45e0 R08: 0000000000000054 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880b3d16260
R13: ffff8880b3d16260 R14: ffff8880b3130880 R15: 0000000000000000
FS:  00005555562e1300(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000561a5057a8f0 CR3: 000000009b47c000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __list_del_entry include/linux/list.h:117 [inline]
 list_del include/linux/list.h:125 [inline]
 klist_release lib/klist.c:190 [inline]
 kref_put include/linux/kref.h:70 [inline]
 klist_dec_and_del+0x7b/0x460 lib/klist.c:207
 klist_put+0x71/0x140 lib/klist.c:218
 device_del+0x12d/0xa80 drivers/base/core.c:2062
 hci_conn_del_sysfs+0xca/0x160 net/bluetooth/hci_sysfs.c:78
 hci_conn_cleanup+0x216/0x500 net/bluetooth/hci_conn.c:128
 hci_conn_del+0x253/0x6f0 net/bluetooth/hci_conn.c:611
 hci_conn_hash_flush+0x19c/0x260 net/bluetooth/hci_conn.c:1394
 hci_dev_do_close+0x57d/0xd80 net/bluetooth/hci_core.c:1641
 hci_unregister_dev+0x143/0x420 net/bluetooth/hci_core.c:3209
 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
 SYSC_exit_group kernel/exit.c:976 [inline]
 SyS_exit_group+0x19/0x20 kernel/exit.c:974
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7efc13b61519
RSP: 002b:00007fff5aab9338 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007efc13beb390 RCX: 00007efc13b61519
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 0000000000000001 R08: ffffffffffffffb8 R09: 00007fff5aab8e00
R10: 0000000000000000 R11: 0000000000000246 R12: 00007efc13beb390
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
Code: 87 e8 9f f0 f7 ff 0f 0b 48 89 f1 48 c7 c7 00 08 cd 87 4c 89 e6 e8 8b f0 f7 ff 0f 0b 48 89 ee 48 c7 c7 a0 09 cd 87 e8 7a f0 f7 ff <0f> 0b 4c 89 ea 48 89 ee 48 c7 c7 e0 08 cd 87 e8 66 f0 f7 ff 0f 
RIP: __list_del_entry_valid.cold+0xf/0x4a lib/list_debug.c:51 RSP: ffff8880b36e7a30
---[ end trace 70f8daa3f3df67a1 ]---

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/24 00:48 linux-4.14.y 4edbf74132a4 0042f2b4 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-14 BUG: corrupted list in klist_dec_and_del
2020/11/12 18:20 linux-4.14.y 27ce4f2a6817 77a55c8e .config console log report syz C ci2-linux-4-14
2020/11/02 15:22 linux-4.14.y 2b7915014161 8bc4594f .config console log report syz C ci2-linux-4-14
* Struck through repros no longer work on HEAD.