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@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/ Regards, Shiji Yang