syzbot


WARNING in bch2_prt_printf

Status: upstream: reported C repro on 2024/05/10 22:36
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+4e41a25632658c77b441@syzkaller.appspotmail.com
First crash: 46d, last: 34d
Cause bisection: introduced by (bisect log) :
commit f39055220f6f98a180e3503fe05bbf9921c425c8
Author: Kent Overstreet <kent.overstreet@linux.dev>
Date: Mon May 6 02:28:00 2024 +0000

  bcachefs: Add missing validation for superblock section clean

Crash: WARNING in bch2_prt_printf (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [bcachefs?] WARNING in bch2_prt_printf 1 (3) 2024/05/22 23:30
Last patch testing requests (4)
Created Duration User Patch Repo Result
2024/06/06 03:07 10m retest repro upstream report log
2024/06/06 03:07 18m retest repro upstream OK log
2024/06/06 03:07 10m retest repro upstream report log
2024/06/06 01:45 18m retest repro linux-next report log

Sample crash report:
loop0: detected capacity change from 0 to 32768
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5070 at mm/page_alloc.c:4551 __alloc_pages+0x36a/0x6c0 mm/page_alloc.c:4551
Modules linked in:
CPU: 0 PID: 5070 Comm: syz-executor243 Not tainted 6.9.0-rc7-syzkaller-00188-gba16c1cf11c9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:__alloc_pages+0x36a/0x6c0 mm/page_alloc.c:4551
Code: a9 00 00 08 00 0f 85 12 01 00 00 44 89 e9 81 e1 7f ff ff ff a9 00 00 04 00 44 0f 45 e9 e9 02 01 00 00 c6 05 68 ee a7 0d 01 90 <0f> 0b 90 83 fb 0a 0f 86 6c fd ff ff 45 31 ed 48 c7 44 24 20 0e 36
RSP: 0000:ffffc90002d8ea20 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 000000000000000b RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc90002d8eaa8
RBP: ffffc90002d8eb38 R08: ffffc90002d8eaa7 R09: 0000000000000000
R10: ffffc90002d8ea80 R11: fffff520005b1d55 R12: 1ffff920005b1d4c
R13: 0000000000040cc0 R14: dffffc0000000000 R15: 1ffff920005b1d48
FS:  000055557cb25380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055da796c6ff0 CR3: 000000001e968000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __alloc_pages_node include/linux/gfp.h:238 [inline]
 alloc_pages_node include/linux/gfp.h:261 [inline]
 __kmalloc_large_node+0x91/0x1f0 mm/slub.c:3917
 __do_kmalloc_node mm/slub.c:3960 [inline]
 __kmalloc_node_track_caller+0x339/0x4f0 mm/slub.c:3992
 __do_krealloc mm/slab_common.c:1192 [inline]
 krealloc+0x7d/0x120 mm/slab_common.c:1225
 bch2_printbuf_make_room fs/bcachefs/printbuf.c:38 [inline]
 bch2_prt_printf+0x32a/0x610 fs/bcachefs/printbuf.c:78
 journal_entry_btree_keys_to_text+0x3ef/0x6b0 fs/bcachefs/journal_io.c:409
 bch2_sb_clean_to_text+0x148/0x250 fs/bcachefs/sb-clean.c:316
 bch2_sb_field_validate+0x1f7/0x2d0 fs/bcachefs/super-io.c:1228
 bch2_sb_validate+0xa79/0xe10 fs/bcachefs/super-io.c:468
 __bch2_read_super+0xc9a/0x1460 fs/bcachefs/super-io.c:822
 bch2_fs_open+0x246/0xdf0 fs/bcachefs/super.c:2052
 bch2_mount+0x71d/0x1320 fs/bcachefs/fs.c:1903
 legacy_get_tree+0xee/0x190 fs/fs_context.c:662
 vfs_get_tree+0x90/0x2a0 fs/super.c:1779
 do_new_mount+0x2be/0xb40 fs/namespace.c:3352
 do_mount fs/namespace.c:3692 [inline]
 __do_sys_mount fs/namespace.c:3898 [inline]
 __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3875
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8dccb6993a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc73560518 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffc73560530 RCX: 00007f8dccb6993a
RDX: 0000000020011a00 RSI: 00000000200000c0 RDI: 00007ffc73560530
RBP: 0000000000000004 R08: 00007ffc73560570 R09: 00000000000119fd
R10: 0000000001200014 R11: 0000000000000282 R12: 0000000001200014
R13: 00007ffc73560570 R14: 0000000000000003 R15: 0000000001000000
 </TASK>

Crashes (18):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/12 19:20 upstream ba16c1cf11c9 9026e142 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in bch2_prt_printf
2024/05/10 23:30 upstream f4345f05c0df f7c35481 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in bch2_prt_printf
2024/05/10 21:49 linux-next 75fa778d74b7 f7c35481 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING in bch2_prt_printf
2024/05/19 06:37 upstream 0450d2083be6 c0f1611a .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in bch2_prt_printf
2024/05/23 01:16 upstream b6394d6f7159 4d098039 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_prt_printf
2024/05/21 09:54 upstream 72ece20127a3 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in bch2_prt_printf
2024/05/19 09:34 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in bch2_prt_printf
2024/05/19 09:34 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in bch2_prt_printf
2024/05/19 08:57 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in bch2_prt_printf
2024/05/19 08:57 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in bch2_prt_printf
2024/05/19 08:36 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in bch2_prt_printf
2024/05/19 08:26 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_prt_printf
2024/05/19 08:26 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_prt_printf
2024/05/19 07:54 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in bch2_prt_printf
2024/05/19 07:54 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in bch2_prt_printf
2024/05/19 05:56 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_prt_printf
2024/05/19 05:56 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_prt_printf
2024/05/10 21:30 linux-next 75fa778d74b7 f7c35481 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bch2_prt_printf
* Struck through repros no longer work on HEAD.