Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
31feabb8
Commit
31feabb8
authored
Mar 10, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not expand stack for non-faulting loads
parent
2684649b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
arch/sparc64/mm/fault.c
arch/sparc64/mm/fault.c
+14
-0
No files found.
arch/sparc64/mm/fault.c
View file @
31feabb8
...
@@ -343,6 +343,20 @@ asmlinkage void do_sparc64_fault(struct pt_regs *regs)
...
@@ -343,6 +343,20 @@ asmlinkage void do_sparc64_fault(struct pt_regs *regs)
goto
good_area
;
goto
good_area
;
if
(
!
(
vma
->
vm_flags
&
VM_GROWSDOWN
))
if
(
!
(
vma
->
vm_flags
&
VM_GROWSDOWN
))
goto
bad_area
;
goto
bad_area
;
if
(
!
(
fault_code
&
FAULT_CODE_WRITE
))
{
/* Non-faulting loads shouldn't expand stack. */
insn
=
get_fault_insn
(
regs
,
insn
);
if
((
insn
&
0xc0800000
)
==
0xc0800000
)
{
unsigned
char
asi
;
if
(
insn
&
0x2000
)
asi
=
(
regs
->
tstate
>>
24
);
else
asi
=
(
insn
>>
5
);
if
((
asi
&
0xf2
)
==
0x82
)
goto
bad_area
;
}
}
if
(
expand_stack
(
vma
,
address
))
if
(
expand_stack
(
vma
,
address
))
goto
bad_area
;
goto
bad_area
;
/*
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment