[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b4eb28ad-2d58-fb23-2139-427df46c2773@oracle.com>
Date: Mon, 14 Aug 2017 10:01:52 -0400
From: Pasha Tatashin <pasha.tatashin@...cle.com>
To: Michal Hocko <mhocko@...nel.org>
Cc: linux-kernel@...r.kernel.org, sparclinux@...r.kernel.org,
linux-mm@...ck.org, linuxppc-dev@...ts.ozlabs.org,
linux-s390@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
x86@...nel.org, kasan-dev@...glegroups.com, borntraeger@...ibm.com,
heiko.carstens@...ibm.com, davem@...emloft.net,
willy@...radead.org, ard.biesheuvel@...aro.org,
will.deacon@....com, catalin.marinas@....com, sam@...nborg.org
Subject: Re: [v6 15/15] mm: debug for raw alloctor
>> However, now thinking about it, I will change it to CONFIG_MEMBLOCK_DEBUG,
>> and let users decide what other debugging configs need to be enabled, as
>> this is also OK.
>
> Actually the more I think about it the more I am convinced that a kernel
> boot parameter would be better because it doesn't need the kernel to be
> recompiled and it is a single branch in not so hot path.
The main reason I do not like kernel parameter is that automated test
suits for every platform would need to be updated to include this new
parameter in order to test it.
Yet, I think it is important at least initially to test it on every
platform unconditionally when certain debug configs are enabled.
This patch series allows boot allocator to return uninitialized memory,
this behavior Linux never had before, but way too often firmware
explicitly zero all the memory before starting OS. Therefore, it would
be hard to debug issues that might be only seen during kinit type of
reboots.
In the future, when memory sizes will increase so that this memset will
become unacceptable even on debug kernels, it can always be removed, but
at least at that time we will know that the code has been tested for
many years.
Powered by blists - more mailing lists