syzbot


divide error in do_journal_end (2)

Status: upstream: reported C repro on 2021/04/28 16:52
Reported-by: syzbot+5b433e82ccf79a4ea8a3@syzkaller.appspotmail.com
First crash: 1064d, last: 576d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream divide error in do_journal_end reiserfs 2 1224d 1251d 0/26 auto-closed as invalid on 2021/03/19 22:00
upstream divide error in do_journal_end (3) reiserfs C error done 83 80d 461d 0/26 upstream: reported C repro on 2022/12/23 02:34
upstream divide error in do_journal_end (2) reiserfs C inconclusive 2 1051d 1051d 20/26 fixed on 2021/11/10 00:50
linux-5.15 divide error in do_journal_end origin:upstream C 2 16d 263d 0/3 upstream: reported C repro on 2023/07/08 18:42
linux-4.19 divide error in do_journal_end (3) reiserfs C error 1 426d 426d 0/1 upstream: reported C repro on 2023/01/27 02:59
linux-4.19 divide error in do_journal_end (2) C done 4 990d 1101d 1/1 fixed on 2021/08/12 11:53
linux-6.1 divide error in do_journal_end origin:upstream C 1 17d 89d 0/3 upstream: reported C repro on 2023/12/30 01:46
linux-4.14 divide error in do_journal_end C done 1 1174d 1234d 1/1 fixed on 2021/02/21 17:18
linux-4.19 divide error in do_journal_end C done 2 1186d 1246d 1/1 fixed on 2021/01/27 05:38
Last patch testing requests (1)
Created Duration User Patch Repo Result
2023/03/05 12:32 9m retest repro linux-4.14.y report log
Fix bisection attempts (17)
Created Duration User Patch Repo Result
2022/10/13 02:11 0m bisect fix linux-4.14.y error job log (0)
2022/08/30 01:40 29m bisect fix linux-4.14.y job log (0) log
2022/07/28 08:34 22m bisect fix linux-4.14.y job log (0) log
2022/06/28 08:00 21m bisect fix linux-4.14.y job log (0) log
2022/05/28 19:45 21m bisect fix linux-4.14.y job log (0) log
2022/04/28 19:19 20m bisect fix linux-4.14.y job log (0) log
2022/03/29 18:54 22m bisect fix linux-4.14.y job log (0) log
2022/02/26 11:06 30m bisect fix linux-4.14.y job log (0) log
2022/01/27 09:30 31m bisect fix linux-4.14.y job log (0) log
2021/12/28 09:01 29m bisect fix linux-4.14.y job log (0) log
2021/11/28 08:31 28m bisect fix linux-4.14.y job log (0) log
2021/10/29 08:02 27m bisect fix linux-4.14.y job log (0) log
2021/09/25 19:31 21m bisect fix linux-4.14.y job log (0) log
2021/08/26 19:04 26m bisect fix linux-4.14.y job log (0) log
2021/07/27 17:55 25m bisect fix linux-4.14.y job log (0) log
2021/06/27 17:33 22m bisect fix linux-4.14.y job log (0) log
2021/05/28 17:07 25m bisect fix linux-4.14.y job log (0) log

Sample crash report:
reiserfs: using flush barriers
REISERFS (device loop0): journal params: device loop0, size 8192, journal first block 10, max trans len 1024, max batch 900, max commit age 30, max trans age 30
REISERFS (device loop0): checking transaction log (loop0)
REISERFS (device loop0): Using rupasov hash to sort names
REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage.
divide error: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 7970 Comm: syz-executor152 Not tainted 4.14.232-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880b4ec0640 task.stack: ffff8880a1ca0000
RIP: 0010:do_journal_end+0x212e/0x4260 fs/reiserfs/journal.c:4201
RSP: 0018:ffff8880a1ca7ab8 EFLAGS: 00010246
RAX: 0000000000000005 RBX: dffffc0000000000 RCX: ffff8880965f2cc0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90005afd048 R08: ffffffff8b9b54c0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffff888099ee3000
R13: 0000000000000001 R14: ffff8880b3ea6140 R15: 0000000000001000
FS:  0000000001413300(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004b51d0 CR3: 00000000a10fc000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 reiserfs_sync_fs+0xbb/0xd0 fs/reiserfs/super.c:78
 __sync_filesystem fs/sync.c:39 [inline]
 sync_filesystem fs/sync.c:67 [inline]
 sync_filesystem+0x185/0x230 fs/sync.c:48
 generic_shutdown_super+0x70/0x370 fs/super.c:432
 kill_block_super+0x95/0xe0 fs/super.c:1161
 deactivate_locked_super+0x6c/0xd0 fs/super.c:319
 deactivate_super+0x7f/0xa0 fs/super.c:350
 cleanup_mnt+0x186/0x2c0 fs/namespace.c:1183
 task_work_run+0x11f/0x190 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0xa44/0x2850 kernel/exit.c:868
 do_group_exit+0x100/0x2e0 kernel/exit.c:965
 SYSC_exit_group kernel/exit.c:976 [inline]
 SyS_exit_group+0x19/0x20 kernel/exit.c:974
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x442ed9
RSP: 002b:00007fff46b20338 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00000000004b42f0 RCX: 0000000000442ed9
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 0000000000000001 R08: ffffffffffffffc0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004b42f0
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
Code: 95 c2 45 84 d3 0f 85 6a 15 00 00 83 e2 07 40 38 d6 0f 9e c2 40 84 f6 40 0f 95 c6 40 84 f2 0f 85 51 15 00 00 41 8b 7c 24 14 31 d2 <48> f7 f7 48 8d 79 18 4a 8d 34 0a 48 89 f8 48 c1 e8 03 80 3c 18 
RIP: do_journal_end+0x212e/0x4260 fs/reiserfs/journal.c:4201 RSP: ffff8880a1ca7ab8
---[ end trace c83264a7eb83c969 ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/28 16:51 linux-4.14.y 7d7d1c0ab3eb 77e2b668 .config console log report syz C ci2-linux-4-14 divide error in do_journal_end
* Struck through repros no longer work on HEAD.