Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
packages
kernel
linux
Commits
ba8e2437
Commit
ba8e2437
authored
Jun 13, 2017
by
Lorenzo "Palinuro" Faletra
Browse files
Import Upstream version 4.9.30
parent
003df7dd
Changes
1000
Hide whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
20 of 1000+
files are displayed.
Plain diff
Email patch
Documentation/arm64/tagged-pointers.txt
View file @
ba8e2437
...
...
@@ -11,24 +11,56 @@ in AArch64 Linux.
The kernel configures the translation tables so that translations made
via TTBR0 (i.e. userspace mappings) have the top byte (bits 63:56) of
the virtual address ignored by the translation hardware. This frees up
this byte for application use
, with the following caveats:
this byte for application use
.
(1) The kernel requires that all user addresses passed to EL1
are tagged with tag 0x00. This means that any syscall
parameters containing user virtual addresses *must* have
their top byte cleared before trapping to the kernel.
(2) Non-zero tags are not preserved when delivering signals.
This means that signal handlers in applications making use
of tags cannot rely on the tag information for user virtual
addresses being maintained for fields inside siginfo_t.
One exception to this rule is for signals raised in response
to watchpoint debug exceptions, where the tag information
will be preserved.
Passing tagged addresses to the kernel
--------------------------------------
(3) Special care should be taken when using tagged pointers,
since it is likely that C compilers will not hazard two
virtual addresses differing only in the upper byte.
All interpretation of userspace memory addresses by the kernel assumes
an address tag of 0x00.
This includes, but is not limited to, addresses found in:
- pointer arguments to system calls, including pointers in structures
passed to system calls,
- the stack pointer (sp), e.g. when interpreting it to deliver a
signal,
- the frame pointer (x29) and frame records, e.g. when interpreting
them to generate a backtrace or call graph.
Using non-zero address tags in any of these locations may result in an
error code being returned, a (fatal) signal being raised, or other modes
of failure.
For these reasons, passing non-zero address tags to the kernel via
system calls is forbidden, and using a non-zero address tag for sp is
strongly discouraged.
Programs maintaining a frame pointer and frame records that use non-zero
address tags may suffer impaired or inaccurate debug and profiling
visibility.
Preserving tags
---------------
Non-zero tags are not preserved when delivering signals. This means that
signal handlers in applications making use of tags cannot rely on the
tag information for user virtual addresses being maintained for fields
inside siginfo_t. One exception to this rule is for signals raised in
response to watchpoint debug exceptions, where the tag information will
be preserved.
The architecture prevents the use of a tagged PC, so the upper byte will
be set to a sign-extension of bit 55 on exception return.
Other considerations
--------------------
Special care should be taken when using tagged pointers, since it is
likely that C compilers will not hazard two virtual addresses differing
only in the upper byte.
Makefile
View file @
ba8e2437
VERSION
=
4
PATCHLEVEL
=
9
SUBLEVEL
=
25
SUBLEVEL
=
30
EXTRAVERSION
=
NAME
=
Roaring Lionus
...
...
arch/alpha/kernel/osf_sys.c
View file @
ba8e2437
...
...
@@ -1188,8 +1188,10 @@ SYSCALL_DEFINE4(osf_wait4, pid_t, pid, int __user *, ustatus, int, options,
if
(
!
access_ok
(
VERIFY_WRITE
,
ur
,
sizeof
(
*
ur
)))
return
-
EFAULT
;
err
=
0
;
err
|=
put_user
(
status
,
ustatus
);
err
=
put_user
(
status
,
ustatus
);
if
(
ret
<
0
)
return
err
?
err
:
ret
;
err
|=
__put_user
(
r
.
ru_utime
.
tv_sec
,
&
ur
->
ru_utime
.
tv_sec
);
err
|=
__put_user
(
r
.
ru_utime
.
tv_usec
,
&
ur
->
ru_utime
.
tv_usec
);
err
|=
__put_user
(
r
.
ru_stime
.
tv_sec
,
&
ur
->
ru_stime
.
tv_sec
);
...
...
arch/arc/include/asm/atomic.h
View file @
ba8e2437
...
...
@@ -17,10 +17,11 @@
#include
<asm/barrier.h>
#include
<asm/smp.h>
#define ATOMIC_INIT(i) { (i) }
#ifndef CONFIG_ARC_PLAT_EZNPS
#define atomic_read(v) READ_ONCE((v)->counter)
#define ATOMIC_INIT(i) { (i) }
#ifdef CONFIG_ARC_HAS_LLSC
...
...
arch/arc/include/asm/entry-arcv2.h
View file @
ba8e2437
...
...
@@ -16,6 +16,7 @@
;
;
Now
manually
save
:
r12
,
sp
,
fp
,
gp
,
r25
PUSH
r30
PUSH
r12
;
Saving
pt_regs
->
sp
correctly
requires
some
extra
work
due
to
the
way
...
...
@@ -72,6 +73,7 @@
POPAX
AUX_USER_SP
1
:
POP
r12
POP
r30
.
endm
...
...
arch/arc/include/asm/ptrace.h
View file @
ba8e2437
...
...
@@ -84,7 +84,7 @@ struct pt_regs {
unsigned
long
fp
;
unsigned
long
sp
;
/* user/kernel sp depending on where we came from */
unsigned
long
r12
;
unsigned
long
r12
,
r30
;
/*------- Below list auto saved by h/w -----------*/
unsigned
long
r0
,
r1
,
r2
,
r3
,
r4
,
r5
,
r6
,
r7
,
r8
,
r9
,
r10
,
r11
;
...
...
arch/arm/boot/dts/at91-sama5d3_xplained.dts
View file @
ba8e2437
...
...
@@ -162,9 +162,10 @@ spi1: spi@f8008000 {
};
adc0
:
adc
@
f8018000
{
atmel
,
adc
-
vref
=
<
3300
>;
atmel
,
adc
-
channels
-
used
=
<
0xfe
>;
pinctrl
-
0
=
<
&
pinctrl_adc0_adtrg
&
pinctrl_adc0_ad0
&
pinctrl_adc0_ad1
&
pinctrl_adc0_ad2
&
pinctrl_adc0_ad3
...
...
@@ -172,8 +173,6 @@ &pinctrl_adc0_ad4
&
pinctrl_adc0_ad5
&
pinctrl_adc0_ad6
&
pinctrl_adc0_ad7
&
pinctrl_adc0_ad8
&
pinctrl_adc0_ad9
>;
status
=
"okay"
;
};
...
...
arch/arm/boot/dts/bcm958522er.dts
View file @
ba8e2437
...
...
@@ -55,6 +55,7 @@ memory {
gpio
-
restart
{
compatible
=
"gpio-restart"
;
gpios
=
<&
gpioa
15
GPIO_ACTIVE_LOW
>;
open
-
source
;
priority
=
<
200
>;
};
};
...
...
arch/arm/boot/dts/bcm958525er.dts
View file @
ba8e2437
...
...
@@ -55,6 +55,7 @@ memory {
gpio
-
restart
{
compatible
=
"gpio-restart"
;
gpios
=
<&
gpioa
15
GPIO_ACTIVE_LOW
>;
open
-
source
;
priority
=
<
200
>;
};
};
...
...
arch/arm/boot/dts/bcm958525xmc.dts
View file @
ba8e2437
...
...
@@ -55,6 +55,7 @@ memory {
gpio
-
restart
{
compatible
=
"gpio-restart"
;
gpios
=
<&
gpioa
31
GPIO_ACTIVE_LOW
>;
open
-
source
;
priority
=
<
200
>;
};
};
...
...
arch/arm/boot/dts/bcm958622hr.dts
View file @
ba8e2437
...
...
@@ -55,6 +55,7 @@ memory {
gpio
-
restart
{
compatible
=
"gpio-restart"
;
gpios
=
<&
gpioa
15
GPIO_ACTIVE_LOW
>;
open
-
source
;
priority
=
<
200
>;
};
};
...
...
arch/arm/boot/dts/bcm958623hr.dts
View file @
ba8e2437
...
...
@@ -55,6 +55,7 @@ memory {
gpio
-
restart
{
compatible
=
"gpio-restart"
;
gpios
=
<&
gpioa
15
GPIO_ACTIVE_LOW
>;
open
-
source
;
priority
=
<
200
>;
};
};
...
...
arch/arm/boot/dts/bcm958625hr.dts
View file @
ba8e2437
...
...
@@ -55,6 +55,7 @@ memory {
gpio
-
restart
{
compatible
=
"gpio-restart"
;
gpios
=
<&
gpioa
15
GPIO_ACTIVE_LOW
>;
open
-
source
;
priority
=
<
200
>;
};
};
...
...
arch/arm/boot/dts/bcm988312hr.dts
View file @
ba8e2437
...
...
@@ -55,6 +55,7 @@ memory {
gpio
-
restart
{
compatible
=
"gpio-restart"
;
gpios
=
<&
gpioa
15
GPIO_ACTIVE_LOW
>;
open
-
source
;
priority
=
<
200
>;
};
};
...
...
arch/arm/boot/dts/imx6sx-sdb.dts
View file @
ba8e2437
...
...
@@ -12,23 +12,6 @@ / {
model
=
"Freescale i.MX6 SoloX SDB RevB Board"
;
};
&
cpu0
{
operating
-
points
=
<
/*
kHz
uV
*/
996000
1250000
792000
1175000
396000
1175000
198000
1175000
>;
fsl
,
soc
-
operating
-
points
=
<
/*
ARM
kHz
SOC
uV
*/
996000
1250000
792000
1175000
396000
1175000
198000
1175000
>;
};
&
i2c1
{
clock
-
frequency
=
<
100000
>;
pinctrl
-
names
=
"default"
;
...
...
arch/arm/boot/dts/qcom-ipq8064.dtsi
View file @
ba8e2437
...
...
@@ -65,13 +65,13 @@ clocks {
cxo_board
{
compatible
=
"fixed-clock"
;
#
clock
-
cells
=
<
0
>;
clock
-
frequency
=
<
192
00000
>;
clock
-
frequency
=
<
250
00000
>;
};
pxo_board
{
compatible
=
"fixed-clock"
;
#
clock
-
cells
=
<
0
>;
clock
-
frequency
=
<
2
7
000000
>;
clock
-
frequency
=
<
2
5
000000
>;
};
sleep_clk
:
sleep_clk
{
...
...
arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts
View file @
ba8e2437
...
...
@@ -167,7 +167,7 @@ port8: port@8 {
reg
=
<
8
>;
label
=
"cpu"
;
ethernet
=
<&
gmac
>;
phy
-
mode
=
"rgmii"
;
phy
-
mode
=
"rgmii
-txid
"
;
fixed
-
link
{
speed
=
<
1000
>;
full
-
duplex
;
...
...
arch/arm/boot/dts/tegra20-paz00.dts
View file @
ba8e2437
...
...
@@ -569,6 +569,7 @@ vdd_pnl_reg: regulator@1 {
regulator
-
name
=
"+3VS,vdd_pnl"
;
regulator
-
min
-
microvolt
=
<
3300000
>;
regulator
-
max
-
microvolt
=
<
3300000
>;
regulator
-
boot
-
on
;
gpio
=
<&
gpio
TEGRA_GPIO
(
A
,
4
)
GPIO_ACTIVE_HIGH
>;
enable
-
active
-
high
;
};
...
...
arch/arm/include/asm/kvm_coproc.h
View file @
ba8e2437
...
...
@@ -31,7 +31,8 @@ void kvm_register_target_coproc_table(struct kvm_coproc_target_table *table);
int
kvm_handle_cp10_id
(
struct
kvm_vcpu
*
vcpu
,
struct
kvm_run
*
run
);
int
kvm_handle_cp_0_13_access
(
struct
kvm_vcpu
*
vcpu
,
struct
kvm_run
*
run
);
int
kvm_handle_cp14_load_store
(
struct
kvm_vcpu
*
vcpu
,
struct
kvm_run
*
run
);
int
kvm_handle_cp14_access
(
struct
kvm_vcpu
*
vcpu
,
struct
kvm_run
*
run
);
int
kvm_handle_cp14_32
(
struct
kvm_vcpu
*
vcpu
,
struct
kvm_run
*
run
);
int
kvm_handle_cp14_64
(
struct
kvm_vcpu
*
vcpu
,
struct
kvm_run
*
run
);
int
kvm_handle_cp15_32
(
struct
kvm_vcpu
*
vcpu
,
struct
kvm_run
*
run
);
int
kvm_handle_cp15_64
(
struct
kvm_vcpu
*
vcpu
,
struct
kvm_run
*
run
);
...
...
arch/arm/include/asm/module.h
View file @
ba8e2437
...
...
@@ -18,13 +18,18 @@ enum {
};
#endif
struct
mod_plt_sec
{
struct
elf32_shdr
*
plt
;
int
plt_count
;
};
struct
mod_arch_specific
{
#ifdef CONFIG_ARM_UNWIND
struct
unwind_table
*
unwind
[
ARM_SEC_MAX
];
#endif
#ifdef CONFIG_ARM_MODULE_PLTS
struct
elf32_shdr
*
plt
;
int
plt_coun
t
;
struct
mod_plt_sec
core
;
struct
mod_plt_sec
ini
t
;
#endif
};
...
...
Prev
1
2
3
4
5
…
50
Next
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment