lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Mon, 7 Sep 2020 15:15:58 -0700
From:   Randy Dunlap <rdunlap@...radead.org>
To:     Mike Rapoport <rppt@...ux.ibm.com>
Cc:     LKML <linux-kernel@...r.kernel.org>, Linux MM <linux-mm@...ck.org>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Michal Nazarewicz <mina86@...a86.com>,
        Wen Congyang <wency@...fujitsu.com>,
        Michal Simek <monstr@...str.eu>,
        Christoph Hellwig <hch@....de>,
        kernel test robot <lkp@...el.com>
Subject: Re: [PATCH] <linux/page-isolation.h>: provide stubs for
 MEMORY_ISOLATION not set (for Microblaze)

On 9/7/20 12:05 AM, Mike Rapoport wrote:
> Hi Randy,
> 
> On Sun, Sep 06, 2020 at 12:33:08PM -0700, Randy Dunlap wrote:
>> From: Randy Dunlap <rdunlap@...radead.org>
>>
>> Fix build errors in Microblaze when CONFIG_MEMORY_ISOLATION is not
>> set/enabled by adding stubs for 3 missing functions.
> 
> I've tried to follow Kconfig dependencies to see how could we have both
> CONTIG_ALLOC=y and CONFIG_MEMORY_ISOLATION=n and I could not find how
> was this possible.
> 
> We have 
> 
> config CONTIG_ALLOC
> 	def_bool (MEMORY_ISOLATION && COMPACTION) || CMA
> 
> and
> 
> config CMA
> 	bool "Contiguous Memory Allocator"
> 	depends on MMU
> 	select MIGRATION
> 	select MEMORY_ISOLATION
> 
> and alloc_contig_range() is hidden behind '#ifdef CONFIG_CONTIG_ALLOC'
> 
> In any rate, I think the better fix would be to update Kconfig
> dependencies rather than add stubs for these functions.

OK, working on that. Should have something soon.


>> Fixes these build errors:
>>
>> gcc-9.3.0-nolibc/microblaze-linux/bin/microblaze-linux-ld: mm/page_alloc.o: in function `alloc_contig_range':
>> (.text+0xa0c0): undefined reference to `start_isolate_page_range'
>> gcc-9.3.0-nolibc/microblaze-linux/bin/microblaze-linux-ld: (.text+0xa2bc): undefined reference to `test_pages_isolated'
>> gcc-9.3.0-nolibc/microblaze-linux/bin/microblaze-linux-ld: (.text+0xa378): undefined reference to `undo_isolate_page_range'
>>
>> Fixes: 0815f3d81d76 ("mm: page_isolation: MIGRATE_CMA isolation functions added") # v3.10
>> Fixes: b023f46813cd ("memory-hotplug: skip HWPoisoned page when offlining pages") # v3.10
>> Reported-by: kernel test robot <lkp@...el.com>
>> Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
>> Cc: Michal Nazarewicz <mina86@...a86.com>
>> Cc: Wen Congyang <wency@...fujitsu.com>
>> Cc: Michal Simek <monstr@...str.eu>
>> Cc: Christoph Hellwig <hch@....de>
>> Cc: Andrew Morton <akpm@...ux-foundation.org>
>> Cc: Mike Rapoport <rppt@...ux.ibm.com>
>> Cc: linux-mm@...ck.org
>> ---
>>  include/linux/page-isolation.h |   16 ++++++++++++++++
>>  1 file changed, 16 insertions(+)


-- 
~Randy

Powered by blists - more mailing lists