syzbot


WARNING: refcount bug in nilfs_put_root

Status: closed as dup on 2022/10/04 08:41
Subsystems: nilfs
[Documentation on labels]
Reported-by: syzbot+7b6d672e5810fec9e6eb@syzkaller.appspotmail.com
First crash: 812d, last: 775d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
KASAN: use-after-free Read in nilfs_segctor_confirm nilfs C inconclusive 19 793d 812d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] WARNING: refcount bug in nilfs_put_root 1 (2) 2022/10/02 16:02

Sample crash report:
loop0: detected capacity change from 0 to 2048
------------[ cut here ]------------
refcount_t: underflow; use-after-free.
WARNING: CPU: 1 PID: 3030 at lib/refcount.c:87 refcount_dec_and_lock+0x180/0x1ec lib/refcount.c:146
Modules linked in:
CPU: 1 PID: 3030 Comm: syz-executor186 Not tainted 6.0.0-rc7-syzkaller-18095-gbbed346d5a96 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : refcount_dec_and_lock+0x180/0x1ec lib/refcount.c:146
lr : refcount_dec_not_one lib/refcount.c:87 [inline]
lr : refcount_dec_and_lock+0x17c/0x1ec lib/refcount.c:146
sp : ffff8000126e3a30
x29: ffff8000126e3a30 x28: ffff80000cc15062 x27: ffff0000c7c38640
x26: 0000000000000002 x25: 00000000ffffffff x24: 0000000000000000
x23: 00000000c0000000 x22: 0000000000000000 x21: ffff80000d5eb4a0
x20: ffff0000c8c9b420 x19: ffff80000d8c8000 x18: 00000000000000c0
x17: ffff80000dd0b198 x16: ffff80000db49158 x15: ffff0000c8f39a80
x14: 0000000000000000 x13: 00000000ffffffff x12: ffff0000c8f39a80
x11: ff808000081c0d5c x10: 0000000000000000 x9 : 71c13a87731a7b00
x8 : 71c13a87731a7b00 x7 : ffff80000819545c x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000
x2 : 0000000000000000 x1 : 0000000100000000 x0 : 0000000000000000
Call trace:
 refcount_dec_and_lock+0x180/0x1ec lib/refcount.c:146
 nilfs_put_root+0x30/0x80 fs/nilfs2/the_nilfs.c:797
 nilfs_segctor_destroy fs/nilfs2/segment.c:2747 [inline]
 nilfs_detach_log_writer+0x3b8/0x4d0 fs/nilfs2/segment.c:2810
 nilfs_put_super+0x28/0x9c fs/nilfs2/super.c:468
 generic_shutdown_super+0x8c/0x190 fs/super.c:491
 kill_block_super+0x30/0x78 fs/super.c:1427
 deactivate_locked_super+0x70/0xe8 fs/super.c:332
 deactivate_super+0xd0/0xd4 fs/super.c:363
 cleanup_mnt+0x1f8/0x234 fs/namespace.c:1186
 __cleanup_mnt+0x20/0x30 fs/namespace.c:1193
 task_work_run+0xc4/0x14c kernel/task_work.c:177
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0x26c/0xbe0 kernel/exit.c:795
 do_group_exit+0x60/0xe8 kernel/exit.c:925
 __do_sys_exit_group kernel/exit.c:936 [inline]
 __se_sys_exit_group kernel/exit.c:934 [inline]
 __wake_up_parent+0x0/0x40 kernel/exit.c:934
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall arch/arm64/kernel/syscall.c:52 [inline]
 el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:636
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:654
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
irq event stamp: 9232
hardirqs last  enabled at (9231): [<ffff8000081befc8>] __up_console_sem+0xb0/0xfc kernel/printk/printk.c:264
hardirqs last disabled at (9232): [<ffff80000bfb5fbc>] el1_dbg+0x24/0x5c arch/arm64/kernel/entry-common.c:404
softirqs last  enabled at (7848): [<ffff80000801c33c>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32
softirqs last disabled at (7846): [<ffff80000801c308>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19
---[ end trace 0000000000000000 ]---

Crashes (68):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/07 05:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/01 00:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 feb56351 .config console log report syz C [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/09/30 23:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 feb56351 .config console log report syz C [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/09/30 22:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 feb56351 .config console log report syz C [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/11/05 20:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/11/05 15:20 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/11/05 01:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/11/04 18:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/11/03 21:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/11/03 07:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 7a2ebf95 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/11/03 04:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 08977f5d .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/11/03 02:14 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 08977f5d .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/11/03 00:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 08977f5d .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/11/02 15:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 08977f5d .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/11/02 11:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 edac4fd1 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/11/02 06:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 edac4fd1 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/11/02 05:21 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 edac4fd1 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/11/01 18:38 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 edac4fd1 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/11/01 17:14 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 edac4fd1 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/11/01 14:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 a1d8560a .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/11/01 01:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/31 23:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/31 21:09 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/31 17:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/31 16:56 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/31 15:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/31 12:12 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/31 10:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/31 10:21 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/31 09:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/31 07:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/31 06:24 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/30 20:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/30 18:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/30 16:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/30 08:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/29 06:47 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 899d812a .config console log report info ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/29 06:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 899d812a .config console log report info ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/29 04:10 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 ea12ae9b .config console log report info ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/28 14:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 ea12ae9b .config console log report info ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/28 10:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 86777b7f .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/28 08:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 86777b7f .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/28 02:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 86777b7f .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/28 00:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 86777b7f .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/27 19:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 86777b7f .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/27 12:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 86777b7f .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/26 06:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 1984aebd .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/25 13:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 45645420 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/24 08:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 23bf86af .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/21 17:48 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 4bfd3c27 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/21 11:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 63e790dd .config console log report info ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/20 04:48 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 b31320fc .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/20 00:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 b31320fc .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/17 14:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 67cb024c .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/16 01:38 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 67cb024c .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/14 22:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 4954e4b2 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/14 18:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 4954e4b2 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/13 21:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 adf90437 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/12 14:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 16a9c9e0 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/10/08 01:38 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 0de35f24 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
2022/09/30 22:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 feb56351 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING: refcount bug in nilfs_put_root
* Struck through repros no longer work on HEAD.