]> www.infradead.org Git - users/jedix/linux-maple.git/commit
squashfs: don't call kmalloc in decompressors
authorPhillip Lougher <phillip@squashfs.org.uk>
Mon, 22 Aug 2022 21:54:30 +0000 (22:54 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 26 Aug 2022 05:01:57 +0000 (22:01 -0700)
commit602adabfea0be72cd6e07279e9b7acf4354377e8
treed6485bc2310c74ca06de1485b4a7fca631adec35
parentfc811a7b2487063a1936a198577aeb9b73ad4db4
squashfs: don't call kmalloc in decompressors

The decompressors may be called while in an atomic section.  So move the
kmalloc() out of this path, and into the "page actor" init function.

This fixes a regression introduced by commit
f268eedddf35 ("squashfs: extend "page actor" to handle missing pages")

Link: https://lkml.kernel.org/r/20220822215430.15933-1-phillip@squashfs.org.uk
Fixes: f268eedddf35 ("squashfs: extend "page actor" to handle missing pages")
Reported-by: Chris Murphy <lists@colorremedies.com>
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/squashfs/file.c
fs/squashfs/file_direct.c
fs/squashfs/page_actor.c
fs/squashfs/page_actor.h