syzbot


WARNING in format_decode

Status: fixed on 2018/05/08 18:30
Subsystems: reiserfs
[Documentation on labels]
Reported-by: syzbot+6bd77b88c1977c03f584@syzkaller.appspotmail.com
Fix commit: 9ad553abe66f fs/reiserfs/journal.c: add missing resierfs_warning() arg
First crash: 2276d, last: 2276d
Discussions (10)
Title Replies (including bot) Last reply
[PATCH 3.16 000/366] 3.16.60-rc1 review 370 (370) 2019/03/29 15:47
[PATCH 4.4 00/97] 4.4.129-stable review 111 (111) 2018/05/17 08:54
[PATCH 4.16 000/196] 4.16.4-stable review 213 (213) 2018/04/28 14:59
[PATCH 4.9 00/95] 4.9.96-stable review 120 (120) 2018/04/26 06:46
[PATCH 4.14 000/164] 4.14.36-stable review 172 (172) 2018/04/24 07:25
[PATCH 3.18 00/52] 3.18.106-stable review 61 (61) 2018/04/23 21:39
syzbot dashboard 11 (11) 2018/04/18 18:33
[PATCH?] reiserfs: prevent panic: don't allow %-char in journal dev. name 10 (10) 2018/04/09 14:34
WARNING in format_decode 0 (1) 2018/03/31 20:47
WARNING in format_decode 0 (1) 2018/03/31 20:47
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in format_decode origin:upstream C 109 5d04h 219d 0/3 upstream: reported C repro on 2023/11/17 23:37
android-49 WARNING in format_decode 1 2070d 1897d 0/3 auto-closed as invalid on 2019/04/28 09:31
upstream WARNING in format_decode (3) bpf trace C done 896 5d03h 215d 0/27 upstream: reported C repro on 2023/11/21 22:43
upstream WARNING in format_decode (2) trace C 16 2045d 2127d 11/27 fixed on 2018/12/07 08:24
linux-6.1 WARNING in format_decode origin:upstream C 134 5d02h 219d 0/3 upstream: reported C repro on 2023/11/17 22:49

Sample crash report:
REISERFS (device loop0): found reiserfs format "3.5" with non-standard journal
REISERFS (device loop0): using ordered data mode
reiserfs: using flush barriers
------------[ cut here ]------------
Please remove unsupported %/ in format string
WARNING: CPU: 1 PID: 4480 at lib/vsprintf.c:2138 format_decode+0x77f/0x830 lib/vsprintf.c:2138
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 4480 Comm: syzkaller116131 Not tainted 4.16.0-rc7+ #9
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x194/0x24d lib/dump_stack.c:53
 panic+0x1e4/0x41c kernel/panic.c:183
 __warn+0x1dc/0x200 kernel/panic.c:547
 report_bug+0x1f4/0x2b0 lib/bug.c:186
 fixup_bug.part.10+0x37/0x80 arch/x86/kernel/traps.c:178
 fixup_bug arch/x86/kernel/traps.c:247 [inline]
 do_error_trap+0x2d7/0x3e0 arch/x86/kernel/traps.c:296
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:315
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:986
RIP: 0010:format_decode+0x77f/0x830 lib/vsprintf.c:2138
RSP: 0018:ffff8801acc7ef70 EFLAGS: 00010282
RAX: dffffc0000000008 RBX: ffffffff89e18dc1 RCX: ffffffff815b193e
RDX: 0000000000000000 RSI: 1ffff1003598fd9e RDI: 1ffff1003598fd73
RBP: ffff8801acc7efb0 R08: 1ffff1003598fd35 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff8801acc7f028
R13: 000000000000002f R14: ffffffff89e18dc0 R15: 0000000000000000
 vsnprintf+0x15f/0x1900 lib/vsprintf.c:2234
 vsprintf+0x2a/0x40 lib/vsprintf.c:2462
 prepare_error_buf+0x1ce/0x1870 fs/reiserfs/prints.c:240
 __reiserfs_warning+0xc8/0x1a0 fs/reiserfs/prints.c:267
 journal_init_dev fs/reiserfs/journal.c:2646 [inline]
 journal_init+0x2c9e/0x62f0 fs/reiserfs/journal.c:2772
 reiserfs_fill_super+0xf9f/0x33a0 fs/reiserfs/super.c:2034
 mount_bdev+0x2b7/0x370 fs/super.c:1119
 get_super_block+0x34/0x40 fs/reiserfs/super.c:2605
 mount_fs+0x66/0x2d0 fs/super.c:1222
 vfs_kern_mount.part.26+0xc6/0x4a0 fs/namespace.c:1037
 vfs_kern_mount fs/namespace.c:2509 [inline]
 do_new_mount fs/namespace.c:2512 [inline]
 do_mount+0xea4/0x2bb0 fs/namespace.c:2842
 SYSC_mount fs/namespace.c:3058 [inline]
 SyS_mount+0xab/0x120 fs/namespace.c:3035
 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x442dea
RSP: 002b:00007fff69379cf8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000442dea
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fff69379d00
RBP: 0000000000000004 R08: 0000000020000500 R09: 000000000000000a
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000401c50
R13: 0000000000401ce0 R14: 0000000000000000 R15: 0000000000000000
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/03/31 19:38 upstream 10b84daddbec 0174c6c8 .config console log report syz C ci-upstream-kasan-gce-root
* Struck through repros no longer work on HEAD.