<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/tools/testing/selftests/mount_setattr, branch v6.17</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v6.17</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v6.17'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2025-08-11T12:51:49Z</updated>
<entry>
<title>selftests/mount_setattr: add smoke tests for open_tree_attr(2) bug</title>
<updated>2025-08-11T12:51:49Z</updated>
<author>
<name>Aleksa Sarai</name>
<email>cyphar@cyphar.com</email>
</author>
<published>2025-08-07T17:55:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=81e4b9cf365df4cde30157a85cc9f3d673946118'/>
<id>urn:sha1:81e4b9cf365df4cde30157a85cc9f3d673946118</id>
<content type='text'>
There appear to be no other open_tree_attr(2) tests at the moment, but
as a minimal solution just add some additional checks in the existing
MOUNT_ATTR_IDMAP tests to make sure that open_tree_attr(2) cannot be
used to bypass the tested restrictions that apply to mount_setattr(2).

Signed-off-by: Aleksa Sarai &lt;cyphar@cyphar.com&gt;
Link: https://lore.kernel.org/20250808-open_tree_attr-bugfix-idmap-v1-2-0ec7bc05646c@cyphar.com
Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests/mount_setattr: adapt detached mount propagation test</title>
<updated>2025-06-07T04:41:29Z</updated>
<author>
<name>Christian Brauner</name>
<email>brauner@kernel.org</email>
</author>
<published>2025-06-05T12:50:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=7054674ee9b9c0c62c2a254243f876f577d36db2'/>
<id>urn:sha1:7054674ee9b9c0c62c2a254243f876f577d36db2</id>
<content type='text'>
Make sure that detached trees don't receive mount propagation.

Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>selftests/mount_settattr: remove duplicate syscall definitions</title>
<updated>2025-05-12T09:40:12Z</updated>
<author>
<name>Amir Goldstein</name>
<email>amir73il@gmail.com</email>
</author>
<published>2025-05-09T13:32:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ec050f2adf378184b9cdf0c65d967bc2ca4045a6'/>
<id>urn:sha1:ec050f2adf378184b9cdf0c65d967bc2ca4045a6</id>
<content type='text'>
Which are already defined in wrappers.h.

For now, the syscall defintions of mount_settattr() itself
remain in the test, which is the only test to use them.

Signed-off-by: Amir Goldstein &lt;amir73il@gmail.com&gt;
Link: https://lore.kernel.org/20250509133240.529330-5-amir73il@gmail.com
Reviewed-by: Christian Brauner &lt;brauner@kernel.org&gt;
Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests/filesystems: move wrapper.h out of overlayfs subdir</title>
<updated>2025-05-12T09:40:12Z</updated>
<author>
<name>Amir Goldstein</name>
<email>amir73il@gmail.com</email>
</author>
<published>2025-05-09T13:32:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0bd92b9fe538bc271c944c14b19cdf4434bef81e'/>
<id>urn:sha1:0bd92b9fe538bc271c944c14b19cdf4434bef81e</id>
<content type='text'>
This is not an overlayfs specific header.

Reviewed-by: John Hubbard &lt;jhubbard@nvidia.com&gt;
Signed-off-by: Amir Goldstein &lt;amir73il@gmail.com&gt;
Link: https://lore.kernel.org/20250509133240.529330-2-amir73il@gmail.com
Reviewed-by: Christian Brauner &lt;brauner@kernel.org&gt;
Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests/mount_settattr: ensure that ext4 filesystem can be created</title>
<updated>2025-05-12T09:40:08Z</updated>
<author>
<name>Christian Brauner</name>
<email>brauner@kernel.org</email>
</author>
<published>2025-04-09T11:00:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d37d4720c3e797a19b2d7ad08de273feddaa596f'/>
<id>urn:sha1:d37d4720c3e797a19b2d7ad08de273feddaa596f</id>
<content type='text'>
Filesystem too small for a journal
mount: /mnt/D/: mount failed: Operation not permitted.
mount_setattr_test.c:1076:idmap_mount_tree_invalid:Expected system("mount -o loop -t ext4 /mnt/C/ext4.img /mnt/D/") (256) == 0 (0)

Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests/mount_settattr: don't define sys_open_tree() twice</title>
<updated>2025-05-12T09:40:08Z</updated>
<author>
<name>Christian Brauner</name>
<email>brauner@kernel.org</email>
</author>
<published>2025-04-09T10:55:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2680acd336412b5e8c34c64377e78d85e92739c9'/>
<id>urn:sha1:2680acd336412b5e8c34c64377e78d85e92739c9</id>
<content type='text'>
  CC       mount_setattr_test
mount_setattr_test.c:176:19: error: redefinition of ‘sys_open_tree’
  176 | static inline int sys_open_tree(int dfd, const char *filename, unsigned int flags)
      |                   ^~~~~~~~~~~~~
In file included from mount_setattr_test.c:23:
../filesystems/overlayfs/wrappers.h:59:19: note: previous definition of ‘sys_open_tree’ with type ‘int(int,  const char *, unsigned int)’
   59 | static inline int sys_open_tree(int dfd, const char *filename, unsigned int flags)

Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests: test subdirectory mounting</title>
<updated>2025-03-04T08:29:55Z</updated>
<author>
<name>Christian Brauner</name>
<email>brauner@kernel.org</email>
</author>
<published>2025-02-25T10:15:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e5c10b19b3a048512f91758d0f615597fbe68399'/>
<id>urn:sha1:e5c10b19b3a048512f91758d0f615597fbe68399</id>
<content type='text'>
This tests mounting a subdirectory without ever having to expose the
filesystem to a non-anonymous mount namespace.

Link: https://lore.kernel.org/r/20250225-work-mount-propagation-v1-3-e6e3724500eb@kernel.org
Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests: add test for detached mount tree propagation</title>
<updated>2025-03-04T08:29:55Z</updated>
<author>
<name>Christian Brauner</name>
<email>brauner@kernel.org</email>
</author>
<published>2025-02-25T10:15:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=12e40cbb0ee5951359b759655cef832d72f9397f'/>
<id>urn:sha1:12e40cbb0ee5951359b759655cef832d72f9397f</id>
<content type='text'>
Test that detached mount trees receive propagation events.

Link: https://lore.kernel.org/r/20250225-work-mount-propagation-v1-2-e6e3724500eb@kernel.org
Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests: seventh test for mounting detached mounts onto detached mounts</title>
<updated>2025-03-04T08:29:54Z</updated>
<author>
<name>Christian Brauner</name>
<email>brauner@kernel.org</email>
</author>
<published>2025-02-21T13:13:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=7bece690a990177ee4dda9640b4d7236e360d826'/>
<id>urn:sha1:7bece690a990177ee4dda9640b4d7236e360d826</id>
<content type='text'>
Add a test to verify that detached mounts behave correctly.

Link: https://lore.kernel.org/r/20250221-brauner-open_tree-v1-16-dbcfcb98c676@kernel.org
Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests: sixth test for mounting detached mounts onto detached mounts</title>
<updated>2025-03-04T08:29:54Z</updated>
<author>
<name>Christian Brauner</name>
<email>brauner@kernel.org</email>
</author>
<published>2025-02-21T13:13:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0e6eef95dfc908f6156be01aefee23a553c02afd'/>
<id>urn:sha1:0e6eef95dfc908f6156be01aefee23a553c02afd</id>
<content type='text'>
Add a test to verify that detached mounts behave correctly.

Link: https://lore.kernel.org/r/20250221-brauner-open_tree-v1-15-dbcfcb98c676@kernel.org
Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
</feed>
