Re: [PATCH 1/2] ARM: BUG if jumping to usermode address in kernel mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Russel,

On 2017-11-27 15:32, Russell King - ARM Linux wrote:
On Mon, Nov 27, 2017 at 03:27:03PM +0100, Marek Szyprowski wrote:
Dear All,

On 2017-11-25 12:33, Russell King wrote:
Detect if we are returning to usermode via the normal kernel exit paths
but the saved PSR value indicates that we are in kernel mode.  This
could occur due to corrupted stack state, which has been observed with
"ftracetest".

This ensures that we catch the problem case before we get to user code.

Signed-off-by: Russell King <rmk+kernel@xxxxxxxxxxxxxxx>
This patch brakes kernel booting on Exynos 4412-based Odroid U3 board:
"brakes" are what you have on a car. "breaks" is the verb, which is
what you mean here.

I'm sorry, I wrote that mail in a hurry before leaving the office.

It's known as of this morning, and I have a patch going through the
build testers at the moment.

Just replace the 0xcf in these with PSR_I_BIT | 0x0f.

Also wonder why your platform is running with SCR.FW clear...

Yes, this fixes the issue. Thanks.

Best regards
--
Marek Szyprowski, PhD
Samsung R&D Institute Poland

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux