[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_A688921FDD9E5D95993ACFF58D87259B0D07@qq.com>
Date: Tue, 23 Jul 2024 21:44:10 +0800
From: Edward Adam Davis <eadavis@...com>
To: syzbot+784d0a1246a539975f05@...kaller.appspotmail.com
Cc: linux-kernel@...r.kernel.org,
syzkaller-bugs@...glegroups.com
Subject: Re: [syzbot] [rcu?] WARNING in rcu_note_context_switch (2)
miss rcu read unlock
#syz test: upstream 51835949dda3
diff --git a/fs/nsfs.c b/fs/nsfs.c
index a4a925dce331..e228d06f0949 100644
--- a/fs/nsfs.c
+++ b/fs/nsfs.c
@@ -188,8 +188,10 @@ static long ns_ioctl(struct file *filp, unsigned int ioctl,
tsk = find_task_by_vpid(arg);
else
tsk = find_task_by_pid_ns(arg, pid_ns);
- if (!tsk)
+ if (!tsk) {
+ rcu_read_unlock();
break;
+ }
switch (ioctl) {
case NS_GET_PID_FROM_PIDNS:
Powered by blists - more mailing lists