linux-next: manual merge of the userns tree with the arm tree
Hi all,
Today's linux-next merge of the userns tree got a conflict in:
arch/arm/mm/fault.c
between commit:
93a24d7e23e7 ("ARM: spectre-v2: harden user aborts in kernel space")
from the arm tree and commit:
3eb0f5193b49 ("signal: Ensure every siginfo we send has all bits initialized")
from the userns tree.
I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.
Signature · 19 lines
Cheers,
Stephen Rothwell
diff --cc arch/arm/mm/fault.c
index 3b1ba003c4f9,32034543f49c..000000000000
--- a/arch/arm/mm/fault.c
+++ b/arch/arm/mm/fault.c
@@@ -163,9 -163,8 +163,11 @@@ __do_user_fault(struct task_struct *tsk
{
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))) {Hi all,
Quoted 32 lines · On Wed, 30 May 2018 18:30:58 +1000 Stephen Rothwell <[email protected]>…
Today's linux-next merge of the userns tree got a conflict in:
arch/arm/mm/fault.cbetween commit:
93a24d7e23e7("ARM: spectre-v2: harden user aborts in kernel space")from the arm tree and commit:
3eb0f5193b49("signal: Ensure every siginfo we send has all bits initialized")from the userns tree.
I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.
Signature · 2 lines
Cheers, Stephen Rothwellarch/arm/mm/fault.c +0
-0@@@ -163,9 -163,8 +163,11 @@@ __do_user_fault(struct task_struct *tsk {
arch/arm/mm/fault.c
Quoted 10 lines
arch/arm/mm/fault.c +2
-0struct 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 ))) {
This is now a conflict between the arm tree and Linus' tree.
Signature · 2 lines
Cheers, Stephen Rothwell