]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.10-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Sep 2023 07:18:24 +0000 (09:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Sep 2023 07:18:24 +0000 (09:18 +0200)
added patches:
revert-configfs-fix-a-race-in-configfs_lookup.patch

queue-5.10/revert-configfs-fix-a-race-in-configfs_lookup.patch [new file with mode: 0644]
queue-5.10/series [new file with mode: 0644]

diff --git a/queue-5.10/revert-configfs-fix-a-race-in-configfs_lookup.patch b/queue-5.10/revert-configfs-fix-a-race-in-configfs_lookup.patch
new file mode 100644 (file)
index 0000000..6cbfc7a
--- /dev/null
@@ -0,0 +1,41 @@
+From ef42517c4b0abdd6e2f62072c4730732a1eb949d Mon Sep 17 00:00:00 2001
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Date: Thu, 21 Sep 2023 09:14:16 +0200
+Subject: Revert "configfs: fix a race in configfs_lookup()"
+
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+This reverts commit c709c7ca020a52ef6530733a9a5f014bd6b71937 which is
+commit c42dd069be8dfc9b2239a5c89e73bbd08ab35de0 upstream.
+
+It was backported incorrectly, and will come back later in a way that
+actually works.
+
+Cc: Sishuai Gong <sishuai@purdue.edu>
+Cc: Christoph Hellwig <hch@lst.de>
+Cc: Kyle Zeng <zengyhkyle@gmail.com>
+Reported-by: Guenter Roeck <linux@roeck-us.net>
+Link: https://lore.kernel.org/r/27f978f3-11ca-6054-5160-ab66d4c918bc@roeck-us.net
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ fs/configfs/dir.c |    2 --
+ 1 file changed, 2 deletions(-)
+
+--- a/fs/configfs/dir.c
++++ b/fs/configfs/dir.c
+@@ -479,7 +479,6 @@ static struct dentry * configfs_lookup(s
+       if (!configfs_dirent_is_ready(parent_sd))
+               goto out;
+-      spin_lock(&configfs_dirent_lock);
+       list_for_each_entry(sd, &parent_sd->s_children, s_sibling) {
+               if (sd->s_type & CONFIGFS_NOT_PINNED) {
+                       const unsigned char * name = configfs_get_name(sd);
+@@ -492,7 +491,6 @@ static struct dentry * configfs_lookup(s
+                       break;
+               }
+       }
+-      spin_unlock(&configfs_dirent_lock);
+       if (!found) {
+               /*
diff --git a/queue-5.10/series b/queue-5.10/series
new file mode 100644 (file)
index 0000000..7be82ca
--- /dev/null
@@ -0,0 +1 @@
+revert-configfs-fix-a-race-in-configfs_lookup.patch