git: cd6b58e50cda - stable/15 - ffs_truncate: correct INVARIANTS panic debug output
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 28 Oct 2025 09:49:47 UTC
The branch stable/15 has been updated by rlibby:
URL: https://cgit.FreeBSD.org/src/commit/?id=cd6b58e50cda3c945d9b3910a3103eb825fc36c0
commit cd6b58e50cda3c945d9b3910a3103eb825fc36c0
Author: Ryan Libby <rlibby@FreeBSD.org>
AuthorDate: 2025-10-15 04:03:04 +0000
Commit: Ryan Libby <rlibby@FreeBSD.org>
CommitDate: 2025-10-28 09:20:35 +0000
ffs_truncate: correct INVARIANTS panic debug output
Reported by: GCC -Warray-bounds
Reviewed by: mckusick
Differential Revision: https://reviews.freebsd.org/D53037
(cherry picked from commit a0ea4c04b5269ac138a3cf551047076472c6028e)
---
sys/ufs/ffs/ffs_inode.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/ufs/ffs/ffs_inode.c b/sys/ufs/ffs/ffs_inode.c
index 970536a13aa5..f47cfd08f75a 100644
--- a/sys/ufs/ffs/ffs_inode.c
+++ b/sys/ufs/ffs/ffs_inode.c
@@ -653,8 +653,8 @@ done:
for (i = 0; i < UFS_NDADDR; i++)
if (newblks[i] != DIP(ip, i_db[i]))
panic("ffs_truncate2: blkno %d newblks %jd != i_db %jd",
- i, (intmax_t)newblks[UFS_NDADDR + level],
- (intmax_t)DIP(ip, i_ib[level]));
+ i, (intmax_t)newblks[i],
+ (intmax_t)DIP(ip, i_db[i]));
BO_LOCK(bo);
if (length == 0 &&
(fs->fs_magic != FS_UFS2_MAGIC || ip->i_din2->di_extsize == 0) &&