Messages in this thread Patch in this message | | | Date | Tue, 28 Apr 2020 05:27:42 +0200 | Subject | [PATCH 2/5] coredump: Fix handling of partial writes in dump_emit() | From | Jann Horn <> |
| |
After a partial write, we have to update the input buffer pointer.
Fixes: 2507a4fbd48a ("make dump_emit() use vfs_write() instead of banging at ->f_op->write directly") Cc: stable@vger.kernel.org Signed-off-by: Jann Horn <jannh@google.com> --- fs/coredump.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/fs/coredump.c b/fs/coredump.c index 408418e6aa131..047f5a11dbee7 100644 --- a/fs/coredump.c +++ b/fs/coredump.c @@ -833,6 +833,7 @@ int dump_emit(struct coredump_params *cprm, const void *addr, int nr) cprm->written += n; cprm->pos += n; nr -= n; + addr += n; } return 1; } -- 2.26.2.303.gf8c07b1a785-goog
| |