Skip to contentSkip to conversation

linux-next: manual merge of the userns tree with the arm64 tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Sep 28, 2018 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Eric,

Today's linux-next merge of the userns tree got a conflict in:

arch/arm64/kernel/traps.c

between commit:

8a60419d3676 ("arm64: force_signal_inject: WARN if called from kernel context")

from the arm64 tree and commit:

6fa998e83ef9 ("signal/arm64: Push siginfo generation into arm64_notify_die")

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/arm64/kernel/traps.c
index 21689c6a985f,856b32aa03d8..000000000000
--- a/arch/arm64/kernel/traps.c
+++ b/arch/arm64/kernel/traps.c
@@@ -353,12 -366,6 +368,9 @@@ void force_signal_inject(int signal, in
  	const char *desc;
  	struct pt_regs *regs = current_pt_regs();
  
 +	if (WARN_ON(!user_mode(regs)))
 +		return;
 +
- 	clear_siginfo(&info);
- 
  	switch (signal) {
  	case SIGILL:
  		desc = "undefined instruction";
#1 lore raw
Quoted 6 lines · Stephen Rothwell
arch/arm64/kernel/traps.c +0 -0
diff --cc arch/arm64/kernel/traps.c
index 21689c6a985f,856b32aa03d8..000000000000
@@@ -353,12 -366,6 +368,9 @@@ void force_signal_inject(int signal, in
  	const char *desc;

arch/arm64/kernel/traps.c

Quoted 10 lines
arch/arm64/kernel/traps.c +0 -2
  	struct pt_regs *regs = current_pt_regs();
 
 +	if (WARN_ON(!user_mode(regs)))
 +		return;
 +
- 	clear_siginfo(&info);
- 
  	switch (signal) {
  	case SIGILL:
  		desc = "undefined instruction";

It looks fine. Thanks Stephen.

Signature · 1 line
Catalin