]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
drop btrfs-reject-unknown-mount-options-early.patch from everywhere
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Oct 2023 15:31:16 +0000 (17:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Oct 2023 15:31:16 +0000 (17:31 +0200)
14 files changed:
queue-4.14/btrfs-reject-unknown-mount-options-early.patch [deleted file]
queue-4.14/series
queue-4.19/btrfs-reject-unknown-mount-options-early.patch [deleted file]
queue-4.19/series
queue-5.10/btrfs-reject-unknown-mount-options-early.patch [deleted file]
queue-5.10/series
queue-5.15/btrfs-reject-unknown-mount-options-early.patch [deleted file]
queue-5.15/series
queue-5.4/btrfs-reject-unknown-mount-options-early.patch [deleted file]
queue-5.4/series
queue-6.1/btrfs-reject-unknown-mount-options-early.patch [deleted file]
queue-6.1/series
queue-6.5/btrfs-reject-unknown-mount-options-early.patch [deleted file]
queue-6.5/series

diff --git a/queue-4.14/btrfs-reject-unknown-mount-options-early.patch b/queue-4.14/btrfs-reject-unknown-mount-options-early.patch
deleted file mode 100644 (file)
index fc24211..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-From 5f521494cc73520ffac18ede0758883b9aedd018 Mon Sep 17 00:00:00 2001
-From: Qu Wenruo <wqu@suse.com>
-Date: Wed, 27 Sep 2023 10:43:15 +0930
-Subject: btrfs: reject unknown mount options early
-
-From: Qu Wenruo <wqu@suse.com>
-
-commit 5f521494cc73520ffac18ede0758883b9aedd018 upstream.
-
-[BUG]
-The following script would allow invalid mount options to be specified
-(although such invalid options would just be ignored):
-
-  # mkfs.btrfs -f $dev
-  # mount $dev $mnt1           <<< Successful mount expected
-  # mount $dev $mnt2 -o junk   <<< Failed mount expected
-  # echo $?
-  0
-
-[CAUSE]
-For the 2nd mount, since the fs is already mounted, we won't go through
-open_ctree() thus no btrfs_parse_options(), but only through
-btrfs_parse_subvol_options().
-
-However we do not treat unrecognized options from valid but irrelevant
-options, thus those invalid options would just be ignored by
-btrfs_parse_subvol_options().
-
-[FIX]
-Add the handling for Opt_err to handle invalid options and error out,
-while still ignore other valid options inside btrfs_parse_subvol_options().
-
-Reported-by: Anand Jain <anand.jain@oracle.com>
-CC: stable@vger.kernel.org # 4.14+
-Signed-off-by: Qu Wenruo <wqu@suse.com>
-Reviewed-by: David Sterba <dsterba@suse.com>
-Signed-off-by: David Sterba <dsterba@suse.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- fs/btrfs/super.c |    4 ++++
- 1 file changed, 4 insertions(+)
-
---- a/fs/btrfs/super.c
-+++ b/fs/btrfs/super.c
-@@ -929,6 +929,10 @@ static int btrfs_parse_early_options(con
-                       if (error)
-                               goto out;
-                       break;
-+              case Opt_err:
-+                      btrfs_err(NULL, "unrecognized mount option '%s'", p);
-+                      error = -EINVAL;
-+                      goto out;
-               default:
-                       break;
-               }
index f3a623dd15b25d8ab786268e2c81dafdd872572a..9c49b7e6363cfe105a10cf50ba48d0f3498ffdf1 100644 (file)
@@ -35,7 +35,6 @@ ata-libata-disallow-dev-initiated-lpm-transitions-to-unsupported-states.patch
 media-dvb-symbol-fixup-for-dvb_attach-again.patch
 scsi-zfcp-fix-a-double-put-in-zfcp_port_enqueue.patch
 wifi-mwifiex-fix-tlv_buf_left-calculation.patch
-btrfs-reject-unknown-mount-options-early.patch
 ubi-refuse-attaching-if-mtd-s-erasesize-is-0.patch
 wifi-mwifiex-fix-oob-check-condition-in-mwifiex_proc.patch
 drivers-net-process-the-result-of-hdlc_open-and-add-.patch
diff --git a/queue-4.19/btrfs-reject-unknown-mount-options-early.patch b/queue-4.19/btrfs-reject-unknown-mount-options-early.patch
deleted file mode 100644 (file)
index bef0f3a..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-From 5f521494cc73520ffac18ede0758883b9aedd018 Mon Sep 17 00:00:00 2001
-From: Qu Wenruo <wqu@suse.com>
-Date: Wed, 27 Sep 2023 10:43:15 +0930
-Subject: btrfs: reject unknown mount options early
-
-From: Qu Wenruo <wqu@suse.com>
-
-commit 5f521494cc73520ffac18ede0758883b9aedd018 upstream.
-
-[BUG]
-The following script would allow invalid mount options to be specified
-(although such invalid options would just be ignored):
-
-  # mkfs.btrfs -f $dev
-  # mount $dev $mnt1           <<< Successful mount expected
-  # mount $dev $mnt2 -o junk   <<< Failed mount expected
-  # echo $?
-  0
-
-[CAUSE]
-For the 2nd mount, since the fs is already mounted, we won't go through
-open_ctree() thus no btrfs_parse_options(), but only through
-btrfs_parse_subvol_options().
-
-However we do not treat unrecognized options from valid but irrelevant
-options, thus those invalid options would just be ignored by
-btrfs_parse_subvol_options().
-
-[FIX]
-Add the handling for Opt_err to handle invalid options and error out,
-while still ignore other valid options inside btrfs_parse_subvol_options().
-
-Reported-by: Anand Jain <anand.jain@oracle.com>
-CC: stable@vger.kernel.org # 4.14+
-Signed-off-by: Qu Wenruo <wqu@suse.com>
-Reviewed-by: David Sterba <dsterba@suse.com>
-Signed-off-by: David Sterba <dsterba@suse.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- fs/btrfs/super.c |    4 ++++
- 1 file changed, 4 insertions(+)
-
---- a/fs/btrfs/super.c
-+++ b/fs/btrfs/super.c
-@@ -991,6 +991,10 @@ static int btrfs_parse_subvol_options(co
-               case Opt_subvolrootid:
-                       pr_warn("BTRFS: 'subvolrootid' mount option is deprecated and has no effect\n");
-                       break;
-+              case Opt_err:
-+                      btrfs_err(NULL, "unrecognized mount option '%s'", p);
-+                      error = -EINVAL;
-+                      goto out;
-               default:
-                       break;
-               }
index 1f376cc768a3d5db46e435fefccc507ab334730f..c2fe26bd3a744fd94db29f93840a9c26f3f360c1 100644 (file)
@@ -67,7 +67,6 @@ scsi-zfcp-fix-a-double-put-in-zfcp_port_enqueue.patch
 qed-red_ll2-fix-undefined-behavior-bug-in-struct-qed_ll2_info.patch
 wifi-mwifiex-fix-tlv_buf_left-calculation.patch
 net-replace-calls-to-sock-ops-connect-with-kernel_connect.patch
-btrfs-reject-unknown-mount-options-early.patch
 ubi-refuse-attaching-if-mtd-s-erasesize-is-0.patch
 wifi-mwifiex-fix-oob-check-condition-in-mwifiex_proc.patch
 drivers-net-process-the-result-of-hdlc_open-and-add-.patch
diff --git a/queue-5.10/btrfs-reject-unknown-mount-options-early.patch b/queue-5.10/btrfs-reject-unknown-mount-options-early.patch
deleted file mode 100644 (file)
index 07511bd..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-From 5f521494cc73520ffac18ede0758883b9aedd018 Mon Sep 17 00:00:00 2001
-From: Qu Wenruo <wqu@suse.com>
-Date: Wed, 27 Sep 2023 10:43:15 +0930
-Subject: btrfs: reject unknown mount options early
-
-From: Qu Wenruo <wqu@suse.com>
-
-commit 5f521494cc73520ffac18ede0758883b9aedd018 upstream.
-
-[BUG]
-The following script would allow invalid mount options to be specified
-(although such invalid options would just be ignored):
-
-  # mkfs.btrfs -f $dev
-  # mount $dev $mnt1           <<< Successful mount expected
-  # mount $dev $mnt2 -o junk   <<< Failed mount expected
-  # echo $?
-  0
-
-[CAUSE]
-For the 2nd mount, since the fs is already mounted, we won't go through
-open_ctree() thus no btrfs_parse_options(), but only through
-btrfs_parse_subvol_options().
-
-However we do not treat unrecognized options from valid but irrelevant
-options, thus those invalid options would just be ignored by
-btrfs_parse_subvol_options().
-
-[FIX]
-Add the handling for Opt_err to handle invalid options and error out,
-while still ignore other valid options inside btrfs_parse_subvol_options().
-
-Reported-by: Anand Jain <anand.jain@oracle.com>
-CC: stable@vger.kernel.org # 4.14+
-Signed-off-by: Qu Wenruo <wqu@suse.com>
-Reviewed-by: David Sterba <dsterba@suse.com>
-Signed-off-by: David Sterba <dsterba@suse.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- fs/btrfs/super.c |    4 ++++
- 1 file changed, 4 insertions(+)
-
---- a/fs/btrfs/super.c
-+++ b/fs/btrfs/super.c
-@@ -1123,6 +1123,10 @@ static int btrfs_parse_subvol_options(co
-                       *subvol_objectid = subvolid;
-                       break;
-+              case Opt_err:
-+                      btrfs_err(NULL, "unrecognized mount option '%s'", p);
-+                      error = -EINVAL;
-+                      goto out;
-               default:
-                       break;
-               }
index 74073714066996757225dbb1371ec19241a0a056..f7b6081cd244bd1e3085a4e0352a547f0a51af1a 100644 (file)
@@ -180,7 +180,6 @@ scsi-zfcp-fix-a-double-put-in-zfcp_port_enqueue.patch
 qed-red_ll2-fix-undefined-behavior-bug-in-struct-qed_ll2_info.patch
 wifi-mwifiex-fix-tlv_buf_left-calculation.patch
 net-replace-calls-to-sock-ops-connect-with-kernel_connect.patch
-btrfs-reject-unknown-mount-options-early.patch
 net-prevent-rewrite-of-msg_name-in-sock_sendmsg.patch
 arm64-add-cortex-a520-cpu-part-definition.patch
 ubi-refuse-attaching-if-mtd-s-erasesize-is-0.patch
diff --git a/queue-5.15/btrfs-reject-unknown-mount-options-early.patch b/queue-5.15/btrfs-reject-unknown-mount-options-early.patch
deleted file mode 100644 (file)
index c1c4ca9..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-From 5f521494cc73520ffac18ede0758883b9aedd018 Mon Sep 17 00:00:00 2001
-From: Qu Wenruo <wqu@suse.com>
-Date: Wed, 27 Sep 2023 10:43:15 +0930
-Subject: btrfs: reject unknown mount options early
-
-From: Qu Wenruo <wqu@suse.com>
-
-commit 5f521494cc73520ffac18ede0758883b9aedd018 upstream.
-
-[BUG]
-The following script would allow invalid mount options to be specified
-(although such invalid options would just be ignored):
-
-  # mkfs.btrfs -f $dev
-  # mount $dev $mnt1           <<< Successful mount expected
-  # mount $dev $mnt2 -o junk   <<< Failed mount expected
-  # echo $?
-  0
-
-[CAUSE]
-For the 2nd mount, since the fs is already mounted, we won't go through
-open_ctree() thus no btrfs_parse_options(), but only through
-btrfs_parse_subvol_options().
-
-However we do not treat unrecognized options from valid but irrelevant
-options, thus those invalid options would just be ignored by
-btrfs_parse_subvol_options().
-
-[FIX]
-Add the handling for Opt_err to handle invalid options and error out,
-while still ignore other valid options inside btrfs_parse_subvol_options().
-
-Reported-by: Anand Jain <anand.jain@oracle.com>
-CC: stable@vger.kernel.org # 4.14+
-Signed-off-by: Qu Wenruo <wqu@suse.com>
-Reviewed-by: David Sterba <dsterba@suse.com>
-Signed-off-by: David Sterba <dsterba@suse.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- fs/btrfs/super.c |    4 ++++
- 1 file changed, 4 insertions(+)
-
---- a/fs/btrfs/super.c
-+++ b/fs/btrfs/super.c
-@@ -1182,6 +1182,10 @@ static int btrfs_parse_subvol_options(co
-                       *subvol_objectid = subvolid;
-                       break;
-+              case Opt_err:
-+                      btrfs_err(NULL, "unrecognized mount option '%s'", p);
-+                      error = -EINVAL;
-+                      goto out;
-               default:
-                       break;
-               }
index ab316162bb52ca29df72accd386dcd7af16a1bf5..0e71c9a4ff5eb1aefc8a64070ae711d4a77582c1 100644 (file)
@@ -21,7 +21,6 @@ vringh-don-t-use-vringh_kiov_advance-in-vringh_iov_xfer.patch
 qed-red_ll2-fix-undefined-behavior-bug-in-struct-qed_ll2_info.patch
 wifi-mwifiex-fix-tlv_buf_left-calculation.patch
 net-replace-calls-to-sock-ops-connect-with-kernel_connect.patch
-btrfs-reject-unknown-mount-options-early.patch
 net-prevent-rewrite-of-msg_name-in-sock_sendmsg.patch
 drm-amd-fix-detection-of-_pr3-on-the-pcie-root-port.patch
 arm64-add-cortex-a520-cpu-part-definition.patch
diff --git a/queue-5.4/btrfs-reject-unknown-mount-options-early.patch b/queue-5.4/btrfs-reject-unknown-mount-options-early.patch
deleted file mode 100644 (file)
index 007f7fc..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-From 5f521494cc73520ffac18ede0758883b9aedd018 Mon Sep 17 00:00:00 2001
-From: Qu Wenruo <wqu@suse.com>
-Date: Wed, 27 Sep 2023 10:43:15 +0930
-Subject: btrfs: reject unknown mount options early
-
-From: Qu Wenruo <wqu@suse.com>
-
-commit 5f521494cc73520ffac18ede0758883b9aedd018 upstream.
-
-[BUG]
-The following script would allow invalid mount options to be specified
-(although such invalid options would just be ignored):
-
-  # mkfs.btrfs -f $dev
-  # mount $dev $mnt1           <<< Successful mount expected
-  # mount $dev $mnt2 -o junk   <<< Failed mount expected
-  # echo $?
-  0
-
-[CAUSE]
-For the 2nd mount, since the fs is already mounted, we won't go through
-open_ctree() thus no btrfs_parse_options(), but only through
-btrfs_parse_subvol_options().
-
-However we do not treat unrecognized options from valid but irrelevant
-options, thus those invalid options would just be ignored by
-btrfs_parse_subvol_options().
-
-[FIX]
-Add the handling for Opt_err to handle invalid options and error out,
-while still ignore other valid options inside btrfs_parse_subvol_options().
-
-Reported-by: Anand Jain <anand.jain@oracle.com>
-CC: stable@vger.kernel.org # 4.14+
-Signed-off-by: Qu Wenruo <wqu@suse.com>
-Reviewed-by: David Sterba <dsterba@suse.com>
-Signed-off-by: David Sterba <dsterba@suse.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- fs/btrfs/super.c |    4 ++++
- 1 file changed, 4 insertions(+)
-
---- a/fs/btrfs/super.c
-+++ b/fs/btrfs/super.c
-@@ -1000,6 +1000,10 @@ static int btrfs_parse_subvol_options(co
-               case Opt_subvolrootid:
-                       pr_warn("BTRFS: 'subvolrootid' mount option is deprecated and has no effect\n");
-                       break;
-+              case Opt_err:
-+                      btrfs_err(NULL, "unrecognized mount option '%s'", p);
-+                      error = -EINVAL;
-+                      goto out;
-               default:
-                       break;
-               }
index 2b4382fc967a78b7b253999e5c4faf6ce9415729..047beb294961bd258350bf936a9de164b9f3de71 100644 (file)
@@ -89,7 +89,6 @@ scsi-zfcp-fix-a-double-put-in-zfcp_port_enqueue.patch
 qed-red_ll2-fix-undefined-behavior-bug-in-struct-qed_ll2_info.patch
 wifi-mwifiex-fix-tlv_buf_left-calculation.patch
 net-replace-calls-to-sock-ops-connect-with-kernel_connect.patch
-btrfs-reject-unknown-mount-options-early.patch
 net-prevent-rewrite-of-msg_name-in-sock_sendmsg.patch
 ubi-refuse-attaching-if-mtd-s-erasesize-is-0.patch
 wifi-iwlwifi-dbg_ini-fix-structure-packing.patch
diff --git a/queue-6.1/btrfs-reject-unknown-mount-options-early.patch b/queue-6.1/btrfs-reject-unknown-mount-options-early.patch
deleted file mode 100644 (file)
index 61ab3e4..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-From 5f521494cc73520ffac18ede0758883b9aedd018 Mon Sep 17 00:00:00 2001
-From: Qu Wenruo <wqu@suse.com>
-Date: Wed, 27 Sep 2023 10:43:15 +0930
-Subject: btrfs: reject unknown mount options early
-
-From: Qu Wenruo <wqu@suse.com>
-
-commit 5f521494cc73520ffac18ede0758883b9aedd018 upstream.
-
-[BUG]
-The following script would allow invalid mount options to be specified
-(although such invalid options would just be ignored):
-
-  # mkfs.btrfs -f $dev
-  # mount $dev $mnt1           <<< Successful mount expected
-  # mount $dev $mnt2 -o junk   <<< Failed mount expected
-  # echo $?
-  0
-
-[CAUSE]
-For the 2nd mount, since the fs is already mounted, we won't go through
-open_ctree() thus no btrfs_parse_options(), but only through
-btrfs_parse_subvol_options().
-
-However we do not treat unrecognized options from valid but irrelevant
-options, thus those invalid options would just be ignored by
-btrfs_parse_subvol_options().
-
-[FIX]
-Add the handling for Opt_err to handle invalid options and error out,
-while still ignore other valid options inside btrfs_parse_subvol_options().
-
-Reported-by: Anand Jain <anand.jain@oracle.com>
-CC: stable@vger.kernel.org # 4.14+
-Signed-off-by: Qu Wenruo <wqu@suse.com>
-Reviewed-by: David Sterba <dsterba@suse.com>
-Signed-off-by: David Sterba <dsterba@suse.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- fs/btrfs/super.c |    4 ++++
- 1 file changed, 4 insertions(+)
-
---- a/fs/btrfs/super.c
-+++ b/fs/btrfs/super.c
-@@ -1260,6 +1260,10 @@ static int btrfs_parse_subvol_options(co
-                       *subvol_objectid = subvolid;
-                       break;
-+              case Opt_err:
-+                      btrfs_err(NULL, "unrecognized mount option '%s'", p);
-+                      error = -EINVAL;
-+                      goto out;
-               default:
-                       break;
-               }
index 7a847932592f76998fc3bec0556fd12a00d7fbcd..61ea34a623b67eaf3230d95c93cee57192830e5e 100644 (file)
@@ -57,7 +57,6 @@ wifi-mwifiex-fix-tlv_buf_left-calculation.patch
 md-raid5-release-batch_last-before-waiting-for-another-stripe_head.patch
 pci-qcom-fix-ipq8074-enumeration.patch
 net-replace-calls-to-sock-ops-connect-with-kernel_connect.patch
-btrfs-reject-unknown-mount-options-early.patch
 net-prevent-rewrite-of-msg_name-in-sock_sendmsg.patch
 drm-amd-fix-detection-of-_pr3-on-the-pcie-root-port.patch
 drm-amd-fix-logic-error-in-sienna_cichlid_update_pcie_parameters.patch
diff --git a/queue-6.5/btrfs-reject-unknown-mount-options-early.patch b/queue-6.5/btrfs-reject-unknown-mount-options-early.patch
deleted file mode 100644 (file)
index 4062ae9..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-From 5f521494cc73520ffac18ede0758883b9aedd018 Mon Sep 17 00:00:00 2001
-From: Qu Wenruo <wqu@suse.com>
-Date: Wed, 27 Sep 2023 10:43:15 +0930
-Subject: btrfs: reject unknown mount options early
-
-From: Qu Wenruo <wqu@suse.com>
-
-commit 5f521494cc73520ffac18ede0758883b9aedd018 upstream.
-
-[BUG]
-The following script would allow invalid mount options to be specified
-(although such invalid options would just be ignored):
-
-  # mkfs.btrfs -f $dev
-  # mount $dev $mnt1           <<< Successful mount expected
-  # mount $dev $mnt2 -o junk   <<< Failed mount expected
-  # echo $?
-  0
-
-[CAUSE]
-For the 2nd mount, since the fs is already mounted, we won't go through
-open_ctree() thus no btrfs_parse_options(), but only through
-btrfs_parse_subvol_options().
-
-However we do not treat unrecognized options from valid but irrelevant
-options, thus those invalid options would just be ignored by
-btrfs_parse_subvol_options().
-
-[FIX]
-Add the handling for Opt_err to handle invalid options and error out,
-while still ignore other valid options inside btrfs_parse_subvol_options().
-
-Reported-by: Anand Jain <anand.jain@oracle.com>
-CC: stable@vger.kernel.org # 4.14+
-Signed-off-by: Qu Wenruo <wqu@suse.com>
-Reviewed-by: David Sterba <dsterba@suse.com>
-Signed-off-by: David Sterba <dsterba@suse.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- fs/btrfs/super.c |    4 ++++
- 1 file changed, 4 insertions(+)
-
---- a/fs/btrfs/super.c
-+++ b/fs/btrfs/super.c
-@@ -948,6 +948,10 @@ static int btrfs_parse_subvol_options(co
-                       *subvol_objectid = subvolid;
-                       break;
-+              case Opt_err:
-+                      btrfs_err(NULL, "unrecognized mount option '%s'", p);
-+                      error = -EINVAL;
-+                      goto out;
-               default:
-                       break;
-               }
index 5dc55c3a8a0c0ffdda53693f10d9e997949d5b57..67713333743870f5d8a1dd9f88eaa9ce99619f30 100644 (file)
@@ -41,7 +41,6 @@ net-replace-calls-to-sock-ops-connect-with-kernel_connect.patch
 io_uring-kbuf-don-t-allow-registered-buffer-rings-on-highmem-pages.patch
 io_uring-ensure-io_lockdep_assert_cq_locked-handles-disabled-rings.patch
 btrfs-always-print-transaction-aborted-messages-with-an-error-level.patch
-btrfs-reject-unknown-mount-options-early.patch
 net-prevent-rewrite-of-msg_name-in-sock_sendmsg.patch
 drm-i915-don-t-set-pipe_control_flush_l3-for-aux-inval.patch
 drm-amd-fix-detection-of-_pr3-on-the-pcie-root-port.patch