Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp2090865lkv; Thu, 20 May 2021 03:12:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWHzaYf1bdvLiX4w3lvzMXuo4K7R8yiPp8RfHNGKmcJHV7/F2lbhZEpWVxb8Pu8s7wbp5M X-Received: by 2002:a17:906:9257:: with SMTP id c23mr3942045ejx.392.1621505526841; Thu, 20 May 2021 03:12:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621505526; cv=none; d=google.com; s=arc-20160816; b=NvTiLD86q+n4pVoNaGCDMkEU3AbMJVZ4W7oqZjjCl0uwXz2y8Gc3b843WAW/NvDm87 DFYbU/DeB8p/IxLSVkcvXir3ZurxXZhhNGnJ8mwS5qzHcr26v2yQucZdbYYziBkUuBo8 Es8ikMq7u1TK+vTr568ugqOE5srL7xbIzdl1xw5PNrbB/02T0WSrHu3sQLbv/NQSfRKT IwFPU/PNDsziWCgapWyVqIvO0Z2B5E3c2HCObFS4sC5YUjlQHc/J5lAEoWKj1c8r2nFy CvbXRdwwYopy+G79S+uZIwGP3ZjredLnUD+eZEeG+bmdRaF/3BVanGb65d6FBV1QTAkh dL/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=lMXxGfYnICsUSfiZfBSAj7iUP/TX1sIXMqqZRYO5ZiI=; b=S+bnvgFgUCuILujLSIIQA5yFQnEuN2so76mAVoDzCWh4alYVUj4LlOaiM6tvo8eirx AaMmJA98xlxZ+B6AOiRDwFgUSRUCRrhqcUS+ZeYAeMDDk+khmIZLawrTwl2MHGgImHc/ QW+Ca9m28JCvBWMoU14e5OtcaavjHpqy3drswVIZFSLkqYUrfeu7oZZfchhJKFknolHX DSTi4vcI4dUKlCnB5ZdD3Ycm2Ff414YKr7VZnoKaw1XgTnO2j+aB+fzkHTbkTF1WyzVk Fa5R7mDENhIDaqbm1izHuJJt3ZfeZRCcmwUL6BZ4nRrja7X72MOGLWHbkqSH3mvpmHhd VxhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dh18si1922917edb.392.2021.05.20.03.11.41; Thu, 20 May 2021 03:12:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235946AbhETKKA (ORCPT + 99 others); Thu, 20 May 2021 06:10:00 -0400 Received: from mx2.suse.de ([195.135.220.15]:39796 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234871AbhETKDb (ORCPT ); Thu, 20 May 2021 06:03:31 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 8D4D0AE81; Thu, 20 May 2021 10:02:09 +0000 (UTC) Subject: Re: [PATCH 3/3] slub: Actually use 'message' in restore_bytes() To: Stephen Boyd , Andrew Morton Cc: linux-kernel@vger.kernel.org, Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , linux-mm@kvack.org References: <20210520013539.3733631-1-swboyd@chromium.org> <20210520013539.3733631-4-swboyd@chromium.org> From: Vlastimil Babka Message-ID: <198cf778-53b8-ecfe-1a76-3f3dbde4c0d7@suse.cz> Date: Thu, 20 May 2021 12:02:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210520013539.3733631-4-swboyd@chromium.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/20/21 3:35 AM, Stephen Boyd wrote: > The message argument isn't used here. Let's pass the string to the > printk message so that the developer can figure out what's happening, > instead of guessing that a redzone is being restored, etc. > > Signed-off-by: Stephen Boyd Reviewed-by: Vlastimil Babka > --- > mm/slub.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/slub.c b/mm/slub.c > index 87eeeed1f369..16e8e8f8dc0c 100644 > --- a/mm/slub.c > +++ b/mm/slub.c > @@ -777,7 +777,7 @@ static void init_object(struct kmem_cache *s, void *object, u8 val) > static void restore_bytes(struct kmem_cache *s, char *message, u8 data, > void *from, void *to) > { > - slab_fix(s, "Restoring 0x%px-0x%px=0x%x\n", from, to - 1, data); > + slab_fix(s, "Restoring %s 0x%px-0x%px=0x%x\n", message, from, to - 1, data); > memset(from, data, to - from); > } > >