summaryrefslogtreecommitdiff
tag nameattr-intent-uaf-fixes-5.19_2022-05-23 (71b446bb242e59d93c89873e1ff869f6420ce3fe)
tag date2022-05-23 17:58:16 -0700
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit 90b7cde699...
xfs: fix name/value buffer lifetime errrors
As part of kicking the tires on the new logged extended attributes (LARP) code, I observed a crash in the xattr intent log item relogging function. A quick code inspection led to me noticing that the logging code repeatedly allocates and frees space for the name and value buffers, which is unnecessary. Replace all that with a shared refcounted buffer to hold the name and the value across all the log items involved in the transaction, and as long as is necessary for the log to process all work. -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEUzaAxoMeQq6m2jMV+H93GTRKtOsFAmKMLagACgkQ+H93GTRK tOt8ohAAie3XaBFGTX3v5HJJWoqe+LP6KJQQ96Om4VG/gqcUFLI/TJXQ1pZlMS1Z ZIdmBKgKP2dmBfF/6mm/j/o1bE0V6ygVjcWrJUPOAoObDSGKD2Pe169mnpqf92Cd xlxS8AgW4mT2dbZhhIK4gSjEgcalXYbJDdKskphTqrVw/4uSJI1g2JLcePVeUOeu n33CqWiknzu+ReB0wElb8JQ19Ry3XgM7xH+CZQPQaVcEgOqBZsdyG2l0/NUni0O5 LtczobjhQ43o3cJah/TdH0T3RANXejFF58/vcx712wbpwHnTBxhroJnXlHUF6hZ9 GF7FyfLgoH6PW/s/hwXYSaMFIY1gAfBQMJl5XaZw02RH7WpV8QI6a7QvMZFBXUkX v9VvsBwV11r5DdyoCRWX2hE81D5r+4JrbKC/hnSPePaC6nhDBCd+Yh9idc9d88GV 1xBDAvuSjAm6itWz9mIBRlxEcNEJv8X0vJS62VElMMBZOM1vVy0ZWb/l02GIuRHh 5V7VPQa3/yPSzq4F9a0RopWSxyB1WQbEmgLyAcqW6dDcA3Wbr17z+9LEmQ+6YA+q ncJiTXw0nqCYl1glyhZo0ICpNWNLoVXwba8EPTg41K7fD6zUTf3YaTQ7ydlq4AC3 rg8jXtriwK58nq4x5UY3amH4tkrArf7BiwnqD9XUrewv3gu0Dq8= =2Xif -----END PGP SIGNATURE-----