Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Container Registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Linaro
qcomlt
demos
linux
Commits
db080f9c
Commit
db080f9c
authored
11 years ago
by
Helge Deller
Browse files
Options
Downloads
Patches
Plain Diff
parisc: let probe_kernel_read() capture access to page zero
Signed-off-by:
Helge Deller
<
deller@gmx.de
>
parent
2d8b22de
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arch/parisc/lib/memcpy.c
+14
-1
14 additions, 1 deletion
arch/parisc/lib/memcpy.c
with
14 additions
and
1 deletion
arch/parisc/lib/memcpy.c
+
14
−
1
View file @
db080f9c
...
...
@@ -56,7 +56,7 @@
#ifdef __KERNEL__
#include
<linux/module.h>
#include
<linux/compiler.h>
#include
<
asm
/uaccess.h>
#include
<
linux
/uaccess.h>
#define s_space "%%sr1"
#define d_space "%%sr2"
#else
...
...
@@ -524,4 +524,17 @@ EXPORT_SYMBOL(copy_to_user);
EXPORT_SYMBOL
(
copy_from_user
);
EXPORT_SYMBOL
(
copy_in_user
);
EXPORT_SYMBOL
(
memcpy
);
long
probe_kernel_read
(
void
*
dst
,
const
void
*
src
,
size_t
size
)
{
unsigned
long
addr
=
(
unsigned
long
)
src
;
if
(
size
<
0
||
addr
<
PAGE_SIZE
)
return
-
EFAULT
;
/* check for I/O space F_EXTEND(0xfff00000) access as well? */
return
__probe_kernel_read
(
dst
,
src
,
size
);
}
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment