From patchwork Tue Dec 15 23:31:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marco Elver X-Patchwork-Id: 11976017 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-24.8 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4C26C4361B for ; Tue, 15 Dec 2020 23:31:21 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6952222C97 for ; Tue, 15 Dec 2020 23:31:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6952222C97 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 9FFEA6B0036; Tue, 15 Dec 2020 18:31:20 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9B0206B005D; Tue, 15 Dec 2020 18:31:20 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8C6396B0068; Tue, 15 Dec 2020 18:31:20 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0086.hostedemail.com [216.40.44.86]) by kanga.kvack.org (Postfix) with ESMTP id 77BD46B0036 for ; Tue, 15 Dec 2020 18:31:20 -0500 (EST) Received: from smtpin26.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 40322181AEF23 for ; Tue, 15 Dec 2020 23:31:20 +0000 (UTC) X-FDA: 77597115120.26.care95_3a1161427427 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin26.hostedemail.com (Postfix) with ESMTP id 1EDA21804B667 for ; Tue, 15 Dec 2020 23:31:20 +0000 (UTC) X-HE-Tag: care95_3a1161427427 X-Filterd-Recvd-Size: 3859 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by imf14.hostedemail.com (Postfix) with ESMTP for ; Tue, 15 Dec 2020 23:31:19 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id a6so742690wmc.2 for ; Tue, 15 Dec 2020 15:31:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=NdltaZaVdnosja55B5yVwkwQ3cpKndlfH4RmsgoG5is=; b=OD1BYevwfvErSMrqZ3l/SdLgYXgUUwwwx/wCMMMxWpY58tgUFtR69S2A5eiB/HHe66 atQ6VjrM8HZPHKrBZeRc4cEnyYJ1T/I0QJuBTuyWCdXcILR+xDXUWWe0ieW2laxvDRc6 mscduWoMOrY6j5CUpQXUHT0n0sUVZwwMlj07D0en20d88INgirQ/PmjH6Z1VlGvzOHFu 2fl8CDIxkM61tIluH/qhr4hO6PnGJkG06QT409PMKgfGvfc7ER9jvAfKI2iNG/Uyk++2 hpPay0MYaRSuiqJ08VHhtcCOOh3/HV8ug/Ys9Dt0+XwyroBd60qF3zlzBzhW6EbndHz5 XslA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=NdltaZaVdnosja55B5yVwkwQ3cpKndlfH4RmsgoG5is=; b=fEQOGqAXDSvxDbEVQiTzczHtJmAWuInfGEZ+SBYq46Ckev5CtSKTLzK1b/KT7168bt +gW2BLPZx5JhEDqTjhpZCxPRo7V1P8/zNmtQPWI8M7eic1yFS27plnM6AQyeiniuwMBr anAIdIOxOyEpo6t2tBOSOhOqPD7t+L1/IPRPp/XpDhAZFbAdl2QC17HJhmdOVAIIyUHd ORURsJ9AFKFW9dVcvEwtBkLSruFfpzbIX6heCnleRnsHRAqMRy7AK4Lz9xemmED06GV2 6VfyzygYkLizsC/rm45KC3qBxoWPwdpFwjDXvl78O2taG7GdNj9lM4fUtXmhwWojGg8r Bmnw== X-Gm-Message-State: AOAM530Myd5U0MWHrFiV6bkqv7/YiQNJy7VTKfpO0WJx7rQoHC1a7hmA UVpvIeO4d+hf4nEp2PA3rVsCsA== X-Google-Smtp-Source: ABdhPJx4WO43NxbwcDRkYtV0kaHDx/FLIzVRHOV2u/OF1Ic6TezC9+wflt5VLgH2ro8UF0k60LzAhw== X-Received: by 2002:a7b:c205:: with SMTP id x5mr768403wmi.115.1608075078550; Tue, 15 Dec 2020 15:31:18 -0800 (PST) Received: from elver.google.com ([2a00:79e0:15:13:f693:9fff:fef4:2449]) by smtp.gmail.com with ESMTPSA id l11sm249866wrt.23.2020.12.15.15.31.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Dec 2020 15:31:17 -0800 (PST) Date: Wed, 16 Dec 2020 00:31:12 +0100 From: Marco Elver To: Andrew Morton Cc: kbuild-all@lists.01.org, Linux Memory Management List , Alexander Potapenko , Dmitry Vyukov , Jann Horn , kernel test robot , kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org Subject: [PATCH] kfence: fix typo in test Message-ID: MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/2.0.2 (2020-11-20) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Fix a typo/accidental copy-paste that resulted in the obviously incorrect 'GFP_KERNEL * 2' expression. Reported-by: kernel test robot Signed-off-by: Marco Elver Acked-by: Alexander Potapenko --- mm/kfence/kfence_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/kfence/kfence_test.c b/mm/kfence/kfence_test.c index 1433a35a1644..f57c61c833e6 100644 --- a/mm/kfence/kfence_test.c +++ b/mm/kfence/kfence_test.c @@ -665,7 +665,7 @@ static void test_krealloc(struct kunit *test) for (; i < size * 3; i++) /* Fill to extra bytes. */ buf[i] = i + 1; - buf = krealloc(buf, size * 2, GFP_KERNEL * 2); /* Shrink. */ + buf = krealloc(buf, size * 2, GFP_KERNEL); /* Shrink. */ KUNIT_EXPECT_GE(test, ksize(buf), size * 2); for (i = 0; i < size * 2; i++) KUNIT_EXPECT_EQ(test, buf[i], (char)(i + 1));