Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp898094pxk; Sat, 12 Sep 2020 04:12:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuL7/Rfepwwp2ppf3uYYiXolQovdXWsr4B87wJoalBA25TMgUgnObJz1zOi1FO263mbkJw X-Received: by 2002:a17:907:64d:: with SMTP id wq13mr5528046ejb.513.1599909164730; Sat, 12 Sep 2020 04:12:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599909164; cv=none; d=google.com; s=arc-20160816; b=KsO7TvmofgldXWXN9zlx8Chezfx4Z8ar5kb/mrlOxlsvdBUBm6DkBzC/Y82HmygTFP l6FvSj2SBAvirnnQjDu+nh+ynHjrOXIhZY2tJMgyMAp1oAUql9OqedRAwoOePnr1497K vRybm/v2FG+huGJmiMln9t4rH5f6hvu5ZgFNozOClL5qX9oq2fxTHuUYX1hVXhm9/Wfd KzCQmJo96gutVnQbnjCsEh25WKOAgdGXZpn+eCg3UQm0kbU82+awq3fhDr+q1ZnQdCRm NB6g/Z+M71cDSwb9W8ibLb/y7aoDV6kJyBHBryvRYWY70F+HmYZFMRb9l180M1Hh4fce WJLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FZnp4yDc6/H8oZY5gPE0ntNCiw9S8Y24vH6szdlcBNQ=; b=mIf5II7kdC2T1UMpyhOsY2xqFk3ny316+EBDz5D+doFpqhdPR9CCZa6ZWnB5HPeNcW zpfQocu6eS7CHggEdI7qOPm3bF4+UV5Iqgksb7LqMPPIK8Ha3+LBH4bwNaEM3R/UUMzR EkUQx3/CXQGXVUAIWu6u5dXhtJ2aSeMixi4stIIpcT7odg76raT1IaexUGWIFSwEmWBj 9NY7xtPR2v2dlEbE95I/kyd3adWC/JZ9JLgiijW7fMmxGopzY3h5YhXz5o0DG+f7VuF0 dAj+bP3zsLHa1wUHtQMWQn7yD4H5IfR2wH+2zGReV15wAkmJZ4K//XmpXj2EgnxMDvRA KTXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="Zk/gIvdN"; 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 dp1si3695822ejc.662.2020.09.12.04.12.21; Sat, 12 Sep 2020 04:12:44 -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="Zk/gIvdN"; 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 S1725931AbgILLKx (ORCPT + 99 others); Sat, 12 Sep 2020 07:10:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725938AbgILLJw (ORCPT ); Sat, 12 Sep 2020 07:09:52 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C364AC061346 for ; Sat, 12 Sep 2020 04:08:36 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id o68so9214496pfg.2 for ; Sat, 12 Sep 2020 04:08:36 -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=FZnp4yDc6/H8oZY5gPE0ntNCiw9S8Y24vH6szdlcBNQ=; b=Zk/gIvdNfjQE/2unl26djetvFbMWk4A8shRgP7V779rbL1iDmAqb/WJsaeUEyvkWho 8jG+lsS6GNlo3kWdNKOEks2fdvmH3bO73kMlDWOuyuO55TqqWNyvjERND1Wyg09jCOar c+he/PZbFxcnDUtW7NY4RKVcPovh+GacMTNqc= 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=FZnp4yDc6/H8oZY5gPE0ntNCiw9S8Y24vH6szdlcBNQ=; b=msaEHDD6m011TfyVkaDmEzt+Xl4ZfyLA331HxOunlb1VzUPn1vFkbQBDukkJdbO3JR jS0YgcSFKpNMEjTuDGMwqGzowPdA/Ww2WKczVyKfJUkmZeo9paKCcWPdDzDA0XKXkmxc rNfUK6lUz9sbqoxbVc36gnzuRHQm4R6eQdfMl2LBhTt74vZryNISuJvvdF/FWw45OQt5 K0lgouqvWpi5+Lf+KSh6SRWHIfKUWb13TbM4ejvu+CHBf3oj/S76Q/+KZEkSD3gpnndp OmscgPSHtqsT3CbFE//4YKSgbbHGsAWxlHZfbDCQWJPP8y2n1c1IN7sduvATzExS2Pg8 6zjg== X-Gm-Message-State: AOAM532GQoGW1AkA1/xawqCOU6mYe3W0A+WQNNXhZxLIBWRI/SNfxXKM oeS7C1Nf0/SJ86OHGI/019t+oQ== X-Received: by 2002:aa7:9ac9:0:b029:13e:d13d:a133 with SMTP id x9-20020aa79ac90000b029013ed13da133mr6030859pfp.27.1599908916069; Sat, 12 Sep 2020 04:08:36 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id 17sm4796064pfi.55.2020.09.12.04.08.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Sep 2020 04:08:34 -0700 (PDT) From: Kees Cook To: linux-kernel@vger.kernel.org Cc: Kees Cook , Thadeu Lima de Souza Cascardo , Max Filippov , Michael Ellerman , Christian Brauner , Andy Lutomirski , Will Drewry , linux-kselftest@vger.kernel.org, linux-mips@vger.kernel.org, linux-xtensa@linux-xtensa.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH 15/15] selftests/seccomp: Use __NR_mknodat instead of __NR_mknod Date: Sat, 12 Sep 2020 04:08:20 -0700 Message-Id: <20200912110820.597135-16-keescook@chromium.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200912110820.597135-1-keescook@chromium.org> References: <20200912110820.597135-1-keescook@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The __NR_mknod syscall doesn't exist on arm64 (only __NR_mknodat). Switch to the modern syscall. Fixes: ad5682184a81 ("selftests/seccomp: Check for EPOLLHUP for user_notif") Signed-off-by: Kees Cook --- tools/testing/selftests/seccomp/seccomp_bpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/seccomp/seccomp_bpf.c b/tools/testing/selftests/seccomp/seccomp_bpf.c index 26c712c6a575..b34ede28f314 100644 --- a/tools/testing/selftests/seccomp/seccomp_bpf.c +++ b/tools/testing/selftests/seccomp/seccomp_bpf.c @@ -3773,7 +3773,7 @@ TEST(user_notification_filter_empty) if (pid == 0) { int listener; - listener = user_notif_syscall(__NR_mknod, SECCOMP_FILTER_FLAG_NEW_LISTENER); + listener = user_notif_syscall(__NR_mknodat, SECCOMP_FILTER_FLAG_NEW_LISTENER); if (listener < 0) _exit(EXIT_FAILURE); -- 2.25.1