mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [syzbot] [btrfs?] VFS: Busy inodes after unmount (use-after-free)
@ 2023-01-25 10:43 syzbot
  2024-11-04  6:21 ` Julian Sun
  0 siblings, 1 reply; 4+ messages in thread
From: syzbot @ 2023-01-25 10:43 UTC (permalink / raw)
  To: clm, dsterba, josef, linux-btrfs, linux-kernel, syzkaller-bugs

Hello,

syzbot found the following issue on:

HEAD commit:    edb2f0dc90f2 Merge branch 'for-next/core' into for-kernelci
git tree:       git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci
console output: https://syzkaller.appspot.com/x/log.txt?x=1484d22e480000
kernel config:  https://syzkaller.appspot.com/x/.config?x=a1c301efa2b11613
dashboard link: https://syzkaller.appspot.com/bug?extid=0af00f6a2cba2058b5db
compiler:       Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=15e20341480000
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=154fa4f1480000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/ca1677dc6969/disk-edb2f0dc.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/22527595a2dd/vmlinux-edb2f0dc.xz
kernel image: https://storage.googleapis.com/syzbot-assets/45308e5f6962/Image-edb2f0dc.gz.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/6105a892b6d5/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+0af00f6a2cba2058b5db@syzkaller.appspotmail.com

VFS: Busy inodes after unmount of loop0. Self-destruct in 5 seconds.  Have a nice day...
VFS: Busy inodes after unmount of loop0. Self-destruct in 5 seconds.  Have a nice day...


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: VFS: Busy inodes after unmount (use-after-free)
@ 2024-11-23 11:03 Tetsuo Handa
  2024-11-23 12:12 ` [syzbot] [ocfs2?] " syzbot
  0 siblings, 1 reply; 4+ messages in thread
From: Tetsuo Handa @ 2024-11-23 11:03 UTC (permalink / raw)
  To: syzbot+0af00f6a2cba2058b5db, syzkaller-bugs, LKML

#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git v6.12

 fs/ocfs2/namei.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c
index 59c92353151a..5550f8afa438 100644
--- a/fs/ocfs2/namei.c
+++ b/fs/ocfs2/namei.c
@@ -200,8 +200,10 @@ static struct inode *ocfs2_get_init_inode(struct inode *dir, umode_t mode)
 	mode = mode_strip_sgid(&nop_mnt_idmap, dir, mode);
 	inode_init_owner(&nop_mnt_idmap, inode, dir, mode);
 	status = dquot_initialize(inode);
-	if (status)
+	if (status) {
+		iput(inode);
 		return ERR_PTR(status);
+	}
 
 	return inode;
 }
-- 
2.47.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-11-23 12:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-25 10:43 [syzbot] [btrfs?] VFS: Busy inodes after unmount (use-after-free) syzbot
2024-11-04  6:21 ` Julian Sun
2024-11-04  6:57   ` [syzbot] [ocfs2?] " syzbot
2024-11-23 11:03 Tetsuo Handa
2024-11-23 12:12 ` [syzbot] [ocfs2?] " syzbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®