Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A0BB3CEDD89 for ; Wed, 9 Oct 2024 12:05:03 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 0F83A3C2D8F for ; Wed, 9 Oct 2024 14:05:02 +0200 (CEST) Received: from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it [IPv6:2001:4b78:1:20::2]) (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 0D5833C278D for ; Wed, 9 Oct 2024 14:04:43 +0200 (CEST) Authentication-Results: in-2.smtp.seeweb.it; spf=pass (sender SPF authorized) smtp.mailfrom=suse.de (client-ip=195.135.223.131; helo=smtp-out2.suse.de; envelope-from=andrea.cervesato@suse.de; receiver=lists.linux.it) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-2.smtp.seeweb.it (Postfix) with ESMTPS id E318060132B for ; Wed, 9 Oct 2024 14:04:42 +0200 (CEST) Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 1FF841FB84; Wed, 9 Oct 2024 12:04:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1728475482; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Mqe4NUKD/vi6oVwc+EqooxpeuUQwP83IOCUTgvSy4a8=; b=qrxQDd5QgquLAMcFa/tMvHQlNd+QstYnFX7QzPeyjax7VaOzYbFXAv5dquawrbeSKOsZNO fUvJZ79EsCttcQAjLodvkxnHuM05HIysNZhOxhhJXMv2j7PN7A07RHwaqbKG+PuFIOZsEp 1MG0iYjh/l/+utVyrLP07IM7W1ppfFU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1728475482; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Mqe4NUKD/vi6oVwc+EqooxpeuUQwP83IOCUTgvSy4a8=; b=qus9yrRulPK5DLveBe+mipU8Naikq14uKpg9oABPQAEE/F1/T5iADtbsjP9H9fSiy8T0b4 ImZwyvc756/c3mAw== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1728475482; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Mqe4NUKD/vi6oVwc+EqooxpeuUQwP83IOCUTgvSy4a8=; b=qrxQDd5QgquLAMcFa/tMvHQlNd+QstYnFX7QzPeyjax7VaOzYbFXAv5dquawrbeSKOsZNO fUvJZ79EsCttcQAjLodvkxnHuM05HIysNZhOxhhJXMv2j7PN7A07RHwaqbKG+PuFIOZsEp 1MG0iYjh/l/+utVyrLP07IM7W1ppfFU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1728475482; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Mqe4NUKD/vi6oVwc+EqooxpeuUQwP83IOCUTgvSy4a8=; b=qus9yrRulPK5DLveBe+mipU8Naikq14uKpg9oABPQAEE/F1/T5iADtbsjP9H9fSiy8T0b4 ImZwyvc756/c3mAw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id A7DFC13A58; Wed, 9 Oct 2024 12:04:41 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id 6H6OHFlxBmfLEwAAD6G6ig (envelope-from ); Wed, 09 Oct 2024 12:04:41 +0000 From: Andrea Cervesato Date: Wed, 09 Oct 2024 14:04:35 +0200 Message-Id: <20241009-listmount_statmount-v8-0-182cd6557223@suse.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAFRxBmcC/43P0WrDMAwF0F8pfp6H4tiy3af9xxjDrqXWsCYjT sNGyb/P7WAroS190xXcI3QUhYZMRaxXRzHQlEvuuxrc00psdqHbksypZqFAaTANyo9cxn1/6Mb 3MobfSYIDj4YUOyBRm58Dcf46q69vNe9qpx++z0em9rS9702tBKmYdQzKxxjsSzkUet70e3HiJ v1PePDXCV2J1hvjFOiUGBaE+SMaAHedMJVAZE1N8GRTXBD4AIGVAE7aYMToIy8Ie0nceMRWIpm Q2iZpy+guiHmefwBSz15YwQEAAA== To: ltp@lists.linux.it X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1728475481; l=5692; i=andrea.cervesato@suse.com; s=20240812; h=from:subject:message-id; bh=F5WMFDMUouEEGFsGGThuXbVh3Um7FZ0a8IZrWTfroaM=; b=EVKjdti6sA7iN6JcrfmDmee/HwMP7rF3kZAaA2Acl4OtJ2UuxOSMWJNzNjueyMnLbtpMf+3HP CgcGMpgajVzB/WhJMcehZ+ZMOL5wB6ozGoM+rXudhx+NSftkysHVOiC X-Developer-Key: i=andrea.cervesato@suse.com; a=ed25519; pk=RG/nLJ5snb1tLKGwSORQXBJ5XA4juT0WF2Pc/lq9meo= X-Spamd-Result: default: False [-4.30 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_TLS_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo, suse.com:mid, suse.com:email, configure.ac:url] X-Virus-Scanned: clamav-milter 1.0.3 at in-2.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH v8 00/16] statmount/listmount testing suites 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" This patch-set is adding new testing suites for statmount() and listmount() syscalls, which have been recently added in kernel v6.8. To find out more information, please read the following documentation since there's no man pages yet: https://lwn.net/Articles/950569/ https://lore.kernel.org/lkml/170474400576.2602.7882507604401153304.pr-tracker-bot@kernel.org/T/ Along with kernel source code: https://github.com/torvalds/linux/blob/1b294a1f35616977caddaddf3e9d28e576a1adbc/include/uapi/linux/mount.h#L155 https://github.com/torvalds/linux/blob/1b294a1f35616977caddaddf3e9d28e576a1adbc/tools/testing/selftests/filesystems/statmount/statmount_test.c Signed-off-by: Andrea Cervesato --- Changes in v8: - simplify statx fallback - fix fchmodat2_01 which is not compiling due to statx fallback changes - listmount04: remove zero attributes in the tcase struct - Link to v7: https://lore.kernel.org/r/20241009-listmount_statmount-v7-0-d5ad31d47f68@suse.com Changes in v7: - fix statmount01 - add more EOVERFLOW tests in statmount07 - add more invalid tests in listmount04 - Link to v6: https://lore.kernel.org/r/20241008-listmount_statmount-v6-0-0fd456b6b9bf@suse.com Changes in v6: - fix statmount01 - add more EOVERFLOW tests in statmount06 - Link to v5: https://lore.kernel.org/r/20241008-listmount_statmount-v5-0-66f4e1a9e7db@suse.com Changes in v5: - usage of sx.data.stx_mask - use TST_EXP_EQ_STR - use tst_tmpdir_genpath() - use !TST_PASS instead of TST_RET == -1 - listmount03 - listmount04 - statmount08 - Link to v4: https://lore.kernel.org/r/20240909-listmount_statmount-v4-0-39558204ddf0@suse.com Changes in v4: - listmount01: remove all filesystems run - listmount02: better descriptions and proper unmount() - statmount01: check all fields are zeroed - statmount02: check also readonly flag - statmount03: now it checks for all mount flags - statmount04: moved read_peer_group inside statmount.h - statmount07: add test for invalid values - generic style fixes - fix statx import - Link to v3: https://lore.kernel.org/r/20240516-listmount_statmount-v3-0-2ff4ba29bba7@suse.com --- Andrea Cervesato (16): Add SAFE_STATX macro Add TST_EXP_EQ_STR macro Add listmount/statmount syscalls Add listmount/statmount fallback declarations Add listmount01 test Add listmount02 test Add statmount01 test Add statmount02 test Add statmount03 test Add statmount04 test Add statmount05 test Add statmount06 test Add statmount07 test Add statmount08 test Add listmount03 test Add listmount04 test configure.ac | 2 + include/lapi/mount.h | 70 ++++++++++ include/lapi/stat.h | 107 ++++++++++----- include/lapi/syscalls/aarch64.in | 2 + include/lapi/syscalls/arc.in | 2 + include/lapi/syscalls/arm.in | 2 + include/lapi/syscalls/hppa.in | 2 + include/lapi/syscalls/i386.in | 2 + include/lapi/syscalls/ia64.in | 2 + include/lapi/syscalls/loongarch.in | 2 + include/lapi/syscalls/mips_n32.in | 2 + include/lapi/syscalls/mips_n64.in | 2 + include/lapi/syscalls/mips_o32.in | 2 + include/lapi/syscalls/powerpc.in | 2 + include/lapi/syscalls/powerpc64.in | 2 + include/lapi/syscalls/s390.in | 2 + include/lapi/syscalls/s390x.in | 2 + include/lapi/syscalls/sh.in | 2 + include/lapi/syscalls/sparc.in | 2 + include/lapi/syscalls/sparc64.in | 2 + include/lapi/syscalls/x86_64.in | 2 + include/tst_test_macros.h | 14 ++ runtest/syscalls | 14 ++ testcases/kernel/syscalls/fchmodat2/fchmodat2_01.c | 2 + testcases/kernel/syscalls/listmount/.gitignore | 4 + testcases/kernel/syscalls/listmount/Makefile | 7 + testcases/kernel/syscalls/listmount/listmount.h | 27 ++++ testcases/kernel/syscalls/listmount/listmount01.c | 63 +++++++++ testcases/kernel/syscalls/listmount/listmount02.c | 105 +++++++++++++++ testcases/kernel/syscalls/listmount/listmount03.c | 62 +++++++++ testcases/kernel/syscalls/listmount/listmount04.c | 143 ++++++++++++++++++++ testcases/kernel/syscalls/statmount/.gitignore | 8 ++ testcases/kernel/syscalls/statmount/Makefile | 7 + testcases/kernel/syscalls/statmount/statmount.h | 51 ++++++++ testcases/kernel/syscalls/statmount/statmount01.c | 77 +++++++++++ testcases/kernel/syscalls/statmount/statmount02.c | 84 ++++++++++++ testcases/kernel/syscalls/statmount/statmount03.c | 138 ++++++++++++++++++++ testcases/kernel/syscalls/statmount/statmount04.c | 105 +++++++++++++++ testcases/kernel/syscalls/statmount/statmount05.c | 123 ++++++++++++++++++ testcases/kernel/syscalls/statmount/statmount06.c | 68 ++++++++++ testcases/kernel/syscalls/statmount/statmount07.c | 144 +++++++++++++++++++++ testcases/kernel/syscalls/statmount/statmount08.c | 65 ++++++++++ 42 files changed, 1494 insertions(+), 32 deletions(-) --- base-commit: 701212f08d6e850457cc2b10238f28662ef48471 change-id: 20240516-listmount_statmount-080965e2f80e Best regards, -- Andrea Cervesato -- Mailing list info: https://lists.linux.it/listinfo/ltp