Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0e2efcf authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov Committed by Tony Luck
Browse files

pstore: do not use message compression without lock



pstore_compress() uses static stream buffer for zlib-deflate which
easily crashes when several concurrent threads use one shared state.

Signed-off-by: default avatarKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent e2608180
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -299,7 +299,7 @@ static void pstore_dump(struct kmsg_dumper *dumper,
		bool compressed;
		size_t total_len;

		if (big_oops_buf) {
		if (big_oops_buf && is_locked) {
			dst = big_oops_buf;
			hsize = sprintf(dst, "%s#%d Part%u\n", why,
							oopscount, part);