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
Kirill Smelkov
linux
Commits
3ee6a449
Commit
3ee6a449
authored
Jun 18, 2018
by
Eric W. Biederman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
signal/arm: Use force_sig_fault where appropriate
Signed-off-by:
"Eric W. Biederman"
<
ebiederm@xmission.com
>
parent
05e792e3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
27 deletions
+4
-27
arch/arm/kernel/ptrace.c
arch/arm/kernel/ptrace.c
+2
-9
arch/arm/mm/alignment.c
arch/arm/mm/alignment.c
+1
-9
arch/arm/mm/fault.c
arch/arm/mm/fault.c
+1
-9
No files found.
arch/arm/kernel/ptrace.c
View file @
3ee6a449
...
...
@@ -203,15 +203,8 @@ void ptrace_disable(struct task_struct *child)
*/
void
ptrace_break
(
struct
task_struct
*
tsk
,
struct
pt_regs
*
regs
)
{
siginfo_t
info
;
clear_siginfo
(
&
info
);
info
.
si_signo
=
SIGTRAP
;
info
.
si_errno
=
0
;
info
.
si_code
=
TRAP_BRKPT
;
info
.
si_addr
=
(
void
__user
*
)
instruction_pointer
(
regs
);
force_sig_info
(
SIGTRAP
,
&
info
,
tsk
);
force_sig_fault
(
SIGTRAP
,
TRAP_BRKPT
,
(
void
__user
*
)
instruction_pointer
(
regs
),
tsk
);
}
static
int
break_trap
(
struct
pt_regs
*
regs
,
unsigned
int
instr
)
...
...
arch/arm/mm/alignment.c
View file @
3ee6a449
...
...
@@ -948,15 +948,7 @@ do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
goto
fixup
;
if
(
ai_usermode
&
UM_SIGNAL
)
{
siginfo_t
si
;
clear_siginfo
(
&
si
);
si
.
si_signo
=
SIGBUS
;
si
.
si_errno
=
0
;
si
.
si_code
=
BUS_ADRALN
;
si
.
si_addr
=
(
void
__user
*
)
addr
;
force_sig_info
(
si
.
si_signo
,
&
si
,
current
);
force_sig_fault
(
SIGBUS
,
BUS_ADRALN
,
(
void
__user
*
)
addr
,
current
);
}
else
{
/*
* We're about to disable the alignment trap and return to
...
...
arch/arm/mm/fault.c
View file @
3ee6a449
...
...
@@ -161,13 +161,9 @@ __do_user_fault(struct task_struct *tsk, unsigned long addr,
unsigned
int
fsr
,
unsigned
int
sig
,
int
code
,
struct
pt_regs
*
regs
)
{
struct
siginfo
si
;
if
(
addr
>
TASK_SIZE
)
harden_branch_predictor
();
clear_siginfo
(
&
si
);
#ifdef CONFIG_DEBUG_USER
if
(((
user_debug
&
UDBG_SEGV
)
&&
(
sig
==
SIGSEGV
))
||
((
user_debug
&
UDBG_BUS
)
&&
(
sig
==
SIGBUS
)))
{
...
...
@@ -181,11 +177,7 @@ __do_user_fault(struct task_struct *tsk, unsigned long addr,
tsk
->
thread
.
address
=
addr
;
tsk
->
thread
.
error_code
=
fsr
;
tsk
->
thread
.
trap_no
=
14
;
si
.
si_signo
=
sig
;
si
.
si_errno
=
0
;
si
.
si_code
=
code
;
si
.
si_addr
=
(
void
__user
*
)
addr
;
force_sig_info
(
sig
,
&
si
,
tsk
);
force_sig_fault
(
sig
,
code
,
(
void
__user
*
)
addr
,
tsk
);
}
void
do_bad_area
(
unsigned
long
addr
,
unsigned
int
fsr
,
struct
pt_regs
*
regs
)
...
...
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