Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1949633pxj; Wed, 19 May 2021 18:40:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEOwUF51byzV5u51oOvpwAKxBoFIf8yGCiPOrnKoYJcxuwSLCOKmHfFNN1PFTjrar/meD3 X-Received: by 2002:a17:906:2dd4:: with SMTP id h20mr2116239eji.131.1621474811298; Wed, 19 May 2021 18:40:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621474811; cv=none; d=google.com; s=arc-20160816; b=yw0KPQzGGZl1w76vXeY9tJH7A688/DEltyrzUYds7y4XiML9ZIORKBApFu4eFXAJKN A9KSfAyUoYz3A3Gb2QVb731uvY3CSQSR59m3vvTYqToxgbYseeFVziEgjg21HGOU25wA VPN0L4q/uXunvrZmEbfJe9/m9yYKklNLq2VY1B22xRTNk/pxqNW6sFX6yXAYh6rrARuM bT4xyyjoxGFoQCSXG6hzrmiH6QXcpEOGWunKnzL/wMDRCSLafx9nVNUmgB7aytmDyhoF nJv4CP0K5KWBTNCfP7MvvZ7mF30k10867KkBDpNhpEoZRoywXoCOa4E4fRwXMozNTlfw eYgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lQOWJqPqhCFkDp+9hhOZDwaBqtzLz23Olys+QM6koX4=; b=g2lEJPS8dB96OYy7ckt86kTnvqhzZfy+u0dQ8OPUgQWT9ELD54rAstaL1WzCMJGc9h 9Na8sd1D3FXZPAhAKyxBSpe8dc9jdO9mlJ887sA450eHhchCxmaFhAW0y84pJRQtXFjA UNamrAYIOeKRZtjzagBlBlSDEpyJOdndP+rce5UmIYiHUho/VIGo8YJkPHpt+0vXjazC bsm8IAqL9SkxVJZgboUsbm256gUCCw/NWlDXlRZRKXZFITVz/bc7uXm8jJL3uz9q19B/ C+qXbGxtvghnSlQp5QWtWL/HwfrXNLf4v1F+xN5P8SaEuP/i4UquGUvOP4WA/sfLdK5G SRrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fNHovEwG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p25si1619526ejc.571.2021.05.19.18.39.45; Wed, 19 May 2021 18:40:11 -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; dkim=pass header.i=@chromium.org header.s=google header.b=fNHovEwG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230289AbhETBhH (ORCPT + 99 others); Wed, 19 May 2021 21:37:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230263AbhETBhF (ORCPT ); Wed, 19 May 2021 21:37:05 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B33D2C061760 for ; Wed, 19 May 2021 18:35:44 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id b13-20020a17090a8c8db029015cd97baea9so4442456pjo.0 for ; Wed, 19 May 2021 18:35:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lQOWJqPqhCFkDp+9hhOZDwaBqtzLz23Olys+QM6koX4=; b=fNHovEwGGkeFLsJmt5RPUgE6pPjSKBrtL/sjfNc4fAHcC5j1Z54qMl6hhQDTxjTeuo liBs7Y3JAsbT6z/erPJdBtW5AAJny5TIOP4fN9LSbZtJbTPTSRDKMXWskWgtF3wis3r3 c/uHBaS+oGkXGcim33wy5jHzqGm0P3CFQ/Rzw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lQOWJqPqhCFkDp+9hhOZDwaBqtzLz23Olys+QM6koX4=; b=P/+ZMb0w8BueJEyy27nrvTV3VW5MvwQ8pqunOO373czSS1/tugIJQpRIzlMqsH2pD2 JN68eHN1PUmAbmmuq6JOf+238jIuF3LRpwjJ6IZXYvPjL6ZUlLpWHroDFbtftgVvBPYc 47BK7hJr4O+loYo/O+3OxjTlEhi2DOfcuDaVC5NVRRTRXsxZd7TWfu+dLboiCLRQS7Yv qc1hm1Fcp+FSe8Q9cMxR6kmCo+6KVSd5B7lhhkyGe9Rhqt5x4FmtyJR0d3dab5K7h++0 UcPC0nlQkoEFd2HXyDpMaUckLFW2n42Af7IJsZJVIE1B9kWPOEN/+L1g88Fco871Qs+E 0ASg== X-Gm-Message-State: AOAM5321LFI6WGo4NmIzaPXnGQloFg1hHnEAQQR9kt0X9SzzGcw3QfoL lhUc04H5wRA2INN06a2djXiGqcJ1oENADw== X-Received: by 2002:a17:90a:d201:: with SMTP id o1mr2459410pju.230.1621474544362; Wed, 19 May 2021 18:35:44 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:201:200b:db75:4e6c:8b96]) by smtp.gmail.com with ESMTPSA id m20sm5097368pjq.40.2021.05.19.18.35.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 18:35:44 -0700 (PDT) From: Stephen Boyd To: Andrew Morton Cc: linux-kernel@vger.kernel.org, Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Vlastimil Babka , linux-mm@kvack.org Subject: [PATCH 3/3] slub: Actually use 'message' in restore_bytes() Date: Wed, 19 May 2021 18:35:39 -0700 Message-Id: <20210520013539.3733631-4-swboyd@chromium.org> X-Mailer: git-send-email 2.31.1.751.gd2f1c929bd-goog In-Reply-To: <20210520013539.3733631-1-swboyd@chromium.org> References: <20210520013539.3733631-1-swboyd@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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); } -- https://chromeos.dev