Patch "dm verity fec: fix bufio leaks" has been added to the 4.10-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
dm verity fec: fix bufio leaks
to the 4.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:
dm-verity-fec-fix-bufio-leaks.patch
and it can be found in the queue-4.10 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
86e3e83b443669dd2bcc5c8a83b23e3aa0694c0dMon Sep 17 00:00:00 2001
From: Sami Tolvanen <[email protected]>
Date: Fri, 31 Mar 2017 12:32:45 -0700
Subject: dm verity fec: fix bufio leaks
From: Sami Tolvanen <[email protected]>
commit 86e3e83b443669dd2bcc5c8a83b23e3aa0694c0d upstream.
Buffers read through dm_bufio_read() were not released in all code paths.
--- drivers/md/dm-verity-fec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/md/dm-verity-fec.c +3 -3
@@ -146,8 +146,6 @@ static int fec_decode_bufs(struct dm_ver block =fec_buffer_rs_block (v, fio, n, i); res =fec_decode_rs8 (v, fio, block, &par[offset], neras);if (res <0 ) { -dm_bufio_release (buf); - r = res; goto error; }
@@ -172,6 +170,8 @@ static int fec_decode_bufs(struct dm_ver done: r = corrected; error: +dm_bufio_release (buf); +if (r <0 && neras)DMERR_LIMIT ("%s: FEC %llu: failed to correct: %d" , v->data_dev->name, (unsigned long long )rsb, r);
@@ -269,7 +269,7 @@ static int fec_read_bufs(struct dm_verit &is_zero) == 0) {/* skip known zero blocks entirely */ if (is_zero) -continue ; + goto done;/* * skip if we have already found the theoretical
Patches currently in stable-queue which might be from [email protected] are
queue-4.10/dm-verity-fec-fix-bufio-leaks.patch queue-4.10/dm-verity-fec-limit-error-correction-recursion.patch