mirror of https://github.com/torvalds/linux.git
xfs: fixes for 6.18-rc7
Signed-off-by: Carlos Maiolino <cem@kernel.org> -----BEGIN PGP SIGNATURE----- iJUEABMJAB0WIQSmtYVZ/MfVMGUq1GNcsMJ8RxYuYwUCaSGL+QAKCRBcsMJ8RxYu YyvcAXsECiSerKCBGTXpRTLlxB59UWhjRkz2pKhMYLd4czYsukPqTmEergwkQeVN Ebb5rlMBegJoUfeL//wDZ3D/w/T4E2bEMhlcVH04vEE+yBkuqKqcfNDftQl5MCoD /1JI9xbKAQ== =3pbL -----END PGP SIGNATURE----- Merge tag 'xfs-fixes-6.18-rc7' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux Pull xfs fix from Carlos Maiolino: "A single out-of-bounds fix, nothing special" * tag 'xfs-fixes-6.18-rc7' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux: xfs: fix out of bounds memory read error in symlink repair
This commit is contained in:
commit
89edd36fd8
|
|
@ -184,7 +184,7 @@ xrep_symlink_salvage_inline(
|
|||
sc->ip->i_disk_size == 1 && old_target[0] == '?')
|
||||
return 0;
|
||||
|
||||
nr = min(XFS_SYMLINK_MAXLEN, xfs_inode_data_fork_size(ip));
|
||||
nr = min(XFS_SYMLINK_MAXLEN, ifp->if_bytes);
|
||||
memcpy(target_buf, ifp->if_data, nr);
|
||||
return nr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue