linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: manual merge of the tip tree with the gfs2 tree
@ 2021-10-15  4:04 Stephen Rothwell
  2021-11-01 23:57 ` Stephen Rothwell
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Rothwell @ 2021-10-15  4:04 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Peter Zijlstra,
	Steven Whitehouse, Bob Peterson
  Cc: Andreas Gruenbacher, Borislav Petkov, Linux Kernel Mailing List,
	Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 1457 bytes --]

Hi all,

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

  arch/x86/kernel/fpu/signal.c

between commit:

  4303543bac16 ("gup: Turn fault_in_pages_{readable,writeable} into fault_in_{readable,writeable}")

from the gfs2 tree and commits:

  fcfb7163329c ("x86/fpu/signal: Move xstate clearing out of copy_fpregs_to_sigframe()")
  a2a8fd9a3efd ("x86/fpu/signal: Change return code of restore_fpregs_from_user() to boolean")

from the tip tree.

I fixed it up (I used the latter version - 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.

-- 
Cheers,
Stephen Rothwell

diff --cc arch/x86/kernel/fpu/signal.c
index 164c96434704,37dbfed29d75..000000000000
--- a/arch/x86/kernel/fpu/signal.c
+++ b/arch/x86/kernel/fpu/signal.c
@@@ -275,12 -283,12 +283,12 @@@ retry
  		fpregs_unlock();
  
  		/* Try to handle #PF, but anything else is fatal. */
- 		if (ret != -EFAULT)
- 			return -EINVAL;
+ 		if (ret != X86_TRAP_PF)
+ 			return false;
  
 -		if (!fault_in_pages_readable(buf, size))
 +		if (!fault_in_readable(buf, size))
  			goto retry;
- 		return -EFAULT;
+ 		return false;
  	}
  
  	/*

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: linux-next: manual merge of the tip tree with the gfs2 tree
  2021-10-15  4:04 linux-next: manual merge of the tip tree with the gfs2 tree Stephen Rothwell
@ 2021-11-01 23:57 ` Stephen Rothwell
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Rothwell @ 2021-11-01 23:57 UTC (permalink / raw)
  To: Steven Whitehouse, Bob Peterson
  Cc: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Peter Zijlstra,
	Andreas Gruenbacher, Borislav Petkov, Linux Kernel Mailing List,
	Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 1694 bytes --]

Hi all,

On Fri, 15 Oct 2021 15:04:20 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Today's linux-next merge of the tip tree got a conflict in:
> 
>   arch/x86/kernel/fpu/signal.c
> 
> between commit:
> 
>   4303543bac16 ("gup: Turn fault_in_pages_{readable,writeable} into fault_in_{readable,writeable}")
> 
> from the gfs2 tree and commits:
> 
>   fcfb7163329c ("x86/fpu/signal: Move xstate clearing out of copy_fpregs_to_sigframe()")
>   a2a8fd9a3efd ("x86/fpu/signal: Change return code of restore_fpregs_from_user() to boolean")
> 
> from the tip tree.
> 
> I fixed it up (I used the latter version - 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.
> 
> diff --cc arch/x86/kernel/fpu/signal.c
> index 164c96434704,37dbfed29d75..000000000000
> --- a/arch/x86/kernel/fpu/signal.c
> +++ b/arch/x86/kernel/fpu/signal.c
> @@@ -275,12 -283,12 +283,12 @@@ retry
>   		fpregs_unlock();
>   
>   		/* Try to handle #PF, but anything else is fatal. */
> - 		if (ret != -EFAULT)
> - 			return -EINVAL;
> + 		if (ret != X86_TRAP_PF)
> + 			return false;
>   
>  -		if (!fault_in_pages_readable(buf, size))
>  +		if (!fault_in_readable(buf, size))
>   			goto retry;
> - 		return -EFAULT;
> + 		return false;
>   	}
>   
>   	/*

This is now a conflict between Linus' tree and the gfs2 tree.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-01 23:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-15  4:04 linux-next: manual merge of the tip tree with the gfs2 tree Stephen Rothwell
2021-11-01 23:57 ` Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).