syzbot


WARNING in set_precision (3)

Status: auto-obsoleted due to no activity on 2024/07/28 11:14
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+25cbf9415915b655f11f@syzkaller.appspotmail.com
First crash: 137d, last: 137d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [bcachefs?] WARNING in set_precision (3) 0 (1) 2024/05/20 14:18
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in set_precision (2) wireless C done 117 1630d 1728d 15/28 fixed on 2020/06/18 13:57
upstream WARNING in set_precision net C 140 2268d 2309d 8/28 fixed on 2018/08/07 13:43
android-49 WARNING in set_precision C 1320 2347d 2468d 3/3 fixed on 2018/05/02 05:33
android-49 WARNING in set_precision (2) C 1537 2255d 2002d 0/3 public: reported C repro on 2019/04/11 08:44
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/06/02 11:16 23m retest repro upstream OK log

Sample crash report:
precision 65535 too large
WARNING: CPU: 2 PID: 5186 at lib/vsprintf.c:2721 set_precision+0xc0/0x160 lib/vsprintf.c:2721
Modules linked in:
CPU: 2 PID: 5186 Comm: syz-executor131 Not tainted 6.9.0-syzkaller-08654-g0cc6f45cecb4 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:set_precision+0xc0/0x160 lib/vsprintf.c:2721
Code: ff 44 89 e6 e8 d1 dc b5 f6 45 84 e4 75 20 e8 47 e2 b5 f6 c6 05 4c 8b f5 04 01 90 48 c7 c7 80 2e 81 8c 89 de e8 91 f6 77 f6 90 <0f> 0b 90 90 e8 27 e2 b5 f6 31 c0 85 db 48 89 ea 0f 48 d8 b8 ff 7f
RSP: 0018:ffffc9000336ec48 EFLAGS: 00010282
RAX: 0000000000000000 RBX: 000000000000ffff RCX: ffffffff814ff309
RDX: ffff888023858000 RSI: ffffffff814ff316 RDI: 0000000000000001
RBP: ffffc9000336ecc0 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffffc9000336ecc7 R14: ffffc9000336ed98 R15: 0000000000000002
FS:  0000555570d35380(0000) GS:ffff88806b200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9e601f3870 CR3: 000000002ee12000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 vsnprintf+0xa93/0x1880 lib/vsprintf.c:2797
 bch2_prt_printf+0x19f/0x3d0 fs/bcachefs/printbuf.c:75
 bch2_xattr_to_text+0x28b/0x760 fs/bcachefs/xattr.c:121
 bch2_val_to_text fs/bcachefs/bkey_methods.c:300 [inline]
 bch2_bkey_val_to_text+0x1c9/0x210 fs/bcachefs/bkey_methods.c:310
 journal_entry_btree_keys_to_text+0x12f/0x250 fs/bcachefs/journal_io.c:410
 bch2_journal_entry_to_text+0x119/0x170 fs/bcachefs/journal_io.c:835
 bch2_sb_clean_to_text+0x109/0x210 fs/bcachefs/sb-clean.c:316
 __bch2_sb_field_to_text+0x123/0x1e0 fs/bcachefs/super-io.c:1245
 bch2_sb_field_validate+0x248/0x2d0 fs/bcachefs/super-io.c:1228
 bch2_sb_validate.isra.0+0x6d8/0xce0 fs/bcachefs/super-io.c:468
 __bch2_read_super+0x93c/0x12a0 fs/bcachefs/super-io.c:822
 bch2_fs_open+0x3e5/0x1110 fs/bcachefs/super.c:2052
 bch2_mount+0xdcc/0x1130 fs/bcachefs/fs.c:1906
 legacy_get_tree+0x109/0x220 fs/fs_context.c:662
 vfs_get_tree+0x8f/0x380 fs/super.c:1779
 do_new_mount fs/namespace.c:3352 [inline]
 path_mount+0x14e6/0x1f20 fs/namespace.c:3679
 do_mount fs/namespace.c:3692 [inline]
 __do_sys_mount fs/namespace.c:3898 [inline]
 __se_sys_mount fs/namespace.c:3875 [inline]
 __x64_sys_mount+0x297/0x320 fs/namespace.c:3875
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1d7b3d38fa
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:00007ffec78729d8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffec78729f0 RCX: 00007f1d7b3d38fa
RDX: 0000000020011a00 RSI: 0000000020000080 RDI: 00007ffec78729f0
RBP: 0000000000000004 R08: 00007ffec7872a30 R09: 0000000000011a09
R10: 0000000001200014 R11: 0000000000000282 R12: 0000000001200014
R13: 00007ffec7872a30 R14: 0000000000000003 R15: 0000000001000000
 </TASK>

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/19 06:11 upstream 0cc6f45cecb4 c2e07261 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream WARNING in set_precision
2024/05/19 11:13 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in set_precision
2024/05/19 09:58 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in set_precision
2024/05/19 09:58 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in set_precision
2024/05/19 09:17 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in set_precision
2024/05/19 08:41 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in set_precision
2024/05/19 08:24 upstream 0cc6f45cecb4 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in set_precision
2024/05/19 08:23 upstream 0cc6f45cecb4 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in set_precision
2024/05/19 05:57 upstream 0cc6f45cecb4 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in set_precision
2024/05/19 08:24 upstream 0cc6f45cecb4 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in set_precision
2024/05/19 08:23 upstream 0cc6f45cecb4 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in set_precision
2024/05/19 06:03 upstream 0cc6f45cecb4 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in set_precision
2024/05/19 06:01 upstream 0cc6f45cecb4 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in set_precision
* Struck through repros no longer work on HEAD.