From patchwork Thu Feb 22 03:10:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Gao X-Patchwork-Id: 1902569 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=lists.linux.it header.i=@lists.linux.it header.a=rsa-sha256 header.s=picard header.b=KMkB0z6f; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=suse.com header.i=@suse.com header.a=rsa-sha256 header.s=google header.b=Mq9+gpBs; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=patchwork.ozlabs.org) Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TgJ7x5BHFz23f7 for ; Thu, 22 Feb 2024 14:11:25 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.linux.it; i=@lists.linux.it; q=dns/txt; s=picard; t=1708571483; h=to : date : message-id : in-reply-to : references : mime-version : subject : list-id : list-unsubscribe : list-archive : list-post : list-help : list-subscribe : from : reply-to : content-type : content-transfer-encoding : sender : from; bh=gqIPwQVW92TnmmvXo2euKMs6VC5An6HEl/RXzn8IB6M=; b=KMkB0z6f77UTfn/W7jOZL6P0zU47M/qrqbFxUjOrqcyFi4dAz9hvSOJOmyLROJeA0vS9i xQrJWOsfYIw+DBS0ShXTtOuLNHT6haF/YfCKI1XFJ2zaIinVBkOeyIEyPWZKtd86VLcd6WZ h3JgLbwSo7LduEpDRvPDwbc9bt3uyq4= Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id B4FF03D0CC0 for ; Thu, 22 Feb 2024 04:11:23 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [IPv6:2001:4b78:1:20::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 86CB83D11B8 for ; Thu, 22 Feb 2024 04:10:49 +0100 (CET) Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-7.smtp.seeweb.it (Postfix) with ESMTPS id EC3E7208F70 for ; Thu, 22 Feb 2024 04:10:48 +0100 (CET) Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-33d90dfe73cso43262f8f.0 for ; Wed, 21 Feb 2024 19:10:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1708571448; x=1709176248; darn=lists.linux.it; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=c+MWmp2m+BJfcOq/LA6K4CWYgIjQaFv0j3B0XPzUTFs=; b=Mq9+gpBs6qZk+X6WdAG8hlfyOldGvLNnRcAGZUY+XDp7Iv8s6xcB42BWF4Yr2CY5Ip 5JjnRYrADzxOYikjktNMoH67ovBcGRR0iQKGXRdU8GkZNT3emQebephFL3Uc07+gTf2D KrOCHzj2+BWOyS8n+1CTXhD6ABmDpRk26hWRNvqqRBBs/GhDjvbAtmSPyPOq8cSh7XBk iQEH3h2T6STwcDYEFOtZGNpPrMGOhSdWdf2jX6qYrEeHRgjV2npvCGauqJT1bBUe9ZKt nz8CqYa0wC8lX0zNf2CACChMVrbTBFFSA2Omec0ATMFyt3SA7jY3/2K7XJCQ1GIpHRYk PINA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708571448; x=1709176248; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=c+MWmp2m+BJfcOq/LA6K4CWYgIjQaFv0j3B0XPzUTFs=; b=AMfQJD4trJi3pU6MA29uKuYlEDqMNjuasBmAqqXWipFNwLI6GvqnTIJWoZ99H8xrpd wnUPhptZ7yq7ExJ/3NBp4q/T993fcSbbf6YSYGnaE0Zv0CEmmB5cLZMuKWcoZmi8aqta wjDvFsirbRYKfLi0I0gaQcTesZeutDaADAbdiCofdQyczws+qhF7X4Ozefv89XYW0KYn D5HxCDPlt7vac69+jtVbOTFbOLNrWBGEq7uWPL6zXoc0V3++koMSqoJbTT/uwFpsec76 UU/x8YHuJsxtqhnfTJiOcSi6pyqOltsE4iXPexYsrBCkkMhhp4n6KgrZ+ZuZtQnGe2ki Sbow== X-Gm-Message-State: AOJu0YwmEQQEB5F1LFlPKALsM/ai55OLafbZwv7w4529WMj/JvbqYcpT HR/8x/dfMPbok923/MDLZdulHB28UYv64/txaKzh345kMSABwAemUdquZ0YGjYHoZq36BczImEr u+A== X-Google-Smtp-Source: AGHT+IGjGBLxcycDM2ysE04Yx0Ypte1KvtQma2rr7c2tVbVU/9yrWkAZGICZLvkXZ/5fOLn3t0y3+A== X-Received: by 2002:a5d:5f48:0:b0:33d:93fa:bfdf with SMTP id cm8-20020a5d5f48000000b0033d93fabfdfmr72143wrb.28.1708571447735; Wed, 21 Feb 2024 19:10:47 -0800 (PST) Received: from localhost ([223.72.38.233]) by smtp.gmail.com with ESMTPSA id mm12-20020a1709030a0c00b001db45855530sm8825546plb.290.2024.02.21.19.10.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 19:10:47 -0800 (PST) To: ltp@lists.linux.it Date: Wed, 21 Feb 2024 22:10:18 -0500 Message-Id: <20240222031018.12281-3-wegao@suse.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240222031018.12281-1-wegao@suse.com> References: <20240221084256.32661-1-wegao@suse.com> <20240222031018.12281-1-wegao@suse.com> MIME-Version: 1.0 X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-7.smtp.seeweb.it X-Virus-Scanned: clamav-milter 1.0.3 at in-7.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH v5 2/2] statx07.c: set umask to 0 X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Wei Gao via ltp From: Wei Gao Reply-To: Wei Gao Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" When system's default umask is 0077, this will trigger following issues: statx07.c:108: TFAIL: statx() with AT_STATX_DONT_SYNC for mode 644 600 Signed-off-by: Wei Gao --- testcases/kernel/syscalls/statx/statx07.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testcases/kernel/syscalls/statx/statx07.c b/testcases/kernel/syscalls/statx/statx07.c index 4dbf83e18..227c33c96 100644 --- a/testcases/kernel/syscalls/statx/statx07.c +++ b/testcases/kernel/syscalls/statx/statx07.c @@ -116,6 +116,8 @@ static void setup(void) int ret; char server_path[BUFF_SIZE]; + umask(0); + cwd = tst_get_tmpdir(); SAFE_MKDIR(SERV_PATH, DEFAULT_MODE);