Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp315599rwd; Mon, 12 Jun 2023 14:06:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6WUL1JTeYYSU//7AYEw5xYS5WbHBHFUSToQR/Xf6IisG5Fa85zLEi2O7CzE1W5yvIGjt9Y X-Received: by 2002:a17:90a:194:b0:253:2816:2a12 with SMTP id 20-20020a17090a019400b0025328162a12mr12388123pjc.14.1686603963021; Mon, 12 Jun 2023 14:06:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686603963; cv=none; d=google.com; s=arc-20160816; b=HVe0tz2ZeWOjPSnHdLnaacJ5XmCTppSpylMSsOzgcMGs1NMh57fLhUbp9d3cTlBhWh wnckpoXKtCwK1lCttERCawPsSC5DOOrJ4TEu21H+i+/2Cg2xrRFu0JkNPBPLZkBh3mV2 BhkuPA+5Oc+6BsRM9PoyiSKtXpgcRD9w1KX7eLTvOGgiXG2bdZ/JQPuH0ewwhmKI5x21 ScKBcMabKsIgfEZMtJqPqtT9r9qLNOSUBl3F8tThkKNoulaPIQCEZNw0ufcKAL9Q5dLr ZpkYwlDbEwX3J40pCckOm/d8eSin/9hv2REjVZBg7qR/D84VcWYA+oqpfSUqik/Vm+0U pizg== 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=4dHZu2mLKFHxC+WXarcLdg6C2QFyU1J7/OVoK4sVIc4=; b=zTwxVazztX9RVgsRuiI4E890OcSkb5fH+wpXULxf49xvJoelF9PIyuGky0iiqgZEs/ O059lnV4rgMc8b1thQbErQBlqg/MBxjqhvTtFVA2IEhRA4fp/lx0Gve+qDEtETXNc6Wz GLLV1xj4TrGAck3NW672kvGbr5c5mBsvfmvajdRGE/hq1nHfIySoIm1yK/7k+FPKl2v5 NsGcnd9ECmp1S3luY9y2XdzGGDISHnx+un5E82+gCg4G2U3ehft/vTmeI7XWp4249zqW CpJ3qHR3NX2AThRy6zsZs/K8RrbOitY8X6+CK4pg7o0gM9lafN1ulsLUPTJYs57b6AO4 zeWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Z/o2kExg"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ot11-20020a17090b3b4b00b0025675c51fa1si5017207pjb.126.2023.06.12.14.05.51; Mon, 12 Jun 2023 14:06:02 -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=@kernel.org header.s=k20201202 header.b="Z/o2kExg"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237755AbjFLUuo (ORCPT + 99 others); Mon, 12 Jun 2023 16:50:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236908AbjFLUry (ORCPT ); Mon, 12 Jun 2023 16:47:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A46A171E for ; Mon, 12 Jun 2023 13:46:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D265462F19 for ; Mon, 12 Jun 2023 20:45:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E3B8C4332B; Mon, 12 Jun 2023 20:45:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686602717; bh=YVU6ViEp2LQfYkR6nErcvVF9nbi+sEIEq44A4g2Ftxc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z/o2kExgd26Xw+2rLZPzH96UptXHJ1CfLwRVO8+dBY+Db2nxb7NguhRpH4eZ/UB8O T7lVY1TKf5LRe3YaG41uC2bu+JSQwkd1RcBJSL9nV86eyHnexyc6QONab5DBXoBSQ2 WBioouK8JsTvLZrtJ9JIW8okCS3LdBSjovmlNtdmqrI63dQeTYVpIJebfNX1FA7laL l7Abo/Pbg6JJk7E4z7Dw3TcgYElgv2HWQbW23zJ/0m0myg6/vrOM+TghcD09QJAUaG QBLkRXWTn+Serkpnpjl0sTQRDblEsjfxo4gZ6hN041pZWquNSGQpnHTabBH0PaenbH 07YZU5m+LYmYg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 149F4CE3A87; Mon, 12 Jun 2023 13:45:16 -0700 (PDT) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: gwml@vger.gnuweeb.org, kernel-team@meta.com, w@lwt.eu, =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Willy Tarreau , "Paul E . McKenney" Subject: [PATCH v2 nolibc 42/53] selftests/nolibc: remove test gettimeofday_null Date: Mon, 12 Jun 2023 13:45:03 -0700 Message-Id: <20230612204514.292087-42-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <8b757cc0-3719-4e63-a755-9710384137bc@paulmck-laptop> References: <8b757cc0-3719-4e63-a755-9710384137bc@paulmck-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Thomas Weißschuh 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 Signed-off-by: Willy Tarreau Signed-off-by: Paul E. McKenney --- 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 bfcbc05e6b5b..cfc7b270c397 100644 --- a/tools/testing/selftests/nolibc/nolibc-test.c +++ b/tools/testing/selftests/nolibc/nolibc-test.c @@ -589,7 +589,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; -- 2.40.1