GeezerVison is showing github.com — s390/kasan: increase instrumented stack size to 64k · frank-w/BPI-Router-Linux@9fed920
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: arch/s390/Makefile +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -27,7 +27,7 @@ KBUILD_CFLAGS_DECOMPRESSOR += $(call cc-option,-ffreestanding) | 27 | 27 | KBUILD_CFLAGS_DECOMPRESSOR += $(if $(CONFIG_DEBUG_INFO),-g) | 28 | 28 | KBUILD_CFLAGS_DECOMPRESSOR += $(if $(CONFIG_DEBUG_INFO_DWARF4), $(call cc-option, -gdwarf-4,)) | 29 | 29 | UTS_MACHINE := s390x | 30 | | -STACK_SIZE := $(if $(CONFIG_KASAN),32768,16384) | | 30 | +STACK_SIZE := $(if $(CONFIG_KASAN),65536,16384) | 31 | 31 | CHECKFLAGS += -D__s390__ -D__s390x__ | 32 | 32 |
| 33 | 33 | export LD_BFD | |
Collapse file Copy file name to clipboardExpand all lines: arch/s390/include/asm/thread_info.h +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 14 | 14 | * General size of kernel stacks | 15 | 15 | */ | 16 | 16 | #ifdef CONFIG_KASAN | 17 | | -#define THREAD_SIZE_ORDER 3 | | 17 | +#define THREAD_SIZE_ORDER 4 | 18 | 18 | #else | 19 | 19 | #define THREAD_SIZE_ORDER 2 | 20 | 20 | #endif | |
Collapse file Copy file name to clipboardExpand all lines: arch/s390/kernel/entry.S +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -236,10 +236,10 @@ ENTRY(__switch_to) | 236 | 236 | stmg %r6,%r15,__SF_GPRS(%r15) # store gprs of prev task | 237 | 237 | lghi %r4,__TASK_stack | 238 | 238 | lghi %r1,__TASK_thread | 239 | | - lg %r5,0(%r4,%r3) # start of kernel stack of next | | 239 | + llill %r5,STACK_INIT | 240 | 240 | stg %r15,__THREAD_ksp(%r1,%r2) # store kernel stack of prev | 241 | | - lgr %r15,%r5 | 242 | | - aghi %r15,STACK_INIT # end of kernel stack of next | | 241 | + lg %r15,0(%r4,%r3) # start of kernel stack of next | | 242 | + agr %r15,%r5 # end of kernel stack of next | 243 | 243 | stg %r3,__LC_CURRENT # store task struct of next | 244 | 244 | stg %r15,__LC_KERNEL_STACK # store end of kernel stack | 245 | 245 | lg %r15,__THREAD_ksp(%r1,%r3) # load kernel stack of next | |
|