From: James Morse <james.morse@arm.com> To: Mark Rutland <mark.rutland@arm.com>, Xie XiuQi <xiexiuqi@huawei.com> Cc: catalin.marinas@arm.com, will@kernel.org, tglx@linutronix.de, tanxiaofei@huawei.com, wangxiongfeng2@huawei.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: panic on synchronous external abort in kernel context Date: Tue, 14 Apr 2020 13:16:08 +0100 [thread overview] Message-ID: <adc93578-5cfc-09c3-0b88-b265e310ef97@arm.com> (raw) In-Reply-To: <20200414105923.GA2486@C02TD0UTHF1T.local> Hi Xie, On 14/04/2020 11:59, Mark Rutland wrote: > On Fri, Apr 10, 2020 at 09:52:45AM +0800, Xie XiuQi wrote: >> We should panic even panic_on_oops is not set, when we can't recover >> from synchronous external abort in kernel context. Hmm, fault-from-kernel-context doesn't mean the fault affects the kernel. If the kernel is reading or writing from user-space memory for a syscall, its the user-space memory that is affected. This thread can't make progress, so we kill it. If its a kernel thread or we were in irq context, we panic(). I don't think you really want all faults that happen as a result of a kernel access to be fatal! [...] > What exactly are you trying to catch here? If you are seeing a problem > in practice, can you please share your log from a crash? Yes please! I suspect you want to make memory_failure() smarter about faults that affect the kernel text or data. If so, please do it in memory_failure() where it benefits all architectures, and all methods of reporting errors. (we may need a 'synchronous' hint to memory_failure(), it expects everything to be asynchronous). If its not memory, we should extend the RAS handling to know what this error is, and that it is fatal. (e.g. PE state is infected) Thanks, James
WARNING: multiple messages have this Message-ID (diff)
From: James Morse <james.morse@arm.com> To: Mark Rutland <mark.rutland@arm.com>, Xie XiuQi <xiexiuqi@huawei.com> Cc: catalin.marinas@arm.com, linux-kernel@vger.kernel.org, tanxiaofei@huawei.com, tglx@linutronix.de, will@kernel.org, wangxiongfeng2@huawei.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] arm64: panic on synchronous external abort in kernel context Date: Tue, 14 Apr 2020 13:16:08 +0100 [thread overview] Message-ID: <adc93578-5cfc-09c3-0b88-b265e310ef97@arm.com> (raw) In-Reply-To: <20200414105923.GA2486@C02TD0UTHF1T.local> Hi Xie, On 14/04/2020 11:59, Mark Rutland wrote: > On Fri, Apr 10, 2020 at 09:52:45AM +0800, Xie XiuQi wrote: >> We should panic even panic_on_oops is not set, when we can't recover >> from synchronous external abort in kernel context. Hmm, fault-from-kernel-context doesn't mean the fault affects the kernel. If the kernel is reading or writing from user-space memory for a syscall, its the user-space memory that is affected. This thread can't make progress, so we kill it. If its a kernel thread or we were in irq context, we panic(). I don't think you really want all faults that happen as a result of a kernel access to be fatal! [...] > What exactly are you trying to catch here? If you are seeing a problem > in practice, can you please share your log from a crash? Yes please! I suspect you want to make memory_failure() smarter about faults that affect the kernel text or data. If so, please do it in memory_failure() where it benefits all architectures, and all methods of reporting errors. (we may need a 'synchronous' hint to memory_failure(), it expects everything to be asynchronous). If its not memory, we should extend the RAS handling to know what this error is, and that it is fatal. (e.g. PE state is infected) Thanks, James _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2020-04-14 12:16 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-04-10 1:52 [PATCH] arm64: panic on synchronous external abort in kernel context Xie XiuQi 2020-04-10 1:52 ` Xie XiuQi 2020-04-14 10:59 ` Mark Rutland 2020-04-14 10:59 ` Mark Rutland 2020-04-14 12:16 ` James Morse [this message] 2020-04-14 12:16 ` James Morse 2020-04-14 12:39 ` Xie XiuQi 2020-04-14 12:39 ` Xie XiuQi 2020-04-14 14:53 ` James Morse 2020-04-14 14:53 ` James Morse 2020-04-30 9:44 ` Xie XiuQi 2020-04-30 9:44 ` Xie XiuQi 2020-04-14 12:19 ` Xie XiuQi 2020-04-14 12:19 ` Xie XiuQi
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=adc93578-5cfc-09c3-0b88-b265e310ef97@arm.com \ --to=james.morse@arm.com \ --cc=catalin.marinas@arm.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=mark.rutland@arm.com \ --cc=tanxiaofei@huawei.com \ --cc=tglx@linutronix.de \ --cc=wangxiongfeng2@huawei.com \ --cc=will@kernel.org \ --cc=xiexiuqi@huawei.com \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.