bisecting fixing commit since ad326970d25cc85128cd22d62398751ad072efff building syzkaller on f24824d3d54060a7d878eeb35c47f85dab84966a testing commit ad326970d25cc85128cd22d62398751ad072efff with gcc (GCC) 8.1.0 kernel signature: a24b4db11194bab176f1192cfbf35f818aed515f3666dfa0d72d0cd68647fcd7 all runs: crashed: divide error in do_journal_end testing current HEAD 0c88e405c97ed1828443b67891e6d4bb6e56cd4e testing commit 0c88e405c97ed1828443b67891e6d4bb6e56cd4e with gcc (GCC) 8.1.0 kernel signature: c98999e6753a1fafaf5e277a0fe5e297b62a5e8434501b463a4e11870030841f all runs: crashed: divide error in do_journal_end revisions tested: 2, total time: 23m40.158836858s (build: 17m11.735452885s, test: 5m58.073534101s) the crash still happens on HEAD commit msg: Linux 4.19.160 crash: divide error in do_journal_end REISERFS (device loop2): Using tea hash to sort names REISERFS (device loop2): using 3.5.x disk format REISERFS (device loop2): Created .reiserfs_priv - reserved for xattr storage. divide error: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 7823 Comm: syz-executor.2 Not tainted 4.19.160-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:ffff8881d054fb08 EFLAGS: 00010246 RAX: 0000000000000005 RBX: dffffc0000000000 RCX: ffff8881e92e7400 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffff8881d054fc10 R08: 0000000000000007 R09: ffffed103ec84552 R10: 0000000000000000 R11: 0000000000000001 R12: ffffc900024a4048 R13: ffff8881c886f000 R14: ffff8881d0558300 R15: 0000000000001000 FS: 0000000002130940(0000) GS:ffff8881f6400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffe0a973e1c CR3: 00000001dd73f001 CR4: 00000000001606f0 REISERFS (device loop3): Using tea hash to sort names DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 REISERFS (device loop3): using 3.5.x disk format 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 REISERFS (device loop3): Created .reiserfs_priv - reserved for xattr storage. __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 REISERFS (device loop1): Using tea hash to sort names tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x185/0x1e0 arch/x86/entry/common.c:167 REISERFS (device loop1): using 3.5.x disk format 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 REISERFS (device loop1): Created .reiserfs_priv - reserved for xattr storage. 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:00007ffe0a974528 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 000000000000d600 RCX: 00000000004608e7 RDX: 00000000004031f8 RSI: 0000000000000002 RDI: 00007ffe0a9745d0 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000009 R10: 0000000000000005 R11: 0000000000000246 R12: 00007ffe0a975660 R13: 0000000002131a60 R14: 0000000000000000 R15: 00007ffe0a975660 Modules linked in: divide error: 0000 [#2] PREEMPT SMP KASAN CPU: 0 PID: 7817 Comm: syz-executor.3 Tainted: G D 4.19.160-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:ffff8881dad2fb08 EFLAGS: 00010246 RAX: 0000000000000005 RBX: dffffc0000000000 RCX: ffff8881cf6852c0 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffff8881dad2fc10 R08: 0000000000000007 R09: ffffed103ad5b1a5 R10: 0000000000000000 R11: 0000000000000001 R12: ffffc900025e7048 R13: ffff8881c64c8000 R14: ffff8881e76fc500 R15: 0000000000001000 FS: 0000000001b57940(0000) GS:ffff8881f6400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fac8154a028 CR3: 00000001db880003 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: REISERFS (device loop0): Using tea hash to sort names REISERFS (device loop0): using 3.5.x disk format 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 REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. 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 ---[ end trace 10b183f27f67586f ]--- 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:00007ffc7b038fc8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 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:ffff8881d054fb08 EFLAGS: 00010246 RAX: 0000000000000005 RBX: dffffc0000000000 RCX: ffff8881e92e7400 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffff8881d054fc10 R08: 0000000000000007 R09: ffffed103ec84552 R10: 0000000000000000 R11: 0000000000000001 R12: ffffc900024a4048 RAX: 0000000000000000 RBX: 0000000000000064 RCX: 00000000004608e7 RDX: 00000000004031f8 RSI: 0000000000000002 RDI: 00007ffc7b039070 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000009 R10: 0000000000000005 R11: 0000000000000246 R12: 00007ffc7b03a100 R13: 0000000001b58a60 R14: 0000000000000000 R15: 00007ffc7b03a100 Modules linked in: divide error: 0000 [#3] PREEMPT SMP KASAN R13: ffff8881c886f000 R14: ffff8881d0558300 R15: 0000000000001000 CPU: 0 PID: 7826 Comm: syz-executor.1 Tainted: G D 4.19.160-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:ffff8881db107b08 EFLAGS: 00010246 RAX: 0000000000000005 RBX: dffffc0000000000 RCX: ffff8881dbce7280 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffff8881db107c10 R08: 0000000000000007 R09: ffffed103eb80c7d R10: 0000000000000000 R11: 0000000000000001 R12: ffffc90002383048 R13: ffff8881c88c0000 R14: ffff8881e7c2ce00 R15: 0000000000001000 FS: 0000000001704940(0000) GS:ffff8881f6400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000002efca98 CR3: 00000001daa87004 CR4: 00000000001606f0 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:00007ffe1526a7d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 000000000000002d RCX: 00000000004608e7 RDX: 00000000004031f8 RSI: 0000000000000002 RDI: 00007ffe1526a880 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000009 R10: 0000000000000005 R11: 0000000000000246 R12: 00007ffe1526b910 R13: 0000000001705a60 R14: 0000000000000000 R15: 00007ffe1526b910 Modules linked in: ---[ end trace 10b183f27f675870 ]--- FS: 0000000002130940(0000) GS:ffff8881f6500000(0000) knlGS:0000000000000000 RIP: 0010:do_journal_end+0x2129/0x4400 fs/reiserfs/journal.c:4204 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fac81550000 CR3: 00000001dd73f002 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400