]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
drop ext4-enforce-buffer-head-state-assertion-in-ext4_da_.patch from everywhere
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Oct 2021 14:09:51 +0000 (16:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Oct 2021 14:09:51 +0000 (16:09 +0200)
queue-5.10/ext4-enforce-buffer-head-state-assertion-in-ext4_da_.patch [deleted file]
queue-5.10/series
queue-5.14/ext4-enforce-buffer-head-state-assertion-in-ext4_da_.patch [deleted file]
queue-5.14/series
queue-5.4/ext4-enforce-buffer-head-state-assertion-in-ext4_da_.patch [deleted file]
queue-5.4/series

diff --git a/queue-5.10/ext4-enforce-buffer-head-state-assertion-in-ext4_da_.patch b/queue-5.10/ext4-enforce-buffer-head-state-assertion-in-ext4_da_.patch
deleted file mode 100644 (file)
index b719cda..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-From 38c3015b3b8b3a977ca7fa0da8de65c9d8cab2d2 Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Thu, 19 Aug 2021 10:49:27 -0400
-Subject: ext4: enforce buffer head state assertion in ext4_da_map_blocks
-
-From: Eric Whitney <enwlinux@gmail.com>
-
-[ Upstream commit 948ca5f30e1df0c11eb5b0f410b9ceb97fa77ad9 ]
-
-Remove the code that re-initializes a buffer head with an invalid block
-number and BH_New and BH_Delay bits when a matching delayed and
-unwritten block has been found in the extent status cache. Replace it
-with assertions that verify the buffer head already has this state
-correctly set.  The current code masked an inline data truncation bug
-that left stale entries in the extent status cache.  With this change,
-generic/130 can be used to reproduce and detect that bug.
-
-Signed-off-by: Eric Whitney <enwlinux@gmail.com>
-Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-Link: https://lore.kernel.org/r/20210819144927.25163-3-enwlinux@gmail.com
-Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- fs/ext4/inode.c | 15 +++++++++------
- 1 file changed, 9 insertions(+), 6 deletions(-)
-
-diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
-index 317aa1b90fb9..fce4fccb8641 100644
---- a/fs/ext4/inode.c
-+++ b/fs/ext4/inode.c
-@@ -1727,13 +1727,16 @@ static int ext4_da_map_blocks(struct inode *inode, sector_t iblock,
-               }
-               /*
--               * Delayed extent could be allocated by fallocate.
--               * So we need to check it.
-+               * the buffer head associated with a delayed and not unwritten
-+               * block found in the extent status cache must contain an
-+               * invalid block number and have its BH_New and BH_Delay bits
-+               * set, reflecting the state assigned when the block was
-+               * initially delayed allocated
-                */
--              if (ext4_es_is_delayed(&es) && !ext4_es_is_unwritten(&es)) {
--                      map_bh(bh, inode->i_sb, invalid_block);
--                      set_buffer_new(bh);
--                      set_buffer_delay(bh);
-+              if (ext4_es_is_delonly(&es)) {
-+                      BUG_ON(bh->b_blocknr != invalid_block);
-+                      BUG_ON(!buffer_new(bh));
-+                      BUG_ON(!buffer_delay(bh));
-                       return 0;
-               }
--- 
-2.33.0
-
index 22114cd2135ad5c33768b2df67e495188f5da0a3..e306ebb0c65380e1b4efdb6a79c1f459a53945f6 100644 (file)
@@ -1,7 +1,6 @@
 ext4-check-and-update-i_disksize-properly.patch
 ext4-correct-the-error-path-of-ext4_write_inline_dat.patch
 asoc-intel-sof_sdw-tag-soundwire-bes-as-non-atomic.patch
-ext4-enforce-buffer-head-state-assertion-in-ext4_da_.patch
 hid-apple-fix-logical-maximum-and-usage-maximum-of-m.patch
 netfilter-ip6_tables-zero-initialize-fragment-offset.patch
 hid-wacom-add-new-intuos-bt-ctl-4100wl-ctl-6100wl-de.patch
diff --git a/queue-5.14/ext4-enforce-buffer-head-state-assertion-in-ext4_da_.patch b/queue-5.14/ext4-enforce-buffer-head-state-assertion-in-ext4_da_.patch
deleted file mode 100644 (file)
index 5801065..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-From b2838e02c515366e8452370fcda5baa2dcc8be68 Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Thu, 19 Aug 2021 10:49:27 -0400
-Subject: ext4: enforce buffer head state assertion in ext4_da_map_blocks
-
-From: Eric Whitney <enwlinux@gmail.com>
-
-[ Upstream commit 948ca5f30e1df0c11eb5b0f410b9ceb97fa77ad9 ]
-
-Remove the code that re-initializes a buffer head with an invalid block
-number and BH_New and BH_Delay bits when a matching delayed and
-unwritten block has been found in the extent status cache. Replace it
-with assertions that verify the buffer head already has this state
-correctly set.  The current code masked an inline data truncation bug
-that left stale entries in the extent status cache.  With this change,
-generic/130 can be used to reproduce and detect that bug.
-
-Signed-off-by: Eric Whitney <enwlinux@gmail.com>
-Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-Link: https://lore.kernel.org/r/20210819144927.25163-3-enwlinux@gmail.com
-Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- fs/ext4/inode.c | 15 +++++++++------
- 1 file changed, 9 insertions(+), 6 deletions(-)
-
-diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
-index fc6ea56de77c..d204688b32a3 100644
---- a/fs/ext4/inode.c
-+++ b/fs/ext4/inode.c
-@@ -1726,13 +1726,16 @@ static int ext4_da_map_blocks(struct inode *inode, sector_t iblock,
-               }
-               /*
--               * Delayed extent could be allocated by fallocate.
--               * So we need to check it.
-+               * the buffer head associated with a delayed and not unwritten
-+               * block found in the extent status cache must contain an
-+               * invalid block number and have its BH_New and BH_Delay bits
-+               * set, reflecting the state assigned when the block was
-+               * initially delayed allocated
-                */
--              if (ext4_es_is_delayed(&es) && !ext4_es_is_unwritten(&es)) {
--                      map_bh(bh, inode->i_sb, invalid_block);
--                      set_buffer_new(bh);
--                      set_buffer_delay(bh);
-+              if (ext4_es_is_delonly(&es)) {
-+                      BUG_ON(bh->b_blocknr != invalid_block);
-+                      BUG_ON(!buffer_new(bh));
-+                      BUG_ON(!buffer_delay(bh));
-                       return 0;
-               }
--- 
-2.33.0
-
index 79de9d7e6d3eddf6faad38338b42bb9ab2a9cf92..cb7fcc5f204dae2e35200dbb120c8fa6c59937a0 100644 (file)
@@ -1,7 +1,6 @@
 ext4-check-and-update-i_disksize-properly.patch
 ext4-correct-the-error-path-of-ext4_write_inline_dat.patch
 asoc-intel-sof_sdw-tag-soundwire-bes-as-non-atomic.patch
-ext4-enforce-buffer-head-state-assertion-in-ext4_da_.patch
 alsa-oxfw-fix-transmission-method-for-loud-models-ba.patch
 interconnect-qcom-sdm660-add-missing-a2noc-qos-clock.patch
 alsa-usb-audio-unify-mixer-resume-and-reset_resume-p.patch
diff --git a/queue-5.4/ext4-enforce-buffer-head-state-assertion-in-ext4_da_.patch b/queue-5.4/ext4-enforce-buffer-head-state-assertion-in-ext4_da_.patch
deleted file mode 100644 (file)
index 1f94854..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-From dd19180ca7482668952b8c51499e0676f825189b Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Thu, 19 Aug 2021 10:49:27 -0400
-Subject: ext4: enforce buffer head state assertion in ext4_da_map_blocks
-
-From: Eric Whitney <enwlinux@gmail.com>
-
-[ Upstream commit 948ca5f30e1df0c11eb5b0f410b9ceb97fa77ad9 ]
-
-Remove the code that re-initializes a buffer head with an invalid block
-number and BH_New and BH_Delay bits when a matching delayed and
-unwritten block has been found in the extent status cache. Replace it
-with assertions that verify the buffer head already has this state
-correctly set.  The current code masked an inline data truncation bug
-that left stale entries in the extent status cache.  With this change,
-generic/130 can be used to reproduce and detect that bug.
-
-Signed-off-by: Eric Whitney <enwlinux@gmail.com>
-Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-Link: https://lore.kernel.org/r/20210819144927.25163-3-enwlinux@gmail.com
-Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- fs/ext4/inode.c | 15 +++++++++------
- 1 file changed, 9 insertions(+), 6 deletions(-)
-
-diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
-index dcbd8ac8d471..af594b5e4f9f 100644
---- a/fs/ext4/inode.c
-+++ b/fs/ext4/inode.c
-@@ -1869,13 +1869,16 @@ static int ext4_da_map_blocks(struct inode *inode, sector_t iblock,
-               }
-               /*
--               * Delayed extent could be allocated by fallocate.
--               * So we need to check it.
-+               * the buffer head associated with a delayed and not unwritten
-+               * block found in the extent status cache must contain an
-+               * invalid block number and have its BH_New and BH_Delay bits
-+               * set, reflecting the state assigned when the block was
-+               * initially delayed allocated
-                */
--              if (ext4_es_is_delayed(&es) && !ext4_es_is_unwritten(&es)) {
--                      map_bh(bh, inode->i_sb, invalid_block);
--                      set_buffer_new(bh);
--                      set_buffer_delay(bh);
-+              if (ext4_es_is_delonly(&es)) {
-+                      BUG_ON(bh->b_blocknr != invalid_block);
-+                      BUG_ON(!buffer_new(bh));
-+                      BUG_ON(!buffer_delay(bh));
-                       return 0;
-               }
--- 
-2.33.0
-
index 0ce6dcf2321fa43f36069c16ef56f38a309eac09..80df04211ef6c260f6995ff103b9eac2af51afae 100644 (file)
@@ -1,6 +1,5 @@
 net-phy-bcm7xxx-fixed-indirect-mmd-operations.patch
 ext4-correct-the-error-path-of-ext4_write_inline_dat.patch
-ext4-enforce-buffer-head-state-assertion-in-ext4_da_.patch
 hid-apple-fix-logical-maximum-and-usage-maximum-of-m.patch
 netfilter-ip6_tables-zero-initialize-fragment-offset.patch
 hid-wacom-add-new-intuos-bt-ctl-4100wl-ctl-6100wl-de.patch