From: Vlastimil Babka Subject: Re: [RFC PATCH 21/32] mm: Convert struct page to struct slab in functions used by other subsystems Date: Wed, 17 Nov 2021 00:37:57 +0100 Message-ID: <52923dbf-82f7-8e0d-dc82-cbead3a526d7@suse.cz> References: <20211116001628.24216-1-vbabka@suse.cz> <20211116001628.24216-22-vbabka@suse.cz> <6866ad09-f765-0e8b-4821-8dbdc6d0f24e@suse.cz> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1637105880; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=B5bLQ6GbPOxbu8UfgtnzISb6N4GArkk8FZZtgzRR1Pw=; b=o+YYhc6IVrXBbJ5AzfTt2aG4U97QfhFhVLZulFKrbPXXHJDAwn5ED25sersT1yfZtEhqhD /CcE1TbiYUJSCYdxyvpCY6ZyDOvvankpDn3Q0gcXAZemANM7tjTz0T+BOQ2zDEq5nndIZ7 9PsgaVR+tisqkhLz7B+WNHiQvv273Os= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1637105880; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=B5bLQ6GbPOxbu8UfgtnzISb6N4GArkk8FZZtgzRR1Pw=; b=apY56TBrKIjgpu73fWg2YklYy+VgPdFETTCb9k12WeKOuvsIUvcRMZaWqrSFXvLqBF0b07 4mp0aXzxmPtloICw== Content-Language: en-US In-Reply-To: List-ID: Content-Type: text/plain; charset="us-ascii" To: Andrey Konovalov Cc: Matthew Wilcox , Linux Memory Management List , Christoph Lameter , David Rientjes , Joonsoo Kim , Pekka Enberg , Julia Lawall , Luis Chamberlain , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Marco Elver , Johannes Weiner , Michal Hocko , Vladimir Davydov , kasan-dev , cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On 11/17/2021 12:04 AM, Andrey Konovalov wrote: > On Tue, Nov 16, 2021 at 5:33 PM Vlastimil Babka wrote: >> >> On 11/16/21 15:02, Andrey Konovalov wrote: >>>> --- a/mm/kasan/report.c >>>> +++ b/mm/kasan/report.c >>>> @@ -249,7 +249,7 @@ static void print_address_description(void *addr, u8 tag) >>>> >>>> if (page && PageSlab(page)) { >>>> struct kmem_cache *cache = page->slab_cache; >>>> - void *object = nearest_obj(cache, page, addr); >>>> + void *object = nearest_obj(cache, page_slab(page), addr); >>> >>> The tab before addr should be a space. checkpatch should probably report this. >> >> Good catch, thanks. Note the tab is there already before this patch, it just >> happened to appear identical to a single space before. > > Ah, indeed. Free free to keep this as is to not pollute the patch. Thanks! I will fix it up in patch 24/32 so that this one can stay purely autogenerated and there's no extra pre-patch.