Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp650300lqh; Fri, 31 May 2024 11:58:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVmfEXwn2iUAYvXuGqcUcjL+9rU29ha31NQLHcqAs6xzQG5eAwS1zA5DGV1Lw8CQHXy6TG3JOKk4XS9oZ3vAHgxA4E5TpkxbyYOVPmRpw== X-Google-Smtp-Source: AGHT+IEeCRBKK8LBDLUQLyD2htaAXxdri7lttk9iVAO6/2II1YBOBGsBQ3J7H7JI15JT+flLgbHO X-Received: by 2002:a05:6a21:329f:b0:1af:f6b9:e3e4 with SMTP id adf61e73a8af0-1b26f0f1a85mr3442097637.12.1717181895113; Fri, 31 May 2024 11:58:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717181895; cv=pass; d=google.com; s=arc-20160816; b=EJFfemR4aAwscZYPBjR/O+dMCQy9fmYt81IV3c2kGyIKGiDqYMtESEyU9SgguQB69q jP3+a6XqUEGVq119m4l46L3kSXVTEQ5qRUKx4r4TeZ4iqu7RIJJi97lnL9u6SiiVWjXk uKpp2Y0gnBkQMRWS+znRBKQ7dsCWVMx26rStr2ztWrIThcPONcCLnKwRFpX2WfMl/fgK JdNl38oH+0wD9PPO2JN+qpiirq8rwEC6XMcowm70FMtqCPBakwWGWhl76LtMgekLhsvj 0gEPhXhH2ANFXlOUO2uFL9R6IpOq8VBCSBbp6bfRYpU9KIjjLLdenfdKLxTpEVxIG/77 dy2Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=GF5F8Hbym2ZtWWNMraPTtW7zKw29kzggBVACC8KZ5Go=; fh=g5Iu9JSZnMeku4VHzskYfARW+wwI9Y4tBs9NCbIDzYg=; b=DMLGR6d0mkBg2Bvs5yfpIeZ0EXfLtYPmW3Y0A8MHXFPdDkLB+1rVd6EGUcCQBi5XDK 7fLGZRyJxqDk6BYvGp+QBMko2dyOk37w3U4x1cPHsRzH75KMhxzIjb0LFCweb2PvBIcv /JE0NjVyJsur0QgqRuBrBWWWWxn2/0TQiV//HyPsTT7ME3Lmy1VocLeFd1EWcffm+cts rriaA8O0qmoaEJdKCDonwTd8XL41sXa9zSddMywtFgDwHEdxBc006+3+AAniYmf8lNY6 o1JpW9j01FrhdxLav5dSrYzF2IywD750BCi6w/XBJYyGTc2HXV6fGL6w/EcvRdaLlpxf YtZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LXqURVvo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197324-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197324-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c3543d8774si1961423a12.21.2024.05.31.11.58.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 11:58:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197324-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LXqURVvo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197324-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197324-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 56C84283089 for ; Fri, 31 May 2024 18:57:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87B3E7F7FF; Fri, 31 May 2024 18:57:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LXqURVvo" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ADFC17E774; Fri, 31 May 2024 18:57:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717181830; cv=none; b=A8t/Ma4k/cPu51qhi3N/7fxt5bvi0FmWazdttBRsecKVF3FVNWPTzC0YBGrsuYMredkdwfWXOHn9lFaguF3LFicOn0C8+sEa5hdorUAhHkZnDD4EC9K/DSiPPyM6oi40vMLlSBy6Ommtnw+rSRyL0uwrv78A9l7YFu1U4Ia92xQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717181830; c=relaxed/simple; bh=AD6M0l/XhTHROLN84HPg7DK+mvf0+qhuriNkdX52eto=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=deVNsHD51wOPFVZZ74+uXvTTNkucRPdkrxBqz3CikQHUlX13Ksr5HMiPTWJlfQ/8g1Sm/ojx/vt4yWlg7xL26wSemxv9tYdbqE9R9MRHl+3H55yHlbhAhHXPwGe884+nxNYDDIpXpfJ47SpG7I99mFiIQGtTpWDP+gY9DyeCJsY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LXqURVvo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25EC8C116B1; Fri, 31 May 2024 18:57:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717181830; bh=AD6M0l/XhTHROLN84HPg7DK+mvf0+qhuriNkdX52eto=; h=From:To:Cc:Subject:Date:From; b=LXqURVvonoO86l+SqVgDHx2+6B84YxN3Ty3Jalhip5f8LKmuDWXyaQKkN6oGxYISW cw/2cdWVvesB8ubTgklEC72ezwDndA7f3d3e1+Xo/M63Xi+Gfdm+wKu54NJsfmPC42 MSXOXcVYgZ58Vf3f+EJgoyKiXhGmi9al0DMaD8HQeb2jCWMfibtUNoDaN2Y7C0BvWt U4LL61/4Ou5r1cMT6h05RtRM8nwghSLBHWuF+KTjlzvAhlbuVvz8UZtqlmxPCDPbfy KkPPa2GaCTC9pwPVf7n8sFmt2b+BUqwzAGlHP0nzdWljP+zHP31bS26cxzCzSkwhPA u2tJWJ/shle+g== From: Kees Cook To: Vlastimil Babka Cc: Kees Cook , linux-mm@kvack.org, linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] kunit/fortify: Remove __kmalloc_node() test Date: Fri, 31 May 2024 11:57:07 -0700 Message-Id: <20240531185703.work.588-kees@kernel.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=912; i=kees@kernel.org; h=from:subject:message-id; bh=AD6M0l/XhTHROLN84HPg7DK+mvf0+qhuriNkdX52eto=; b=owEBbQKS/ZANAwAKAYly9N/cbcAmAcsmYgBmWh2DthOMchFi4h1JTCJc+Oc7ZIT8JDA+GPlTq O8+j+LvBiKJAjMEAAEKAB0WIQSlw/aPIp3WD3I+bhOJcvTf3G3AJgUCZlodgwAKCRCJcvTf3G3A Juc9EACBg7g0AciMJlxpgOkrIEkAgz4JxUyNzcnSH9uUoC2yv8MCXe94HbZEDY7e+twT+Kme7c3 P503Bd31wDK0odVa9x+AfYv7p+7hg6lnKrs0p8m9wybIJIYB12+9OVtY8ue4mXw80s4eDYT6iBt aowOPKrdFswzoOqQ0QItii6khvk9d5ODMhDeyUb9/W5+o+VNFIlb2m+PjQ/yYt0O7Dt0oWTtIf/ O4LV6hS8RBaE3FOmiHfkY60Umwvlj+vwH/KBHiEeauwlQKrfJrxvotXHIvrNWfz8gSz+BNvVqgj 0gfhB8TzgxCEwKYOuqthrYFdgEE+31THl5RocK7YZcIe+SRLHCWzfwSx92LMMLFH2x4rxsHFYqU hxHkhKIJNRI1x1TD0mlOjQZ++Kj7aZgzUWMZviF7iG9eCWOTSwwT2dwW2/XhRIcpfgPyXoe0PIu sf8O2HoLGy9am5QU8EN3AN46jUH/BiVwZ/3fHwiZyeGRKEmx3RvZQCPWzukEGIxsf7m0rLXSqfq dfw7ORnoDjBIeGUQIIz5H6L5WW/OvhDL5b1qLAvtqycwJIxsQzmcvGAxRKYqcHHaiuSQDsiUZrt fA57Ae3G0JbDrmzWaD4FAY2zYHnJH7w9XlpCumPcaUP1G/wJKGlV3ZPRAod7lqZKEUluB0jJJMs AnHqrlsFegIWnK g== X-Developer-Key: i=kees@kernel.org; a=openpgp; fpr=A5C3F68F229DD60F723E6E138972F4DFDC6DC026 Content-Transfer-Encoding: 8bit __kmalloc_node() is considered an "internal" function to the Slab, so drop it from explicit testing. Signed-off-by: Kees Cook --- Cc: Vlastimil Babka Cc: linux-mm@kvack.org Cc: linux-hardening@vger.kernel.org --- lib/fortify_kunit.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/fortify_kunit.c b/lib/fortify_kunit.c index 39da5b3bc649..f9cc467334ce 100644 --- a/lib/fortify_kunit.c +++ b/lib/fortify_kunit.c @@ -235,9 +235,6 @@ static void fortify_test_alloc_size_##allocator##_dynamic(struct kunit *test) \ kmalloc_array_node(alloc_size, 1, gfp, NUMA_NO_NODE), \ kfree(p)); \ checker(expected_size, __kmalloc(alloc_size, gfp), \ - kfree(p)); \ - checker(expected_size, \ - __kmalloc_node(alloc_size, gfp, NUMA_NO_NODE), \ kfree(p)); \ \ orig = kmalloc(alloc_size, gfp); \ -- 2.34.1