Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4584242rwd; Tue, 30 May 2023 07:21:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7S9SFd71DruHnIrkpLVTo5ETSKk7y2Bcf4gIAJvqWQtMQRicOD9YBg+XamctdnHOeZ/NSs X-Received: by 2002:a05:6a20:4326:b0:10a:dafc:aef5 with SMTP id h38-20020a056a20432600b0010adafcaef5mr3190739pzk.34.1685456487263; Tue, 30 May 2023 07:21:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685456487; cv=none; d=google.com; s=arc-20160816; b=zpwNcWh/lt6HXJVWKb0FNnbh1NytPmyBWrTbltOj/dS6QO5qOtcTHj1/VceMBryI8L fy90fOaGaHoMeLBiPpT+cXdNoj8R3HNYUt2vtVYaIT1R1NL2Ksl3KtqSUDEb6EzYNIrr NnFMwow0NJbh3qbes9JTIe/D0MRkzwNO+cqUyddTyVacDzxpEo+u4zyBnk7q6dCrQq1H kXUAj0UJRV+sJEpY4yQlGeAOrr13ZuePFLQXUia/fHjFYa+rvPJbu1qMdAOyVDjiwVcD bdiB3xK7YNzqxVXW2EyWW+PaM583ORCG1VPVcuG/Moed5h1eti34fg/a9YOpFkp1udPU UxRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:content-transfer-encoding :mime-version:subject:date:dkim-signature:from; bh=QpzQpjVnQdXXx1vWmQgudvIPpzazCL7tfy0bN+uzNx8=; b=VcGhR+A4K4r/fx6CmLdlaJdfkgOg4EHt8fGYdOvQRXo9+jx6xjh6Dy1bmByVBChV4+ dY/PFqoUiJ9nRlCZ/StkFUvbMfZk7XVXV4Eydr8gFbmU98rljf1QEgZZGYE1+x7qceQS pkGrLRulgyaWBdya+z2+K3Fcb3My1yiKzDpZ8k2Z2QAG0ZYfX7FqFUaOoADaS743Fjtr PmKdmf1spfdqr1kE/m9Yph94/uOkJvQgBCwaq3JIEY2NKXyk3eQQnPOwAGqz0PXAhsR8 /WikeMLKZ4Np3di/j7sexwaUdvC3SGd9xEXXcZkwGcZf645Cl0Ooi6pRM7HmeekWM6FX gzcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b="f/ainB77"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o15-20020a637e4f000000b0053fb69a6397si1257061pgn.587.2023.05.30.07.21.14; Tue, 30 May 2023 07:21:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b="f/ainB77"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232402AbjE3NvC (ORCPT + 99 others); Tue, 30 May 2023 09:51:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232211AbjE3Nuv (ORCPT ); Tue, 30 May 2023 09:50:51 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AED81C7; Tue, 30 May 2023 06:50:48 -0700 (PDT) From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1685454646; bh=ewKaB6L/DOQhgS1mAFK+x7nHWfw99pCSgv44oWr0O2s=; h=From:Date:Subject:To:Cc:From; b=f/ainB77OmlT/tnhTcCJlKECpiK3d5BaPjznu6BchuIkeJvxudG70JXwPvjm5dOK8 wrp9iPEMnGvr1K1RidZDiPjfZTsXpDXiZ4xzgJLkI3exuF9jv+WnaSJNpL/oxfk8Uo CfNCJzDaTaALHxAjVZ9Yg8aMyRs7Bq2CAwuzG/I8= Date: Tue, 30 May 2023 15:48:48 +0200 Subject: [PATCH] selftests/nolibc: remove test gettimeofday_null MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230530-nolibc-gettimeofday-v1-1-7307441a002b@weissschuh.net> X-B4-Tracking: v=1; b=H4sIAL/+dWQC/x2NywrCMBAAf6Xs2YU8UMFfEQ+bdNsuxI0krSil/ +7icQaG2aFzE+5wG3Zo/JYuVQ38aYC8kM6MMhpDcCG6c3SotUjKOPO6ypPrNNIXL/kayLtEniJ YmagzpkaaF2t1K8Xkq/Ekn//q/jiOH+pRPy16AAAA To: Willy Tarreau , Shuah Khan Cc: Zhangjin Wu , arnd@arndb.de, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1685454646; l=1443; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=ewKaB6L/DOQhgS1mAFK+x7nHWfw99pCSgv44oWr0O2s=; b=Z8MDlQoaPcLC133hYM9Us5kfgdVZVL3gf6AOJU1IEB7PatMjliQbZmD5Q70/c/iXG0sX/0uRj vZrEPWB6rQ7A35JVulyxB+2rJrbcqI0DfMoEMddcFEyTVAaFXCvAfMw X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org gettimeofday() is not guaranteed by posix to handle a NULL value as first argument gracefully. On glibc for example it crashes. (When not going through the vdso) Link: https://lore.kernel.org/lkml/96f1134d-ce6e-4d82-ae00-1cd4038809c4@t-8ch.de/ Signed-off-by: Thomas Weißschuh --- tools/testing/selftests/nolibc/nolibc-test.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/nolibc/nolibc-test.c b/tools/testing/selftests/nolibc/nolibc-test.c index 7de46305f419..0fe615ebb086 100644 --- a/tools/testing/selftests/nolibc/nolibc-test.c +++ b/tools/testing/selftests/nolibc/nolibc-test.c @@ -583,7 +583,6 @@ int run_syscall(int min, int max) CASE_TEST(fork); EXPECT_SYSZR(1, test_fork()); break; CASE_TEST(getdents64_root); EXPECT_SYSNE(1, test_getdents64("/"), -1); break; CASE_TEST(getdents64_null); EXPECT_SYSER(1, test_getdents64("/dev/null"), -1, ENOTDIR); break; - CASE_TEST(gettimeofday_null); EXPECT_SYSZR(1, gettimeofday(NULL, NULL)); break; #ifdef NOLIBC CASE_TEST(gettimeofday_bad1); EXPECT_SYSER(1, gettimeofday((void *)1, NULL), -1, EFAULT); break; CASE_TEST(gettimeofday_bad2); EXPECT_SYSER(1, gettimeofday(NULL, (void *)1), -1, EFAULT); break; --- base-commit: 5b21219d67d3483144d10332709d0c04f733ab93 change-id: 20230530-nolibc-gettimeofday-6c72a10ba1a3 Best regards, -- Thomas Weißschuh