bisecting fixing commit since ad326970d25cc85128cd22d62398751ad072efff building syzkaller on f24824d3d54060a7d878eeb35c47f85dab84966a testing commit ad326970d25cc85128cd22d62398751ad072efff with gcc (GCC) 8.1.0 kernel signature: d949b9b2b134ae6c3268eb32be781942e52fe113d34401cc15ddc00839918dc3 all runs: crashed: divide error in do_journal_end testing current HEAD 13d2ce42de8cb98ff952f8de6307f896203854c2 testing commit 13d2ce42de8cb98ff952f8de6307f896203854c2 with gcc (GCC) 8.1.0 kernel signature: b238f57e188d65ae2875c70a3de1fe85d6087b13978e15314fdc583db70f03a3 all runs: crashed: divide error in do_journal_end revisions tested: 2, total time: 23m50.774933384s (build: 17m19.697187384s, test: 5m46.872129263s) the crash still happens on HEAD commit msg: Linux 4.19.163 crash: divide error in do_journal_end REISERFS (device loop4): Using tea hash to sort names REISERFS (device loop4): using 3.5.x disk format REISERFS (device loop4): Created .reiserfs_priv - reserved for xattr storage. divide error: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 7819 Comm: syz-executor.4 Not tainted 4.19.163-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:do_journal_end+0x2129/0x4400 fs/reiserfs/journal.c:4204 Code: 95 c6 41 84 f3 0f 85 cf 14 00 00 41 83 e0 07 44 38 c2 40 0f 9e c6 84 d2 0f 95 c2 40 84 d6 0f 85 b6 14 00 00 41 8b 7d 14 31 d2 <48> f7 f7 48 8d 79 18 4a 8d 34 12 48 89 f8 48 c1 e8 03 80 3c 18 00 RSP: 0018:ffff8881cd9efb08 EFLAGS: 00010246 RAX: 0000000000000005 RBX: dffffc0000000000 RCX: ffff8881db13f140 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffff8881cd9efc10 R08: 0000000000000007 R09: ffffed103eca4552 R10: 0000000000000000 R11: 0000000000000001 R12: ffffc90002397048 R13: ffff8881c67f9000 R14: ffff8881ce8e8140 R15: 0000000000001000 FS: 00000000021fa940(0000) GS:ffff8881f6500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000002203a98 CR3: 00000001dc048003 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: journal_end_sync+0x117/0x210 fs/reiserfs/journal.c:3534 reiserfs_sync_fs+0xcc/0xe0 fs/reiserfs/super.c:78 __sync_filesystem fs/sync.c:39 [inline] sync_filesystem+0x165/0x1f0 fs/sync.c:67 generic_shutdown_super+0x69/0x330 fs/super.c:442 kill_block_super+0x96/0xe0 fs/super.c:1185 reiserfs_kill_sb+0x171/0x1d0 fs/reiserfs/super.c:570 deactivate_locked_super+0x77/0xd0 fs/super.c:329 deactivate_super+0x13f/0x160 fs/super.c:360 cleanup_mnt+0xa3/0x130 fs/namespace.c:1098 __cleanup_mnt+0xd/0x10 fs/namespace.c:1105 task_work_run+0x108/0x180 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x185/0x1e0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x413/0x4e0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4608e7 Code: 64 89 04 25 d0 02 00 00 58 5f ff d0 48 89 c7 e8 2f be ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 ad 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffe29561fa8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00000000004608e7 RDX: 00000000004031f8 RSI: 0000000000000002 RDI: 00007ffe29562050 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000009 R10: 0000000000000005 R11: 0000000000000246 R12: 00007ffe295630e0 R13: 00000000021fba60 R14: 0000000000000000 R15: 00007ffe295630e0 Modules linked in: ---[ end trace 2d6e56a95ae85d13 ]--- RIP: 0010:do_journal_end+0x2129/0x4400 fs/reiserfs/journal.c:4204 Code: 95 c6 41 84 f3 0f 85 cf 14 00 00 41 83 e0 07 44 38 c2 40 0f 9e c6 84 d2 0f 95 c2 40 84 d6 0f 85 b6 14 00 00 41 8b 7d 14 31 d2 <48> f7 f7 48 8d 79 18 4a 8d 34 12 48 89 f8 48 c1 e8 03 80 3c 18 00 RSP: 0018:ffff8881cd9efb08 EFLAGS: 00010246 RAX: 0000000000000005 RBX: dffffc0000000000 RCX: ffff8881db13f140 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffff8881cd9efc10 R08: 0000000000000007 R09: ffffed103eca4552 R10: 0000000000000000 R11: 0000000000000001 R12: ffffc90002397048 R13: ffff8881c67f9000 R14: ffff8881ce8e8140 R15: 0000000000001000 FS: 00000000021fa940(0000) GS:ffff8881f6500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f32ab383000 CR3: 00000001dc048003 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400