GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — s390/kasan: increase instrumented stack size to 64k · frank-w/BPI-Router-Linux@9fed920

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • arch/s390
    • Makefile
    • include/asm
      • thread_info.h
    • kernel
      • entry.S
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎arch/s390/Makefile‎

Copy file name to clipboardExpand all lines: arch/s390/Makefile
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ KBUILD_CFLAGS_DECOMPRESSOR += $(call cc-option,-ffreestanding)
2727
KBUILD_CFLAGS_DECOMPRESSOR += $(if $(CONFIG_DEBUG_INFO),-g)
2828
KBUILD_CFLAGS_DECOMPRESSOR += $(if $(CONFIG_DEBUG_INFO_DWARF4), $(call cc-option, -gdwarf-4,))
2929
UTS_MACHINE := s390x
30-
STACK_SIZE := $(if $(CONFIG_KASAN),32768,16384)
30+
STACK_SIZE := $(if $(CONFIG_KASAN),65536,16384)
3131
CHECKFLAGS += -D__s390__ -D__s390x__
3232

3333
export LD_BFD
Collapse file

‎arch/s390/include/asm/thread_info.h‎

Copy file name to clipboardExpand all lines: arch/s390/include/asm/thread_info.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* General size of kernel stacks
1515
*/
1616
#ifdef CONFIG_KASAN
17-
#define THREAD_SIZE_ORDER 3
17+
#define THREAD_SIZE_ORDER 4
1818
#else
1919
#define THREAD_SIZE_ORDER 2
2020
#endif
Collapse file

‎arch/s390/kernel/entry.S‎

Copy file name to clipboardExpand all lines: arch/s390/kernel/entry.S
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,10 @@ ENTRY(__switch_to)
236236
stmg %r6,%r15,__SF_GPRS(%r15) # store gprs of prev task
237237
lghi %r4,__TASK_stack
238238
lghi %r1,__TASK_thread
239-
lg %r5,0(%r4,%r3) # start of kernel stack of next
239+
llill %r5,STACK_INIT
240240
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
243243
stg %r3,__LC_CURRENT # store task struct of next
244244
stg %r15,__LC_KERNEL_STACK # store end of kernel stack
245245
lg %r15,__THREAD_ksp(%r1,%r3) # load kernel stack of next

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.