From patchwork Wed May 15 11:33:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Cervesato X-Patchwork-Id: 1935558 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=z+v0RQ6P; dkim=fail reason="signature verification failed" header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=0b/0r67E; dkim=fail reason="signature verification failed" (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=z+v0RQ6P; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=0b/0r67E; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; 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 [IPv6:2001:1418:10:5::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 legolas.ozlabs.org (Postfix) with ESMTPS id 4VfWQb62R3z1ymw for ; Wed, 15 May 2024 21:36:39 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 7D3A63CF785 for ; Wed, 15 May 2024 13:36:37 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [217.194.8.6]) (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 E3C373CF7B1 for ; Wed, 15 May 2024 13:33:54 +0200 (CEST) Authentication-Results: in-6.smtp.seeweb.it; spf=pass (sender SPF authorized) smtp.mailfrom=suse.de (client-ip=2a07:de40:b251:101:10:150:64:1; helo=smtp-out1.suse.de; envelope-from=andrea.cervesato@suse.de; receiver=lists.linux.it) Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2a07:de40:b251:101:10:150:64:1]) (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-6.smtp.seeweb.it (Postfix) with ESMTPS id 7AA5914052EA for ; Wed, 15 May 2024 13:33:49 +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-out1.suse.de (Postfix) with ESMTPS id 4995F33AC9; Wed, 15 May 2024 11:33:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1715772828; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=A+WPHKeePnKTNze6jrf6vw/y7mh4r/M0SvVhw9U7kBk=; b=z+v0RQ6PCcPpSPIYM6ArRcBVGIsVzcOUaNIh4Bb3cxkPHecVOw6vEuvUcSsNgnKSNApvgq E2le1NS35xbYYRctpnOt8rqHW20E+YC3I8vIiblP+k+1jy5T1n/dhKqdMYDFOZzMq6vjHL cR29EvYEtxZOoKNKrJY1a6iE3O+n9P4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1715772828; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=A+WPHKeePnKTNze6jrf6vw/y7mh4r/M0SvVhw9U7kBk=; b=0b/0r67EiHdB4XrSCau+EqRL5rHlUv0G7sXlupsKvW8/3Iz0f98rea+jIxBQtlGxsNx3PM ae9XWuTNbLT6axDw== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1715772828; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=A+WPHKeePnKTNze6jrf6vw/y7mh4r/M0SvVhw9U7kBk=; b=z+v0RQ6PCcPpSPIYM6ArRcBVGIsVzcOUaNIh4Bb3cxkPHecVOw6vEuvUcSsNgnKSNApvgq E2le1NS35xbYYRctpnOt8rqHW20E+YC3I8vIiblP+k+1jy5T1n/dhKqdMYDFOZzMq6vjHL cR29EvYEtxZOoKNKrJY1a6iE3O+n9P4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1715772828; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=A+WPHKeePnKTNze6jrf6vw/y7mh4r/M0SvVhw9U7kBk=; b=0b/0r67EiHdB4XrSCau+EqRL5rHlUv0G7sXlupsKvW8/3Iz0f98rea+jIxBQtlGxsNx3PM ae9XWuTNbLT6axDw== 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 1AC941372E; Wed, 15 May 2024 11:33:48 +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 u2p+BJydRGbwNAAAD6G6ig (envelope-from ); Wed, 15 May 2024 11:33:48 +0000 From: Andrea Cervesato To: ltp@lists.linux.it, jstancek@redhat.com Date: Wed, 15 May 2024 13:33:28 +0200 Message-Id: <20240515113338.554-1-andrea.cervesato@suse.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-Spam-Score: -2.80 X-Spam-Level: X-Spamd-Result: default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; FUZZY_BLOCKED(0.00)[rspamd.com]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:email, imap1.dmz-prg2.suse.org:helo, configure.ac:url, lwn.net:url] 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 shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-6.smtp.seeweb.it X-Virus-Scanned: clamav-milter 1.0.3 at in-6.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH v1 00/10] 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: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" From: Andrea Cervesato 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 Andrea Cervesato (10): Add SAFE_STATX macro Add listmount/statmount fallback declarations Add listmount01 test Add listmount02 test Add stamount01 test Add statmount02 test Add statmount03 test Add statmount04 test Add statmount05 test Add statmount06 test configure.ac | 5 + include/lapi/mount.h | 70 +++++++++ include/lapi/stat.h | 10 +- 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_safe_macros.h | 7 + lib/tst_safe_macros.c | 22 +++ runtest/syscalls | 10 ++ .../kernel/syscalls/listmount/.gitignore | 2 + testcases/kernel/syscalls/listmount/Makefile | 7 + .../kernel/syscalls/listmount/listmount.h | 26 ++++ .../kernel/syscalls/listmount/listmount01.c | 66 +++++++++ .../kernel/syscalls/listmount/listmount02.c | 106 ++++++++++++++ .../kernel/syscalls/statmount/.gitignore | 6 + testcases/kernel/syscalls/statmount/Makefile | 7 + .../kernel/syscalls/statmount/statmount.h | 26 ++++ .../kernel/syscalls/statmount/statmount01.c | 69 +++++++++ .../kernel/syscalls/statmount/statmount02.c | 76 ++++++++++ .../kernel/syscalls/statmount/statmount03.c | 99 +++++++++++++ .../kernel/syscalls/statmount/statmount04.c | 133 +++++++++++++++++ .../kernel/syscalls/statmount/statmount05.c | 138 ++++++++++++++++++ .../kernel/syscalls/statmount/statmount06.c | 73 +++++++++ 38 files changed, 993 insertions(+), 1 deletion(-) create mode 100644 testcases/kernel/syscalls/listmount/.gitignore create mode 100644 testcases/kernel/syscalls/listmount/Makefile create mode 100644 testcases/kernel/syscalls/listmount/listmount.h create mode 100644 testcases/kernel/syscalls/listmount/listmount01.c create mode 100644 testcases/kernel/syscalls/listmount/listmount02.c create mode 100644 testcases/kernel/syscalls/statmount/.gitignore create mode 100644 testcases/kernel/syscalls/statmount/Makefile create mode 100644 testcases/kernel/syscalls/statmount/statmount.h create mode 100644 testcases/kernel/syscalls/statmount/statmount01.c create mode 100644 testcases/kernel/syscalls/statmount/statmount02.c create mode 100644 testcases/kernel/syscalls/statmount/statmount03.c create mode 100644 testcases/kernel/syscalls/statmount/statmount04.c create mode 100644 testcases/kernel/syscalls/statmount/statmount05.c create mode 100644 testcases/kernel/syscalls/statmount/statmount06.c