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
2a282247
Commit
2a282247
authored
Aug 13, 2013
by
Russell King
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'security-fixes' into fixes
parents
2103f6cb
d9f96635
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
9 deletions
+14
-9
arch/arm/kernel/entry-armv.S
arch/arm/kernel/entry-armv.S
+2
-1
arch/arm/kernel/fiq.c
arch/arm/kernel/fiq.c
+2
-6
arch/arm/kernel/perf_event.c
arch/arm/kernel/perf_event.c
+9
-1
arch/arm/kernel/process.c
arch/arm/kernel/process.c
+1
-1
No files found.
arch/arm/kernel/entry-armv.S
View file @
2a282247
...
@@ -357,7 +357,8 @@ ENDPROC(__pabt_svc)
...
@@ -357,7 +357,8 @@ ENDPROC(__pabt_svc)
.
endm
.
endm
.
macro
kuser_cmpxchg_check
.
macro
kuser_cmpxchg_check
#if !defined(CONFIG_CPU_32v6K) && !defined(CONFIG_NEEDS_SYSCALL_FOR_CMPXCHG)
#if !defined(CONFIG_CPU_32v6K) && defined(CONFIG_KUSER_HELPERS) && \
!
defined
(
CONFIG_NEEDS_SYSCALL_FOR_CMPXCHG
)
#ifndef CONFIG_MMU
#ifndef CONFIG_MMU
#warning "NPTL on non MMU needs fixing"
#warning "NPTL on non MMU needs fixing"
#else
#else
...
...
arch/arm/kernel/fiq.c
View file @
2a282247
...
@@ -84,17 +84,13 @@ int show_fiq_list(struct seq_file *p, int prec)
...
@@ -84,17 +84,13 @@ int show_fiq_list(struct seq_file *p, int prec)
void
set_fiq_handler
(
void
*
start
,
unsigned
int
length
)
void
set_fiq_handler
(
void
*
start
,
unsigned
int
length
)
{
{
#if defined(CONFIG_CPU_USE_DOMAINS)
void
*
base
=
(
void
*
)
0xffff0000
;
#else
void
*
base
=
vectors_page
;
void
*
base
=
vectors_page
;
#endif
unsigned
offset
=
FIQ_OFFSET
;
unsigned
offset
=
FIQ_OFFSET
;
memcpy
(
base
+
offset
,
start
,
length
);
memcpy
(
base
+
offset
,
start
,
length
);
if
(
!
cache_is_vipt_nonaliasing
())
flush_icache_range
(
base
+
offset
,
offset
+
length
);
flush_icache_range
(
0xffff0000
+
offset
,
0xffff0000
+
offset
+
length
);
flush_icache_range
(
0xffff0000
+
offset
,
0xffff0000
+
offset
+
length
);
if
(
!
vectors_high
())
flush_icache_range
(
offset
,
offset
+
length
);
}
}
int
claim_fiq
(
struct
fiq_handler
*
f
)
int
claim_fiq
(
struct
fiq_handler
*
f
)
...
...
arch/arm/kernel/perf_event.c
View file @
2a282247
...
@@ -53,7 +53,12 @@ armpmu_map_cache_event(const unsigned (*cache_map)
...
@@ -53,7 +53,12 @@ armpmu_map_cache_event(const unsigned (*cache_map)
static
int
static
int
armpmu_map_hw_event
(
const
unsigned
(
*
event_map
)[
PERF_COUNT_HW_MAX
],
u64
config
)
armpmu_map_hw_event
(
const
unsigned
(
*
event_map
)[
PERF_COUNT_HW_MAX
],
u64
config
)
{
{
int
mapping
=
(
*
event_map
)[
config
];
int
mapping
;
if
(
config
>=
PERF_COUNT_HW_MAX
)
return
-
EINVAL
;
mapping
=
(
*
event_map
)[
config
];
return
mapping
==
HW_OP_UNSUPPORTED
?
-
ENOENT
:
mapping
;
return
mapping
==
HW_OP_UNSUPPORTED
?
-
ENOENT
:
mapping
;
}
}
...
@@ -253,6 +258,9 @@ validate_event(struct pmu_hw_events *hw_events,
...
@@ -253,6 +258,9 @@ validate_event(struct pmu_hw_events *hw_events,
struct
arm_pmu
*
armpmu
=
to_arm_pmu
(
event
->
pmu
);
struct
arm_pmu
*
armpmu
=
to_arm_pmu
(
event
->
pmu
);
struct
pmu
*
leader_pmu
=
event
->
group_leader
->
pmu
;
struct
pmu
*
leader_pmu
=
event
->
group_leader
->
pmu
;
if
(
is_software_event
(
event
))
return
1
;
if
(
event
->
pmu
!=
leader_pmu
||
event
->
state
<
PERF_EVENT_STATE_OFF
)
if
(
event
->
pmu
!=
leader_pmu
||
event
->
state
<
PERF_EVENT_STATE_OFF
)
return
1
;
return
1
;
...
...
arch/arm/kernel/process.c
View file @
2a282247
...
@@ -462,7 +462,7 @@ int in_gate_area_no_mm(unsigned long addr)
...
@@ -462,7 +462,7 @@ int in_gate_area_no_mm(unsigned long addr)
{
{
return
in_gate_area
(
NULL
,
addr
);
return
in_gate_area
(
NULL
,
addr
);
}
}
#define is_gate_vma(vma) ((vma) = &gate_vma)
#define is_gate_vma(vma) ((vma) =
=
&gate_vma)
#else
#else
#define is_gate_vma(vma) 0
#define is_gate_vma(vma) 0
#endif
#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