syzbot


WARNING in format_decode

Status: fixed on 2018/05/08 18:30
Reported-by: syzbot+6bd77b88c1977c03f584@syzkaller.appspotmail.com
Fix commit: 9ad553abe66f fs/reiserfs/journal.c: add missing resierfs_warning() arg
First crash: 1703d, last: 1703d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 WARNING in format_decode 1 1497d 1324d 0/3 auto-closed as invalid on 2019/04/28 09:31
upstream WARNING in format_decode (2) C 16 1472d 1554d 12/24 fixed on 2018/12/07 08:24

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):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2018/03/31 19:38 upstream 10b84daddbec 0174c6c8 .config log report syz C
* Struck through repros no longer work on HEAD.