From: Christian Brauner <christian.brauner@ubuntu.com>
To: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Cc: "Luck, Tony" <tony.luck@intel.com>,
"Yu, Fenghua" <fenghua.yu@intel.com>,
"linux-ia64@vger.kernel.org" <linux-ia64@vger.kernel.org>,
Al Viro <viro@zeniv.linux.org.uk>, Arnd Bergmann <arnd@arndb.de>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@kernel.org>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
"Peter Zijlstra (Intel)" <peterz@infradead.org>,
Qais Yousef <qais.yousef@arm.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ia64: enable HAVE_COPY_THREAD_TLS, switch to kernel_clone_args
Date: Thu, 14 May 2020 10:04:59 +0000 [thread overview]
Message-ID: <20200514100459.pt7dxq2faghdds2c@wittgenstein> (raw)
In-Reply-To: <d6c94d4f-a431-9de5-7a0f-661894dbec01@physik.fu-berlin.de>
On Thu, May 14, 2020 at 11:48:31AM +0200, John Paul Adrian Glaubitz wrote:
>
>
> On 5/14/20 9:53 AM, John Paul Adrian Glaubitz wrote:
> > The kernel is currently building, you should get it by the evening (CEST).
> >
> > The machine also serves as a Debian buildd which is why it's a bit more
> > busy than other servers.
> I applied the patch against 5.7-rc5, it applied fine and builds fine.
>
> It seems though that systemd crashes but I'm not sure it's related:
>
> [ 14.267489] init[1]: General Exception: IA-64 Reserved Register/Field fault (data access) 2199023255600 [1]
> [ 14.267489] Modules linked in:
> [ 14.267489]
> [ 14.267489] CPU: 0 PID: 1 Comm: init Not tainted 5.7.0-rc5 #1
> [ 14.267489] Hardware name: hp server BL860c , BIOS 04.25 07/02/2010
> [ 14.267489] psr : 0000121008526030 ifs : 8000000000000510 ip : [<a00000010000c541>] Not tainted (5.7.0-rc5)
> [ 14.267489] ip is at sys_clone2+0x61/0x80
> [ 14.267489] unat: 0000000000000000 pfs : 0000000000000510 rsc : 0000000000000003
> [ 14.267489] rnat: 0000000000000000 bsps: 0000000000000000 pr : 000000000001a959
> [ 14.267489] ldrs: 0000000000000000 ccv : 0000000000000002 fpsr: 0009804c8a70033f
> [ 14.267489] csd : 0000000000000000 ssd : 0000000000000000
> [ 14.267489] b0 : a00000010000c540 b6 : a0000001000edf80 b7 : a000000100369560
> [ 14.267489] f6 : 1003e000000000000b8a4 f7 : 1003e00000001754e8d69
> [ 14.267489] f8 : 1003e0000000178311d69 f9 : 100098000000000000000
> [ 14.267489] f10 : 1000eb8a3fffff475c000 f11 : 1003e000000000000b8a4
> [ 14.267489] r1 : a0000001017a6f10 r2 : 0000000000000000 r3 : 0000000000000006
> [ 14.267489] r8 : 0000000000000066 r9 : 0000000000000060 r10 : e0000100800d8e68
> [ 14.267489] r11 : 0000000000000002 r12 : e00001008027fe30 r13 : e000010080278000
> [ 14.267489] r14 : e0000100800d8e04 r15 : e0000100800d8e08 r16 : 0000000000000002
> [ 14.267489] r17 : 0000000000000001 r18 : 0000000000000002 r19 : 0000000000000003
> [ 14.267489] r20 : 0000000000000004 r21 : e00001008027fb98 r22 : e000000001146d02
> [ 14.267489] r23 : 00000000000030c8 r24 : 00000000000030c8 r25 : 00000000000030ca
> [ 14.267489] r26 : 00000000000030ca r27 : 00000000000030ca r28 : e00001008027fb90
> [ 14.267489] r29 : 0000000000000400 r30 : 00000000000002e8 r31 : 0000000000000400
> [ 14.267489]
> [ 14.267489] Call Trace:
> [ 14.267489] [<a000000100015090>] show_stack+0x90/0xc0
> [ 14.267489] spà0001008027f9f0 bspà00010080279288
> [ 14.267489] [<a000000100015780>] show_regs+0x6c0/0xa20
> [ 14.267489] spà0001008027fbc0 bspà00010080279218
> [ 14.267489] [<a000000100029590>] die+0x1b0/0x4a0
> [ 14.267489] spà0001008027fbe0 bspà000100802791d0
> [ 14.267489] [<a00000010100e690>] ia64_fault+0x770/0xd80
> [ 14.267489] spà0001008027fbe0 bspà00010080279180
> [ 14.267489] [<a00000010000ce60>] ia64_leave_kernel+0x0/0x270
> [ 14.267489] spà0001008027fc60 bspà00010080279180
> [ 14.267489] [<a00000010000c540>] sys_clone2+0x60/0x80
> [ 14.267489] spà0001008027fe30 bspà00010080279100
> [ 14.267489] Disabling lock debugging due to kernel taint
> [ 14.267489] init[102]: General Exception: IA-64 Reserved Register/Field fault (data access) 4398046511152 [2]
> [ 14.350730] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
> [1 4 . 31540.733500]7 3-0-]- [- -e-n[d eKnedr nKeelr npealn pani[c - 1n4o.t2 6s7y4n8c9i]n g:
> :Attem [D 1 4 . 2 6 7 4 8 95]. 7C.P0U-:r c15 P#I1D
> i e1\02x 0C0o0m0m0:0 0ibn i]t- -T-a
> nted: G D 5.7.0-rc5 #1
>
> I have to perform more testing. The machine boots fine with a 5.5.x kernel.
So that's interesting because systemd doesn't support itanium correctly afaict.
They have a raw_clone() function that they use which is not tailored to
ia64. __NR_clone should be defined as so to hit clone2() but they don't
pass a stack size argument down which is invalid on ia64:
static inline pid_t raw_clone(unsigned long flags) {
pid_t ret;
assert((flags & (CLONE_VM|CLONE_PARENT_SETTID|CLONE_CHILD_SETTID|
CLONE_CHILD_CLEARTID|CLONE_SETTLS)) = 0);
#if defined(__s390x__) || defined(__s390__) || defined(__CRIS__)
/* On s390/s390x and cris the order of the first and second arguments
* of the raw clone() system call is reversed. */
ret = (pid_t) syscall(__NR_clone, NULL, flags);
#elif defined(__sparc__)
{
/**
* sparc always returns the other process id in %o0, and
* a boolean flag whether this is the child or the parent in
* %o1. Inline assembly is needed to get the flag returned
* in %o1.
*/
int in_child, child_pid, error;
asm volatile("mov %3, %%g1\n\t"
"mov %4, %%o0\n\t"
"mov 0 , %%o1\n\t"
#if defined(__arch64__)
"t 0x6d\n\t"
#else
"t 0x10\n\t"
#endif
"addx %%g0, 0, %2\n\t"
"mov %%o1, %0\n\t"
"mov %%o0, %1" :
"=r"(in_child), "=r"(child_pid), "=r"(error) :
"i"(__NR_clone), "r"(flags) :
"%o1", "%o0", "%g1", "cc" );
if (error) {
errno = child_pid;
ret = -1;
} else
ret = in_child ? 0 : child_pid;
}
#else
ret = (pid_t) syscall(__NR_clone, flags, NULL);
#endif
if (ret = 0)
reset_cached_pid();
return ret;
}
next prev parent reply other threads:[~2020-05-14 10:04 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-13 20:48 [PATCH] ia64: enable HAVE_COPY_THREAD_TLS, switch to kernel_clone_args Christian Brauner
2020-05-13 21:19 ` Luck, Tony
2020-05-13 21:26 ` John Paul Adrian Glaubitz
2020-05-14 7:46 ` Christian Brauner
2020-05-14 7:53 ` John Paul Adrian Glaubitz
2020-05-14 7:58 ` Christian Brauner
2020-05-14 8:24 ` John Paul Adrian Glaubitz
2020-05-14 8:37 ` Christian Brauner
2020-05-14 8:51 ` John Paul Adrian Glaubitz
2020-05-14 9:48 ` John Paul Adrian Glaubitz
2020-05-14 10:04 ` Christian Brauner [this message]
2020-05-14 10:08 ` John Paul Adrian Glaubitz
2020-05-14 10:15 ` Christian Brauner
2020-05-14 10:19 ` Christian Brauner
2020-05-14 10:21 ` John Paul Adrian Glaubitz
2020-05-14 10:32 ` Christian Brauner
2020-05-14 10:35 ` John Paul Adrian Glaubitz
2020-05-14 10:39 ` Christian Brauner
2020-05-14 10:37 ` Christian Brauner
2020-05-14 10:45 ` Andreas Schwab
2020-05-14 10:51 ` Christian Brauner
2020-05-14 10:37 ` Andreas Schwab
2020-05-14 13:00 ` Christian Brauner
2020-05-14 8:58 ` Sebastian Andrzej Siewior
2020-05-14 9:57 ` Christian Brauner
2020-05-14 7:50 ` Christian Brauner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200514100459.pt7dxq2faghdds2c@wittgenstein \
--to=christian.brauner@ubuntu.com \
--cc=arnd@arndb.de \
--cc=bigeasy@linutronix.de \
--cc=fenghua.yu@intel.com \
--cc=glaubitz@physik.fu-berlin.de \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=peterz@infradead.org \
--cc=qais.yousef@arm.com \
--cc=tglx@linutronix.de \
--cc=tony.luck@intel.com \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox