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
db080f9c
Commit
db080f9c
authored
Oct 09, 2013
by
Helge Deller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parisc: let probe_kernel_read() capture access to page zero
Signed-off-by:
Helge Deller
<
deller@gmx.de
>
parent
2d8b22de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
arch/parisc/lib/memcpy.c
arch/parisc/lib/memcpy.c
+14
-1
No files found.
arch/parisc/lib/memcpy.c
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
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