syzbot


general protection fault in put_pwq_unlocked (2)

Status: upstream: reported C repro on 2024/10/20 06:45
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+aa930d41d2f32904c5da@syzkaller.appspotmail.com
First crash: 182d, last: 2d17h
Cause bisection: introduced by (bisect log) :
commit 62719cf33c3ad62986130a19496cd864a0ed06c3
Author: Kent Overstreet <kent.overstreet@linux.dev>
Date: Sat Dec 23 22:50:29 2023 +0000

  bcachefs: Fix nochanges/read_only interaction

Crash: WARNING: locking bug in mempool_init_node (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] general protection fault in put_pwq_unlocked (2) 0 (4) 2024/12/19 16:50
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in put_pwq_unlocked btrfs 7 296d 310d 26/28 fixed on 2024/07/31 03:12

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xf11024afb8802002: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: maybe wild-memory-access in range [0x8881457dc4010010-0x8881457dc4010017]
CPU: 1 UID: 0 PID: 5817 Comm: syz-executor163 Not tainted 6.13.0-rc3-syzkaller-00073-geabcdba3ad40 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024
RIP: 0010:__lock_acquire+0x6a/0x2100 kernel/locking/lockdep.c:5089
Code: b6 04 30 84 c0 0f 85 f8 16 00 00 45 31 f6 83 3d cb ce 9d 0e 00 0f 84 c8 13 00 00 89 54 24 60 89 5c 24 38 4c 89 f8 48 c1 e8 03 <80> 3c 30 00 74 12 4c 89 ff e8 38 93 88 00 48 be 00 00 00 00 00 fc
RSP: 0018:ffffc90003a87950 EFLAGS: 00010803
RAX: 111028afb8802002 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 8881457dc4010017
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000001
R10: dffffc0000000000 R11: fffffbfff2030a27 R12: ffff888030045a00
R13: 0000000000000000 R14: 0000000000000000 R15: 8881457dc4010017
FS:  00005555749e8480(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f624dfff000 CR3: 000000007761c000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849
 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline]
 _raw_spin_lock_irq+0xd3/0x120 kernel/locking/spinlock.c:170
 put_pwq_unlocked+0x42/0x190 kernel/workqueue.c:1662
 destroy_workqueue+0x99d/0xc40 kernel/workqueue.c:5897
 __bch2_fs_free fs/bcachefs/super.c:596 [inline]
 bch2_fs_release+0x69d/0x7d0 fs/bcachefs/super.c:611
 kobject_cleanup lib/kobject.c:689 [inline]
 kobject_release lib/kobject.c:720 [inline]
 kref_put include/linux/kref.h:65 [inline]
 kobject_put+0x22f/0x480 lib/kobject.c:737
 deactivate_locked_super+0xc4/0x130 fs/super.c:473
 cleanup_mnt+0x41f/0x4b0 fs/namespace.c:1373
 task_work_run+0x24f/0x310 kernel/task_work.c:239
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:114 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x13f/0x340 kernel/entry/common.c:218
 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f62555f9517
Code: 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffe0e922dc8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f62555f9517
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffe0e922e80
RBP: 00007ffe0e922e80 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000202 R12: 00007ffe0e923f40
R13: 00005555749e97c0 R14: 00007ffe0e923f80 R15: 0000000000000008
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__lock_acquire+0x6a/0x2100 kernel/locking/lockdep.c:5089
Code: b6 04 30 84 c0 0f 85 f8 16 00 00 45 31 f6 83 3d cb ce 9d 0e 00 0f 84 c8 13 00 00 89 54 24 60 89 5c 24 38 4c 89 f8 48 c1 e8 03 <80> 3c 30 00 74 12 4c 89 ff e8 38 93 88 00 48 be 00 00 00 00 00 fc
RSP: 0018:ffffc90003a87950 EFLAGS: 00010803
RAX: 111028afb8802002 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 8881457dc4010017
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000001
R10: dffffc0000000000 R11: fffffbfff2030a27 R12: ffff888030045a00
R13: 0000000000000000 R14: 0000000000000000 R15: 8881457dc4010017
FS:  00005555749e8480(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f624dfff000 CR3: 000000007761c000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	b6 04                	mov    $0x4,%dh
   2:	30 84 c0 0f 85 f8 16 	xor    %al,0x16f8850f(%rax,%rax,8)
   9:	00 00                	add    %al,(%rax)
   b:	45 31 f6             	xor    %r14d,%r14d
   e:	83 3d cb ce 9d 0e 00 	cmpl   $0x0,0xe9dcecb(%rip)        # 0xe9dcee0
  15:	0f 84 c8 13 00 00    	je     0x13e3
  1b:	89 54 24 60          	mov    %edx,0x60(%rsp)
  1f:	89 5c 24 38          	mov    %ebx,0x38(%rsp)
  23:	4c 89 f8             	mov    %r15,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	80 3c 30 00          	cmpb   $0x0,(%rax,%rsi,1) <-- trapping instruction
  2e:	74 12                	je     0x42
  30:	4c 89 ff             	mov    %r15,%rdi
  33:	e8 38 93 88 00       	call   0x889370
  38:	48                   	rex.W
  39:	be 00 00 00 00       	mov    $0x0,%esi
  3e:	00 fc                	add    %bh,%ah

Crashes (100):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/19 04:38 upstream eabcdba3ad40 1432fc84 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs general protection fault in put_pwq_unlocked
2024/12/28 13:06 upstream fd0584d220fe d3ccff63 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs general protection fault in put_pwq_unlocked
2024/12/14 15:26 upstream a446e965a188 7cbfbb3a .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/25 13:18 upstream 2f2d52945852 875573af .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/24 17:36 upstream 38fec10eb60d 875573af .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/23 20:47 upstream 586de92313fc 4e8d3850 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/23 18:22 upstream 586de92313fc 4e8d3850 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/23 07:13 upstream 183601b78a9b 4e8d3850 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/22 06:16 upstream d07de43e3f05 c6512ef7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/20 18:35 upstream 5fc319360819 9209bc22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/18 18:50 upstream 76b6905c11fd 22a6c2b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/17 23:52 upstream 4701f33a1070 ce3352cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/16 01:31 upstream 3571e8b091f4 e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/15 14:57 upstream a29967be967e e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/14 10:51 upstream 4003c9e78778 e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/12 09:21 upstream 0b46b049d6ec ee70e6db .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/12 07:31 upstream 0b46b049d6ec ee70e6db .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/10 19:25 upstream 80e54e84911a 16256247 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/06 03:55 upstream bb2281fb05e5 831e3629 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/06 01:10 upstream bb2281fb05e5 831e3629 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/04 07:10 upstream 99fa936e8e4f c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/04 05:41 upstream 99fa936e8e4f c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/04 05:41 upstream 99fa936e8e4f c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/03 10:16 upstream 7eb172143d55 c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/02 09:12 upstream ece144f151ac c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/02 04:18 upstream 03d38806a902 c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/01 22:43 upstream 03d38806a902 c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/01 20:37 upstream 03d38806a902 c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/03/01 02:51 upstream 76544811c850 67cf5345 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/02/28 14:56 upstream 76544811c850 67cf5345 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/02/27 07:17 upstream 5394eea10651 6a8fcbc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/02/26 21:14 upstream ac9c34d1e45a 6a8fcbc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/02/26 19:00 upstream ac9c34d1e45a 6a8fcbc4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in put_pwq_unlocked
2025/02/26 12:46 upstream ac9c34d1e45a d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/02/24 08:45 upstream d082ecbc71e9 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/02/22 08:23 upstream ff202c5028a1 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/02/20 19:21 upstream e9a8cac0bf89 0808a665 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/02/19 15:26 upstream 6537cfb395f3 b257a9b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/02/19 01:36 upstream 6537cfb395f3 9a14138f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/02/16 09:09 upstream ad1b832bf1cf 40a34ec9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/02/14 03:35 upstream 68763b29e0a6 d9a046cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/02/12 02:19 upstream 09fbf3d50205 f2baddf5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/02/11 15:06 upstream febbc555cf0f f2baddf5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/02/10 18:12 upstream a64dcfb451e2 43f51a00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/02/10 04:42 upstream 69b54314c975 ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/02/09 16:57 upstream 9946eaf552b1 ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/01/31 04:28 upstream b8a1c9f4b710 4c6ac32f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/01/30 03:09 upstream 805ba04cb7cc afe4eff5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/01/29 23:20 upstream 805ba04cb7cc 136953f1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/01/28 02:48 upstream 805ba04cb7cc 18070896 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/01/26 09:16 upstream aa22f4da2a46 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/01/26 04:55 upstream 0f8e26b38d7a 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/01/25 19:34 upstream 0f8e26b38d7a 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/01/24 22:54 upstream bc8198dc7ebc 1293872d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/01/24 04:13 upstream d0d106a2bd21 521b0ce3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2024/10/20 03:14 upstream f9e4825524aa cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2024/09/26 14:16 upstream 11a299a7933e 0d19f247 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in put_pwq_unlocked
2025/02/23 20:16 linux-next e5d3fd687aac d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in put_pwq_unlocked
2024/11/16 15:18 upstream e8bdb3c8be08 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel paging request in put_pwq_unlocked
* Struck through repros no longer work on HEAD.