linux-next: manual merge of the audit tree with Linus' tree
Hi all,
Today's linux-next merge of the audit tree got conflicts in:
arch/mips/kernel/ptrace.c
kernel/seccomp.c
between commit:
b35f549df1d7 ("syscalls: Remove start and number from syscall_get_arguments() args")
from Linus' tree and commit:
16add411645c ("syscall_get_arch: add "struct task_struct *" argument")
from the audit 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 · 33 lines
Cheers, Stephen Rothwell diff --cc arch/mips/kernel/ptrace.c index 3a62f80958e1,2ead6ff919b7..000000000000 --- a/arch/mips/kernel/ptrace.c +++ b/arch/mips/kernel/ptrace.c @@@ -1418,8 -1418,8 +1418,8 @@@ asmlinkage long syscall_trace_enter(str unsigned long args[6]; sd.nr = syscall; - sd.arch = syscall_get_arch(); + sd.arch = syscall_get_arch(current); - syscall_get_arguments(current, regs, 0, 6, args); + syscall_get_arguments(current, regs, args); for (i = 0; i < 6; i++) sd.args[i] = args[i]; sd.instruction_pointer = KSTK_EIP(current); diff --cc kernel/seccomp.c index df27e499956a,36f36ab00f48..000000000000 --- a/kernel/seccomp.c +++ b/kernel/seccomp.c @@@ -148,8 -148,8 +148,8 @@@ static void populate_seccomp_data(struc unsigned long args[6]; sd->nr = syscall_get_nr(task, regs); - sd->arch = syscall_get_arch(); + sd->arch = syscall_get_arch(task); - syscall_get_arguments(task, regs, 0, 6, args); + syscall_get_arguments(task, regs, args); sd->args[0] = args[0]; sd->args[1] = args[1]; sd->args[2] = args[2];
Quoted 15 lines · Stephen Rothwell
Hi all,
Today's linux-next merge of the audit tree got conflicts in:
arch/mips/kernel/ptrace.c
kernel/seccomp.cbetween commit:
b35f549df1d7("syscalls: Remove start and number fromsyscall_get_arguments()args")from Linus' tree and commit:
16add411645c("syscall_get_arch: add "structtask_struct*" argument")
Quoted 8 lines
from the audit 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.
Thanks, the merge fix is correct.
I've also re-tested it using the new selftests/ptrace test from PTRACE_GET_SYSCALL_INFO patchset.
Signature · 1 line
ldv
Quoted 25 lines · Dmitry V. Levin
Quoted 15 lines · Stephen Rothwell
Hi all,
Today's linux-next merge of the audit tree got conflicts in:
arch/mips/kernel/ptrace.c
kernel/seccomp.cbetween commit:
b35f549df1d7("syscalls: Remove start and number fromsyscall_get_arguments()args")from Linus' tree and commit:
16add411645c("syscall_get_arch: add "structtask_struct*" argument")Quoted 8 lines
from the audit 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.
Quoted 3 lines
Thanks, the merge fix is correct.
I've also re-tested it using the new selftests/ptrace test fromPTRACE_GET_SYSCALL_INFOpatchset.
Thanks for the verification Dmitry.
Stephen, thanks for the heads-up, I'll pass this along to Linus come merge time.
Signature · 2 lines
paul moore www.paul-moore.com