Subject: Re: [PATCH 2/3] gfp: mm: introduce __GFP_NOINIT References: <20190418154208.131118-1-glider@google.com> <20190418154208.131118-3-glider@google.com> <7bf6bd62-c8e0-df3d-8e98-70063f2d175a@intel.com> From: Dave Hansen Message-ID: <2c66e43f-81d5-ebeb-495a-f3f3b65d315c@intel.com> Date: Tue, 23 Apr 2019 13:40:19 -0700 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit To: Kees Cook Cc: Alexander Potapenko , Andrew Morton , Christoph Lameter , Dmitry Vyukov , Laura Abbott , Linux-MM , linux-security-module , Kernel Hardening List-ID: On 4/23/19 12:14 PM, Kees Cook wrote: >> These sl*b ones seem like a bad idea. We already have rules that sl*b >> allocations must be initialized by callers, and we have reasonably >> frequent bugs where the rules are broken. > > Hm? No, this is saying that the page allocator can skip the auto-init > because the slab internals will be doing it later. Ahhh, got it. I missed all the fun in patch 1.