syzbot


general protection fault in __queue_work (2)
Status: upstream: reported C repro on 2020/03/07 03:55
Reported-by: syzbot+889cc963ed79ee90f74f@syzkaller.appspotmail.com
First crash: 811d, last: 43d

Cause bisection: introduced by (bisect log) :
commit 29dab2122492f6dbc0b895ca5bd047e166684d1a
Author: Dan Schatzberg <schatzberg.dan@gmail.com>
Date: Tue Feb 25 04:14:07 2020 +0000

  loop: use worker per cgroup instead of kworker

Crash: general protection fault in __loop_clr_fd (log)
Repro: C syz .config
similar bugs (6):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in __queue_work 3 1178d 1176d 0/22 auto-closed as invalid on 2019/09/02 09:35
linux-4.19 general protection fault in __queue_work syz done 1 395d 643d 1/1 fixed on 2021/05/29 15:40
linux-4.14 general protection fault in __queue_work syz error 1 506d 657d 0/1 upstream: reported syz repro on 2020/08/07 22:48
linux-4.19 general protection fault in __queue_work (2) 1 134d 134d 0/1 auto-closed as invalid on 2022/05/12 22:08
linux-4.19 KASAN: use-after-free Read in __queue_work syz done 5 290d 662d 1/1 fixed on 2021/09/10 09:12
linux-4.14 KASAN: use-after-free Read in __queue_work syz 4 18d 661d 0/1 upstream: reported syz repro on 2020/08/03 15:06

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 PID: 6814 Comm: syz-executor235 Not tainted 5.8.0-rc2-next-20200626-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__queue_work+0x39a/0xff0 kernel/workqueue.c:1434
Code: 0a 9e 06 48 89 d8 48 c1 e8 03 80 3c 28 00 0f 85 f6 0b 00 00 48 8b 3b e8 e4 08 9e 06 eb 26 e8 bd f5 27 00 48 89 d8 48 c1 e8 03 <80> 3c 28 00 0f 85 ae 0b 00 00 4c 8b 2b e8 a4 f5 27 00 4c 89 ef e8
RSP: 0018:ffffc9000193fb30 EFLAGS: 00010046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff814b6ec8
RDX: ffff888097300540 RSI: ffffffff814bf443 RDI: 0000000000000005
RBP: dffffc0000000000 R08: 0000000000000001 R09: ffff8880961c8b5f
R10: 000000007fffffff R11: 0000000000000000 R12: ffff8880961c8b58
R13: 0000000000000000 R14: ffff88809a114800 R15: 0000000000000040
FS:  0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000563adfee86e0 CR3: 0000000009a79000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 queue_work_on+0x18b/0x200 kernel/workqueue.c:1518
 queue_work include/linux/workqueue.h:507 [inline]
 hci_update_background_scan net/bluetooth/hci_request.h:115 [inline]
 hci_adv_monitors_clear+0x150/0x1d0 net/bluetooth/hci_core.c:3009
 hci_unregister_dev+0x417/0xe20 net/bluetooth/hci_core.c:3810
 vhci_release+0x70/0xe0 drivers/bluetooth/hci_vhci.c:340
 __fput+0x33c/0x880 fs/file_table.c:281
 task_work_run+0xdd/0x190 kernel/task_work.c:123
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0xb72/0x2a40 kernel/exit.c:806
 do_group_exit+0x125/0x310 kernel/exit.c:904
 __do_sys_exit_group kernel/exit.c:915 [inline]
 __se_sys_exit_group kernel/exit.c:913 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:913
 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:359
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x43ee18
Code: Bad RIP value.
RSP: 002b:00007ffc986682f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ee18
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000
RBP: 00000000004be628 R08: 00000000000000e7 R09: ffffffffffffffd0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 4b62b2821d1a0de7 ]---
RIP: 0010:__queue_work+0x39a/0xff0 kernel/workqueue.c:1434
Code: 0a 9e 06 48 89 d8 48 c1 e8 03 80 3c 28 00 0f 85 f6 0b 00 00 48 8b 3b e8 e4 08 9e 06 eb 26 e8 bd f5 27 00 48 89 d8 48 c1 e8 03 <80> 3c 28 00 0f 85 ae 0b 00 00 4c 8b 2b e8 a4 f5 27 00 4c 89 ef e8
RSP: 0018:ffffc9000193fb30 EFLAGS: 00010046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff814b6ec8
RDX: ffff888097300540 RSI: ffffffff814bf443 RDI: 0000000000000005
RBP: dffffc0000000000 R08: 0000000000000001 R09: ffff8880961c8b5f
R10: 000000007fffffff R11: 0000000000000000 R12: ffff8880961c8b58
R13: 0000000000000000 R14: ffff88809a114800 R15: 0000000000000040
FS:  0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000563adfee86e0 CR3: 0000000009a79000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (7043):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2020/06/28 09:35 linux-next 36e3135df4d4 ffec44b5 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/04/02 06:24 linux-next 770fbb32d34e a34e2c33 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/03/28 14:49 linux-next 770fbb32d34e f1ebdfba .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/03/21 19:33 linux-next 770fbb32d34e 4288d95e .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/03/20 18:23 linux-next 770fbb32d34e 2c31c529 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/03/19 05:17 linux-next 770fbb32d34e 0a96a13c .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/03/15 12:12 linux-next 770fbb32d34e 749688d2 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/03/09 07:44 linux-next 770fbb32d34e 2e9971bb .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/03/07 03:54 linux-next 770fbb32d34e fd2a5f28 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/03/26 16:22 linux-next 770fbb32d34e 6d25c5a0 .config log report syz
ci-upstream-linux-next-kasan-gce-root 2020/03/16 07:08 linux-next 770fbb32d34e 749688d2 .config log report syz
ci-upstream-kasan-gce-root 2021/11/13 04:52 upstream 7246f4dcaccc 83f5c9b5 .config log report info general protection fault in __queue_work
ci2-upstream-usb 2022/04/14 10:52 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 312310928417 b17b2923 .config log report info general protection fault in __queue_work
ci2-upstream-usb 2021/08/26 00:12 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d7428bc26fc7 b599f2fc .config log report info general protection fault in __queue_work
ci2-upstream-usb 2021/08/16 18:58 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 2dec48c32a34 6652437d .config log report info general protection fault in __queue_work
ci2-upstream-usb 2021/08/12 11:59 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 73e19de7b79a 6972b106 .config log report info general protection fault in __queue_work
ci2-upstream-usb 2021/08/07 22:26 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 548011957d1d 6972b106 .config log report info general protection fault in __queue_work
ci2-upstream-usb 2021/07/27 18:50 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 4356ad83792f 17d6ab15 .config log report info general protection fault in __queue_work
ci2-upstream-usb 2021/07/22 20:26 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 8e6cb5d27e82 241790bb .config log report info general protection fault in __queue_work
ci2-upstream-usb 2021/06/09 16:55 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 60dfe484cef4 84fe5d96 .config log report info general protection fault in __queue_work
ci2-upstream-usb 2021/06/05 13:22 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 87191ca9f902 500c2339 .config log report info general protection fault in __queue_work
ci-upstream-linux-next-kasan-gce-root 2020/07/01 11:37 linux-next c28e58ee9dad 917afeaa .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/01 09:53 linux-next c28e58ee9dad 917afeaa .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/01 08:05 linux-next c28e58ee9dad 917afeaa .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/01 06:04 linux-next c28e58ee9dad 917afeaa .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/01 05:27 linux-next c28e58ee9dad 917afeaa .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/01 04:05 linux-next c28e58ee9dad 917afeaa .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/01 02:48 linux-next c28e58ee9dad 917afeaa .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/01 02:35 linux-next c28e58ee9dad 917afeaa .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/01 00:59 linux-next c28e58ee9dad 917afeaa .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/30 23:28 linux-next c28e58ee9dad 917afeaa .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/30 20:08 linux-next c28e58ee9dad 917afeaa .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/30 18:11 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/30 16:44 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/30 15:20 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/30 14:11 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/30 12:53 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/30 12:03 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/30 11:02 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/30 07:07 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/30 05:09 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/30 01:19 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/29 23:50 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/29 23:10 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/29 21:20 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/29 20:10 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/29 18:35 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/29 17:14 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/29 15:56 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/29 15:35 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/29 14:35 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/29 12:58 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/29 11:53 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/29 09:08 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/29 07:58 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/29 06:56 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/06/29 05:51 linux-next 36e3135df4d4 a2cdad9d .config log report
ci-upstream-linux-next-kasan-gce-root 2020/03/06 22:31 linux-next 770fbb32d34e fd2a5f28 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/03/06 21:16 linux-next 770fbb32d34e c88c7b75 .config log report