Patch "xfs: ensure xfs_errortag_random_default matches XFS_ERRTAG_MAX" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    xfs: ensure xfs_errortag_random_default matches XFS_ERRTAG_MAX

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     xfs-ensure-xfs_errortag_random_default-matches-xfs_errtag_max.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From foo@baz Mon Jul  4 04:42:02 PM CEST 2022
From: Amir Goldstein <amir73il@xxxxxxxxx>
Date: Sun,  3 Jul 2022 08:04:53 +0300
Subject: xfs: ensure xfs_errortag_random_default matches XFS_ERRTAG_MAX
To: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Cc: Sasha Levin <sashal@xxxxxxxxxx>, "Darrick J . Wong" <djwong@xxxxxxxxxx>, Leah Rumancik <leah.rumancik@xxxxxxxxx>, Chandan Babu R <chandan.babu@xxxxxxxxxx>, Luis Chamberlain <mcgrof@xxxxxxxxxx>, Adam Manzanares <a.manzanares@xxxxxxxxxxx>, linux-xfs@xxxxxxxxxxxxxxx, stable@xxxxxxxxxxxxxxx, Gao Xiang <hsiangkao@xxxxxxxxxx>, Christoph Hellwig <hch@xxxxxx>
Message-ID: <20220703050456.3222610-5-amir73il@xxxxxxxxx>

From: Gao Xiang <hsiangkao@xxxxxxxxxx>

commit b2c2974b8cdf1eb3ef90ff845eb27b19e2187b7e upstream.

Add the BUILD_BUG_ON to xfs_errortag_add() in order to make sure that
the length of xfs_errortag_random_default matches XFS_ERRTAG_MAX when
building.

Signed-off-by: Gao Xiang <hsiangkao@xxxxxxxxxx>
Reviewed-by: Christoph Hellwig <hch@xxxxxx>
Reviewed-by: Darrick J. Wong <djwong@xxxxxxxxxx>
Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx>
Signed-off-by: Amir Goldstein <amir73il@xxxxxxxxx>
Acked-by: Darrick J. Wong <djwong@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 fs/xfs/xfs_error.c |    2 ++
 1 file changed, 2 insertions(+)

--- a/fs/xfs/xfs_error.c
+++ b/fs/xfs/xfs_error.c
@@ -293,6 +293,8 @@ xfs_errortag_add(
 	struct xfs_mount	*mp,
 	unsigned int		error_tag)
 {
+	BUILD_BUG_ON(ARRAY_SIZE(xfs_errortag_random_default) != XFS_ERRTAG_MAX);
+
 	if (error_tag >= XFS_ERRTAG_MAX)
 		return -EINVAL;
 


Patches currently in stable-queue which might be from amir73il@xxxxxxxxx are

queue-5.10/xfs-rename-variable-mp-to-parsing_mp.patch
queue-5.10/xfs-fix-xfs_trans-slab-cache-name.patch
queue-5.10/xfs-skip-repetitive-warnings-about-mount-options.patch
queue-5.10/xfs-use-current-journal_info-for-detecting-transaction-recursion.patch
queue-5.10/xfs-update-superblock-counters-correctly-for-lazysbcount.patch
queue-5.10/xfs-ensure-xfs_errortag_random_default-matches-xfs_errtag_max.patch
queue-5.10/xfs-fix-xfs_reflink_unshare-usage-of-filemap_write_and_wait_range.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux