linux-next: manual merge of the block tree with the arm64 tree
Hi all,
Today's linux-next merge of the block tree got a conflict in:
arch/arm64/include/asm/thread_info.h
between commit:
b5a5a01d8e9a ("arm64: uaccess: remove addr_limit_user_check()")
from the arm64 tree and commit:
192caabd4dd9 ("arm64: add support for TIF_NOTIFY_SIGNAL")
from the block 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 · 30 lines
Cheers, Stephen Rothwell diff --cc arch/arm64/include/asm/thread_info.h index 015beafe58f5,cdcf307764aa..000000000000 --- a/arch/arm64/include/asm/thread_info.h +++ b/arch/arm64/include/asm/thread_info.h @@@ -63,7 -66,9 +63,8 @@@ void arch_release_task_struct(struct ta #define TIF_NOTIFY_RESUME 2 /* callback before returning to user */ #define TIF_FOREIGN_FPSTATE 3 /* CPU's FP state is not current's */ #define TIF_UPROBE 4 /* uprobe breakpoint or singlestep */ - #define TIF_MTE_ASYNC_FAULT 5 /* MTE Asynchronous Tag Check Fault */ -#define TIF_FSCHECK 5 /* Check FS is USER_DS on return */ ++#define TIF_NOTIFY_SIGNAL 5 /* signal notifications exist */ + #define TIF_MTE_ASYNC_FAULT 6 /* MTE Asynchronous Tag Check Fault */ -#define TIF_NOTIFY_SIGNAL 7 /* signal notifications exist */ #define TIF_SYSCALL_TRACE 8 /* syscall trace active */ #define TIF_SYSCALL_AUDIT 9 /* syscall auditing */ #define TIF_SYSCALL_TRACEPOINT 10 /* syscall tracepoint for ftrace */ @@@ -96,7 -103,8 +98,8 @@@ #define _TIF_WORK_MASK (_TIF_NEED_RESCHED | _TIF_SIGPENDING | \ _TIF_NOTIFY_RESUME | _TIF_FOREIGN_FPSTATE | \ - _TIF_UPROBE | _TIF_MTE_ASYNC_FAULT) - _TIF_UPROBE | _TIF_FSCHECK | _TIF_MTE_ASYNC_FAULT | \ ++ _TIF_UPROBE | _TIF_MTE_ASYNC_FAULT | \ + _TIF_NOTIFY_SIGNAL) #define _TIF_SYSCALL_WORK (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT | \ _TIF_SYSCALL_TRACEPOINT | _TIF_SECCOMP | \
Quoted 17 lines · Stephen Rothwell
arch/arm64/include/asm/thread_info.h +2
-1@@@ -63,7 -66,9 +63,8 @@@ void arch_release_task_struct(struct ta#define TIF_NOTIFY_RESUME 2/* callback before returning to user */ #define TIF_FOREIGN_FPSTATE 3/* CPU's FP state is not current's */ #define TIF_UPROBE 4/* uprobe breakpoint or singlestep */ -#define TIF_MTE_ASYNC_FAULT 5/* MTE Asynchronous Tag Check Fault */ -#define TIF_FSCHECK 5 /* Check FS is USER_DS on return */ ++#define TIF_NOTIFY_SIGNAL 5 /* signal notifications exist */ +#define TIF_MTE_ASYNC_FAULT 6/* MTE Asynchronous Tag Check Fault */ -#define TIF_NOTIFY_SIGNAL 7 /* signal notifications exist */#define TIF_SYSCALL_TRACE 8/* syscall trace active */ #define TIF_SYSCALL_AUDIT 9/* syscall auditing */ #define TIF_SYSCALL_TRACEPOINT 10/* syscall tracepoint for ftrace */
arch/arm64/include/asm/thread_info.h
Quoted 7 lines
arch/arm64/include/asm/thread_info.h +2
-1@@@ -96,7 -103,8 +98,8 @@@#define _TIF_WORK_MASK (_TIF_NEED_RESCHED | _TIF_SIGPENDING | \ _TIF_NOTIFY_RESUME | _TIF_FOREIGN_FPSTATE | \ - _TIF_UPROBE | _TIF_MTE_ASYNC_FAULT) - _TIF_UPROBE | _TIF_FSCHECK | _TIF_MTE_ASYNC_FAULT | \ ++ _TIF_UPROBE | _TIF_MTE_ASYNC_FAULT | \ + _TIF_NOTIFY_SIGNAL)
Thanks Stephen. It looks alright to me.
Signature · 1 line
Catalin
Quoted 19 lines · Catalin Marinas
Quoted 18 lines · Stephen Rothwell
arch/arm64/include/asm/thread_info.h +2
-1@@@ -63,7 -66,9 +63,8 @@@ void arch_release_task_struct(struct ta#define TIF_NOTIFY_RESUME 2/* callback before returning to user */ #define TIF_FOREIGN_FPSTATE 3/* CPU's FP state is not current's */ #define TIF_UPROBE 4/* uprobe breakpoint or singlestep */ -#define TIF_MTE_ASYNC_FAULT 5/* MTE Asynchronous Tag Check Fault */ -#define TIF_FSCHECK 5 /* Check FS is USER_DS on return */ ++#define TIF_NOTIFY_SIGNAL 5 /* signal notifications exist */ +#define TIF_MTE_ASYNC_FAULT 6/* MTE Asynchronous Tag Check Fault */ -#define TIF_NOTIFY_SIGNAL 7 /* signal notifications exist */#define TIF_SYSCALL_TRACE 8/* syscall trace active */ #define TIF_SYSCALL_AUDIT 9/* syscall auditing */ #define TIF_SYSCALL_TRACEPOINT 10/* syscall tracepoint for ftrace */ @@@ -96,7 -103,8 +98,8 @@@
Quoted 8 lines
arch/arm64/include/asm/thread_info.h
Quoted 6 lines
#define _TIF_WORK_MASK (_TIF_NEED_RESCHED | _TIF_SIGPENDING | \ _TIF_NOTIFY_RESUME | _TIF_FOREIGN_FPSTATE | \arch/arm64/include/asm/thread_info.h +2
-1- _TIF_UPROBE | _TIF_MTE_ASYNC_FAULT) - _TIF_UPROBE | _TIF_FSCHECK | _TIF_MTE_ASYNC_FAULT | \ ++ _TIF_UPROBE | _TIF_MTE_ASYNC_FAULT | \ + _TIF_NOTIFY_SIGNAL)Thanks Stephen. It looks alright to me.
Agree - I'll rebase my tree when -rc7 is out so we won't have this issue once the 5.11 merge window opens.
Signature · 1 line
Jens Axboe
Quoted 29 lines · Jens Axboe
Quoted 19 lines · Catalin Marinas
Quoted 18 lines · Stephen Rothwell
arch/arm64/include/asm/thread_info.h +2
-1@@@ -63,7 -66,9 +63,8 @@@ void arch_release_task_struct(struct ta#define TIF_NOTIFY_RESUME 2/* callback before returning to user */ #define TIF_FOREIGN_FPSTATE 3/* CPU's FP state is not current's */ #define TIF_UPROBE 4/* uprobe breakpoint or singlestep */ -#define TIF_MTE_ASYNC_FAULT 5/* MTE Asynchronous Tag Check Fault */ -#define TIF_FSCHECK 5 /* Check FS is USER_DS on return */ ++#define TIF_NOTIFY_SIGNAL 5 /* signal notifications exist */ +#define TIF_MTE_ASYNC_FAULT 6/* MTE Asynchronous Tag Check Fault */ -#define TIF_NOTIFY_SIGNAL 7 /* signal notifications exist */#define TIF_SYSCALL_TRACE 8/* syscall trace active */ #define TIF_SYSCALL_AUDIT 9/* syscall auditing */ #define TIF_SYSCALL_TRACEPOINT 10/* syscall tracepoint for ftrace */ @@@ -96,7 -103,8 +98,8 @@@Quoted 8 lines
arch/arm64/include/asm/thread_info.h
Quoted 6 lines
#define _TIF_WORK_MASK (_TIF_NEED_RESCHED | _TIF_SIGPENDING | \ _TIF_NOTIFY_RESUME | _TIF_FOREIGN_FPSTATE | \arch/arm64/include/asm/thread_info.h +2
-1- _TIF_UPROBE | _TIF_MTE_ASYNC_FAULT) - _TIF_UPROBE | _TIF_FSCHECK | _TIF_MTE_ASYNC_FAULT | \ ++ _TIF_UPROBE | _TIF_MTE_ASYNC_FAULT | \ + _TIF_NOTIFY_SIGNAL)Thanks Stephen. It looks alright to me.
Quoted 2 lines
Agree - I'll rebase my tree when -rc7 is out so we won't have this issue once the 5.11 merge window opens.
I don't think rebasing on -rc7 will help since the arm64 commit b5a5a01d8e9a is queued for 5.11 (so not in -rc7).
It shouldn't matter much, Linus likes the occasional conflict ;). Anyway, I can wait for your pull request to go in if you'd prefer (and if it happens in the first week of the merging window).
Signature · 1 line
Catalin
Quoted 30 lines · Catalin Marinas
Quoted 29 lines · Jens Axboe
Quoted 27 lines · Catalin Marinas
Quoted 17 lines · Stephen Rothwell
arch/arm64/include/asm/thread_info.h +2
-1@@@ -63,7 -66,9 +63,8 @@@ void arch_release_task_struct(struct ta#define TIF_NOTIFY_RESUME 2/* callback before returning to user */ #define TIF_FOREIGN_FPSTATE 3/* CPU's FP state is not current's */ #define TIF_UPROBE 4/* uprobe breakpoint or singlestep */ -#define TIF_MTE_ASYNC_FAULT 5/* MTE Asynchronous Tag Check Fault */ -#define TIF_FSCHECK 5 /* Check FS is USER_DS on return */ ++#define TIF_NOTIFY_SIGNAL 5 /* signal notifications exist */ +#define TIF_MTE_ASYNC_FAULT 6/* MTE Asynchronous Tag Check Fault */ -#define TIF_NOTIFY_SIGNAL 7 /* signal notifications exist */#define TIF_SYSCALL_TRACE 8/* syscall trace active */ #define TIF_SYSCALL_AUDIT 9/* syscall auditing */ #define TIF_SYSCALL_TRACEPOINT 10/* syscall tracepoint for ftrace */ arch/arm64/include/asm/thread_info.h
Quoted 7 lines
arch/arm64/include/asm/thread_info.h +2
-1@@@ -96,7 -103,8 +98,8 @@@#define _TIF_WORK_MASK (_TIF_NEED_RESCHED | _TIF_SIGPENDING | \ _TIF_NOTIFY_RESUME | _TIF_FOREIGN_FPSTATE | \ - _TIF_UPROBE | _TIF_MTE_ASYNC_FAULT) - _TIF_UPROBE | _TIF_FSCHECK | _TIF_MTE_ASYNC_FAULT | \ ++ _TIF_UPROBE | _TIF_MTE_ASYNC_FAULT | \ + _TIF_NOTIFY_SIGNAL)Thanks Stephen. It looks alright to me.
Quoted 5 lines
Quoted 2 lines
Agree - I'll rebase my tree when -rc7 is out so we won't have this issue once the 5.11 merge window opens.
I don't think rebasing on -rc7 will help since the arm64 commit
b5a5a01d8e9ais queued for 5.11 (so not in -rc7).
Ah indeed, I saw some changes come in yesterday for mainline and assumed it was those.
Quoted 3 lines
It shouldn't matter much, Linus likes the occasional conflict ;). Anyway, I can wait for your pull request to go in if you'd prefer (and if it happens in the first week of the merging window).
Right, not an issue, it's a trivial resolve anyway. That branch is dependent on an x86/core branch, so I'll push it out when that goes in. But Linus usually pulls those early, so don't think we'll have much of an issue there.
Signature · 1 line
Jens Axboe
Hi all,
Quoted 39 lines · On Thu, 3 Dec 2020 14:25:30 +1100 Stephen Rothwell <[email protected]> wrote:
Today's linux-next merge of the block tree got a conflict in:
arch/arm64/include/asm/thread_info.hbetween commit:
b5a5a01d8e9a("arm64: uaccess: removeaddr_limit_user_check()")from the arm64 tree and commit:
192caabd4dd9("arm64: add support forTIF_NOTIFY_SIGNAL")from the block 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.
arch/arm64/include/asm/thread_info.h +2
-1@@@ -63,7 -66,9 +63,8 @@@ void arch_release_task_struct(struct ta#define TIF_NOTIFY_RESUME 2/* callback before returning to user */ #define TIF_FOREIGN_FPSTATE 3/* CPU's FP state is not current's */ #define TIF_UPROBE 4/* uprobe breakpoint or singlestep */ -#define TIF_MTE_ASYNC_FAULT 5/* MTE Asynchronous Tag Check Fault */ -#define TIF_FSCHECK 5 /* Check FS is USER_DS on return */ ++#define TIF_NOTIFY_SIGNAL 5 /* signal notifications exist */ +#define TIF_MTE_ASYNC_FAULT 6/* MTE Asynchronous Tag Check Fault */ -#define TIF_NOTIFY_SIGNAL 7 /* signal notifications exist */#define TIF_SYSCALL_TRACE 8/* syscall trace active */ #define TIF_SYSCALL_AUDIT 9/* syscall auditing */ #define TIF_SYSCALL_TRACEPOINT 10/* syscall tracepoint for ftrace */
arch/arm64/include/asm/thread_info.h
Quoted 10 lines
arch/arm64/include/asm/thread_info.h +2
-1@@@ -96,7 -103,8 +98,8 @@@#define _TIF_WORK_MASK (_TIF_NEED_RESCHED | _TIF_SIGPENDING | \ _TIF_NOTIFY_RESUME | _TIF_FOREIGN_FPSTATE | \ - _TIF_UPROBE | _TIF_MTE_ASYNC_FAULT) - _TIF_UPROBE | _TIF_FSCHECK | _TIF_MTE_ASYNC_FAULT | \ ++ _TIF_UPROBE | _TIF_MTE_ASYNC_FAULT | \ + _TIF_NOTIFY_SIGNAL)#define _TIF_SYSCALL_WORK (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT | \ _TIF_SYSCALL_TRACEPOINT | _TIF_SECCOMP | \
Just a reminder that this conflict still exists.
Signature · 2 lines
Cheers, Stephen Rothwell