On Fri, Jun 06, 2025 at 01:41:16AM +0530, Brahmajit Das wrote:
From: Mikulas Patocka mpatocka@redhat.com
From: Mikulas Patocka mpatocka@redhat.com
Twice is not good :(
[ Upstream commit 66be40a14e496689e1f0add50118408e22c96169 ]
If some of the arguments "check_at_most_once", "ignore_zero_blocks", "use_fec_from_device", "root_hash_sig_key_desc" were specified more than once on the target line, a memory leak would happen.
This commit fixes the memory leak. It also fixes error handling in verity_verify_sig_parse_opt_args.
Signed-off-by: Mikulas Patocka mpatocka@redhat.com Cc: stable@vger.kernel.org Signed-off-by: Brahmajit Das listout@listout.xyz
drivers/md/dm-verity-fec.c | 4 ++++ drivers/md/dm-verity-target.c | 8 +++++++- drivers/md/dm-verity-verify-sig.c | 17 +++++++++++++---- 3 files changed, 24 insertions(+), 5 deletions(-)
What kernel tree(s) is this for?
thanks,
greg k-h