[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID:
<TYCP286MB08959A6EA0BCB900503BA18EBCD12@TYCP286MB0895.JPNP286.PROD.OUTLOOK.COM>
Date: Sat, 29 Jun 2024 12:56:39 +0800
From: Shiji Yang <yangshiji66@...look.com>
To: jiaxun.yang@...goat.com
Cc: arnd@...db.de,
bhe@...hat.com,
fancer.lancer@...il.com,
gregkh@...uxfoundation.org,
javierm@...hat.com,
khalid@...ehiking.org,
linux-kernel@...r.kernel.org,
linux-mips@...r.kernel.org,
namiltd@...oo.com,
tsbogend@...ha.franken.de,
yangshiji66@...look.com
Subject: Re: [PATCH V2] mips: kernel: fix detect_memory_region() function
On Tue, 25 Jun 2024 02:58:54 +0100, Jiaxun Yang wrote:
>> The detect_memory_region() has been broken on 6.6 kernel[1]. This
>> patch fixes it by:
>> 1. Do not use memcmp() on unallocated memory, as the new introduced
>> fortify dynamic object size check[2] will return unexpected result.
>> 2. Use a fixed pattern instead of a random function pointer as the
>> magic value.
>> 3. Flip magic value and double check it.
>> 4. Enable this feature only for 32-bit CPUs. Currently, only ath79 and
>> ralink CPUs are using it. And 64-bit CPU doesn't have the KSEG1ADDR
>> definition.
>
>Hi Shiji,
>
>Thanks for your patch.
>
>Please don't break 64bit system.
>Use CKSEG1ADDR_OR_64BIT instead.
>
>Thanks
>- Jiaxun
Thanks. I've updated and tested it in v2 patch.
https://lore.kernel.org/linux-mips/TYCP286MB0895F65439037ED134FEA7DDBCD12@TYCP286MB0895.JPNP286.PROD.OUTLOOK.COM/
Regards,
Shiji Yang
Powered by blists - more mailing lists