From b3140ed863ceabe67fa0cf3628615cea7ffbb282 Mon Sep 17 00:00:00 2001 From: Krzysztof Majzerowicz-Jaszcz Date: Tue, 14 Jun 2022 05:12:48 -0400 Subject: [PATCH] Fix for #1224 - kernel crash in the IO path This fixes issue #1224 - null pointer dereference in kernel in the IO path with large IO's issued Signed-off-by: Krzysztof Majzerowicz-Jaszcz --- configure.d/1_bio_split.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.d/1_bio_split.conf b/configure.d/1_bio_split.conf index 38de54e..ebbbf9f 100644 --- a/configure.d/1_bio_split.conf +++ b/configure.d/1_bio_split.conf @@ -26,7 +26,7 @@ apply() { add_function " static inline struct bio *cas_bio_split(struct bio *bio, int sectors) { - return bio_split(bio, sectors, GFP_NOIO, NULL); + return bio_split(bio, sectors, GFP_NOIO, &fs_bio_set); }" ;; "2") add_function "