linux/fs
Linus Torvalds a804c5742b lsm/stable-7.4 PR 20261016
-----BEGIN PGP SIGNATURE-----
 
 iQJIBAABCgAyFiEES0KozwfymdVUl37v6iDy2pc3iXMFAmrSkXAUHHBhdWxAcGF1
 bC1tb29yZS5jb20ACgkQ6iDy2pc3iXOXTQ/+LcghZOG72DOeZwDkXIzdD+Ex5Xkf
 kV3EiZ+l6LCy2sGePC5PdHJaX1wQE5N0bHCHh8TMIsfE5b0nbdKJsDiFJVkayTJz
 CE4SpAm8Tup+CBDkwMJ1x3aGYgh4RxbgTR9klsrH2zsehI80sGLE3SYp9+lO3BFp
 Eyf+INgF2GrcBNH3ozQBtME5b0086UC/uWif1vQ3HK4RU6QxWlQg5VB68+XJv9GY
 /wZyJ4bIet8QQ1S2boMQN/RGQHih1qYs8hOeuL+R0Inh6pk59ucgM3qfj9OILWbD
 x4u9ptO7ICvoKlkrzWIfvt+ydM5q9mHozN1qi2i+dy4IiDyBicZ75YCFWIeSOld+
 UGL73NB08g/KT1fOo7WE3lfm/ZAMoR8F0IUScDvMeVLv06NU/rCccPKl+z8bYBuo
 vSbctpHsnSPxpZew1U1FiTavwTUZVTHgPnuGrM28wfV1qsj+y9jebM35GNETolDi
 6fcsVh6Fw/8qCG/V1TVQzahqI0xuA2/BDQE7vFKO87Mmu7EJqNr1J3lgFdmMk7tD
 cZqHhHhSF7MgQz8qkuCB8t2edukXV1Fyzm8tUmA9MeurfQHrhLkwZuRPzKmEz0RB
 HssTyKhmo9cwgLgRFzspnoDIOXcSYqxUNSmz4BOVb9yUMi/d5bRhiZ6JFym19rRr
 9IjSU2ud7x3fXqw=
 =7Dpp
 -----END PGP SIGNATURE-----

Merge tag 'lsm-pr-20261016' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/lsm

Pull lsm updates from Paul Moore:

 - Add LSM hooks, object blobs, and audit records for namespaces

   Add the necessary bits to enable LSMs to enforce access controls on
   the management of various kernel namespaces. While this pull request
   does not contain any in-tree users of these hooks, the Landlock pull
   request for Linux v7.4 will include Landlock support and the next
   merge window will likely include SELinux support as well. Considering
   the development behind these hooks, I expect that BPF LSM developers
   will also be making use of the namespace hooks, if they haven't
   already.

 - Update the inode LSM hooks to include mount idmaps

   This allows LSMs to incorporate the mount ID mapping into their
   access control decisions. While there are no current in-tree users of
   this, it was requested by those developing BPF LSM programs and this
   pull request includes a BPF LSM selftest.

 - Preserve the full 32-bit ioctl command in LSM audit records

   Previously only the low 16 bits were logged, ignoring the direction
   and size information in the upper 16 bits. The pull request also
   includes a Landlock based selftest to verify the full 32-bit ioctl
   value.

 - Ensure we don't call security_backing_file_free() multiple times

   Thankfully we don't have a problem with the current code base, but we
   want to fix this behavior now before it becomes a problem.

 - Clarify that only the current task may access current->cred

   The current code is a bit misleading around safely accessing the cred
   field in a task struct. Through comment and code corrections, this
   pull request clarifies that only the task itself may access its cred
   field.

 - Add SLAB_NO_MERGE to the credential object cache

   Harden the credential cache by ensuring credential objects live on
   dedicated slab pages.

 - Make use of safe memory zero'ing in the LSM Rust bindings

 - Update the docs for the current behavior of /sys/kernel/security/lsm

 - Update the docs for CONFIG_LSM and the "lsm=" command line option

 - Remove unnecessary code

* tag 'lsm-pr-20261016' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/lsm:
  lsm: remove redundant NULL check in security_init()
  selftests/landlock: Check full ioctl commands in audit records
  lsm: Preserve full ioctl commands in audit records
  doc: fix LSM ordering description for /sys/kernel/security/lsm
  doc: describe CONFIG_LSM and lsm= as the selection mechanism
  selftests/bpf: verify mount idmaps reach inode hooks
  lsm: expose mount idmaps to inode hooks
  rust: lsm: replace `core::mem::zeroed` with `pin_init::zeroed`
  cred: prevent slab cache merging for cred_jar
  lsm: don't call security_backing_file_free() multiple times
  lsm: delete duplicate assignment in lsm_prepare()
  lsm: update the BUILD_BUG_ON() in audit_log_lsm_data()
  lsm: add LSM_AUDIT_DATA_NS for namespace audit records
  lsm: add LSM blob and hooks for namespaces
  ns: Free anonymous mount namespaces via ns_common_free()
  cred: clarify that task_struct::cred is only for the current task
2026-10-20 20:04:07 -10:00
..
9p vfs-7.4-rc1.netfs 2026-10-19 20:12:19 -10:00
adfs vfs-7.4-rc1.idmap 2026-10-19 17:57:49 -10:00
affs affs-for-7.4 2026-10-20 15:56:04 -10:00
afs vfs-7.4-rc1.netfs 2026-10-19 20:12:19 -10:00
autofs vfs-7.4-rc1.idmap 2026-10-19 17:57:49 -10:00
befs
btrfs for-7.4-tag 2026-10-20 15:53:24 -10:00
cachefiles lsm/stable-7.4 PR 20261016 2026-10-20 20:04:07 -10:00
ceph vfs-7.4-rc1.netfs 2026-10-19 20:12:19 -10:00
coda fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
configfs configfs: Updates for v7.4 2026-10-20 16:25:43 -10:00
cramfs
crypto fscrypt: Move several items from fscrypt_private.h to .c files 2026-09-25 13:40:12 -07:00
debugfs vfs-7.4-rc1.idmap 2026-10-19 17:57:49 -10:00
devpts devpts: reject max=0 instead of silently lifting the limit 2026-09-04 12:57:46 +02:00
dlm dlm: fix typos in comments 2026-10-05 09:26:02 -05:00
ecryptfs fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
efivarfs fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
erofs Changes since last update: 2026-10-20 16:50:37 -10:00
exfat vfs-7.4-rc1.idmap 2026-10-19 17:57:49 -10:00
exportfs
ext2 \n 2026-10-20 16:30:13 -10:00
ext4 fsverity updates for 7.4 2026-10-20 15:51:20 -10:00
f2fs fsverity updates for 7.4 2026-10-20 15:51:20 -10:00
fat vfs-7.4-rc1.idmap 2026-10-19 17:57:49 -10:00
fuse vfs-7.4-rc1.idmap 2026-10-19 17:57:49 -10:00
gfs2 gfs2 changes 2026-10-20 16:42:50 -10:00
hfs hfs/hfsplus updates for v7.4 2026-10-20 16:06:21 -10:00
hfsplus hfs/hfsplus updates for v7.4 2026-10-20 16:06:21 -10:00
hostfs fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
hpfs fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
hugetlbfs fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
iomap fs/iomap: document ret parameter of iomap_iter_continue 2026-10-13 16:59:01 +02:00
isofs \n 2026-10-20 16:30:13 -10:00
jbd2 buffer: clear BH_Write_EIO when a write succeeds, not when one starts 2026-09-10 09:27:27 +02:00
jffs2 fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
jfs fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
kernfs vfs-7.4-rc1.kernfs 2026-10-19 18:52:22 -10:00
lockd NFS client updates for Linux 7.3 2026-08-26 15:09:21 -07:00
minix fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
netfs fscache, cachefiles: Fix resize handling 2026-10-16 11:02:26 +02:00
nfs vfs-7.4-rc1.netfs 2026-10-19 20:12:19 -10:00
nfs_common NFS/localio: fix ref leak on nfs_uuid_add_file failure 2026-08-10 09:54:35 -04:00
nfsd vfs-7.4-rc1.misc 2026-10-19 19:30:45 -10:00
nilfs2 nilfs2 updates for v7.4 2026-10-20 15:59:26 -10:00
nls nls: fix the Unicode to charset tables of iso8859-14 2026-09-25 16:04:53 +02:00
notify \n 2026-10-20 16:28:33 -10:00
ntfs vfs-7.4-rc1.idmap 2026-10-19 17:57:49 -10:00
ntfs3 vfs-7.4-rc1.idmap 2026-10-19 17:57:49 -10:00
ocfs2 \n 2026-10-20 16:30:13 -10:00
omfs vfs-7.4-rc1.idmap 2026-10-19 17:57:49 -10:00
openpromfs
orangefs vfs-7.4-rc1.misc 2026-10-19 19:30:45 -10:00
overlayfs vfs-7.4-rc1.lookup 2026-10-19 18:59:41 -10:00
proc Scheduler updates: 2026-10-20 12:35:35 -10:00
pstore
qnx4
qnx6
quota \n 2026-10-20 16:30:13 -10:00
ramfs fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
resctrl fs/resctrl: Ensure default group reports tasks on monitor-only systems 2026-10-09 17:43:05 -07:00
romfs vfs-7.3-rc1.super 2026-08-17 13:57:04 -07:00
smb smb client: fix mis-merge with fileattr_set taking a const idmap 2026-10-20 18:27:33 -10:00
squashfs squashfs: Add dictionary size range check to prevent shift-out-of-bounds 2026-09-16 10:26:47 +02:00
sysfs
tests vfs: use __struct_size() in the fdtable KUnit test 2026-09-11 14:47:49 +02:00
tracefs vfs-7.4-rc1.idmap 2026-10-19 17:57:49 -10:00
ubifs fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
udf \n 2026-10-20 16:30:13 -10:00
ufs vfs-7.4-rc1.misc 2026-10-19 19:30:45 -10:00
unicode unicode: free the map after a grace period 2026-10-14 22:08:03 +02:00
vboxsf fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
verity fsverity updates for 7.4 2026-10-20 15:51:20 -10:00
xfs xfs: new code for v7.4 2026-10-20 16:46:38 -10:00
zonefs fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
aio.c fs/aio: fix comment typos 2026-08-31 11:55:48 +02:00
anon_inodes.c fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
attr.c fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
backing-file.c fs: port mnt_idmap() and file_mnt_idmap() to const mnt_idmap 2026-09-23 09:19:51 +02:00
bad_inode.c fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
binfmt_elf_fdpic.c vfs-7.4-rc1.sync_close 2026-10-19 21:03:21 -10:00
binfmt_elf.c vfs-7.4-rc1.sync_close 2026-10-19 21:03:21 -10:00
binfmt_flat.c
binfmt_misc_bpf.c binfmt_misc: fix racy checks in bpf set_interp kfuncs 2026-09-18 11:20:55 +02:00
binfmt_misc.c vfs-7.4-rc1.binfmt 2026-10-19 17:02:56 -10:00
binfmt_script.c
bpf_fs_kfuncs.c vfs-7.4-rc1.misc 2026-10-19 19:30:45 -10:00
buffer.c buffer: Rename label 2026-09-10 09:27:28 +02:00
char_dev.c chardev: check return value of kobject_set_name() in __register_chrdev() 2026-09-04 11:01:47 +02:00
compat_binfmt_elf.c
coredump.c vfs-7.4-rc1.sync_close 2026-10-19 21:03:21 -10:00
d_path.c fs: add failfs 2026-07-27 17:17:59 +02:00
dax.c vfs-7.4-rc1.misc 2026-10-19 19:30:45 -10:00
dcache.c vfs-7.4-rc1.misc 2026-10-19 19:30:45 -10:00
direct-io.c
drop_caches.c
eventfd.c file: make struct fd_prepare const and kill its err field 2026-09-23 09:27:44 +02:00
eventpoll.c file: make struct fd_prepare const and kill its err field 2026-09-23 09:27:44 +02:00
exec.c vfs-7.4-rc1.sync_close 2026-10-19 21:03:21 -10:00
failfs.c fs: port ->getattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
fcntl.c fcntl: refuse F_SET_RW_HINT on an immutable inode 2026-10-04 12:31:38 +02:00
fhandle.c vfs-7.4-rc1.idmap 2026-10-19 17:57:49 -10:00
file_attr.c fsverity updates for 7.4 2026-10-20 15:51:20 -10:00
file_table.c namespace: drop the file's reference first in dissolve_on_fput() 2026-09-26 15:47:41 +02:00
file.c vfs-7.4-rc1.sync_close 2026-10-19 21:03:21 -10:00
filesystems.c fs: fix switch/case indentation in sysfs() syscall 2026-08-12 11:36:40 +02:00
fs_context.c namespace: don't reconfigure internal superblocks via remount and umount 2026-10-01 14:20:07 +02:00
fs_dirent.c
fs_parser.c
fs_pin.c fs_pin: publish pins with RCU list helpers 2026-09-04 12:56:04 +02:00
fs_struct.c
fs-writeback.c vfs-7.4-rc1.misc 2026-10-19 19:30:45 -10:00
fserror.c
fsopen.c audit: add FSOPEN record to log filesystem name 2026-10-04 07:33:18 -04:00
init.c
inode.c vfs-7.4-rc1.misc 2026-10-19 19:30:45 -10:00
internal.h vfs-7.4-rc1.sync_close 2026-10-19 21:03:21 -10:00
ioctl.c
Kconfig vfs-7.4-rc1.file 2026-10-19 17:35:50 -10:00
Kconfig.binfmt binfmt_misc: add binfmt_misc_ops bpf struct_ops 2026-08-03 10:08:41 +02:00
kernel_read_file.c
libfs.c fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
locks.c
Makefile bfs: remove the filesystem 2026-09-04 12:43:07 +02:00
mbcache.c
mnt_idmapping.c fs: make nop_mnt_idmap and invalid_mnt_idmap const 2026-09-23 09:19:52 +02:00
mount.h namespace: rework connected mounts 2026-10-07 00:45:49 +02:00
mpage.c
namei.c lsm/stable-7.4 PR 20261016 2026-10-20 20:04:07 -10:00
namespace.c lsm/stable-7.4 PR 20261016 2026-10-20 20:04:07 -10:00
nsfs.c file: make struct fd_prepare const and kill its err field 2026-09-23 09:27:44 +02:00
nullfs.c vfs-7.4-rc1.idmap 2026-10-19 17:57:49 -10:00
open.c vfs-7.4-rc1.sync_close 2026-10-19 21:03:21 -10:00
pidfs.c vfs-7.4-rc1.shared.net-next.pidfd 2026-10-19 20:32:52 -10:00
pipe.c vfs-7.4-rc1.misc 2026-10-19 19:30:45 -10:00
pnode.c namespace: rework connected mounts 2026-10-07 00:45:49 +02:00
pnode.h
posix_acl.c fs: port ->get_acl() to pass const mnt_idmap 2026-09-23 09:19:50 +02:00
proc_namespace.c
read_write.c fs: fix misleading comments in read_write.c 2026-09-23 09:27:08 +02:00
readdir.c readdir: take no inode lock on an immutable directory 2026-10-04 12:36:13 +02:00
remap_range.c fs: port mnt_idmap() and file_mnt_idmap() to const mnt_idmap 2026-09-23 09:19:51 +02:00
select.c
seq_file.c seq_file: rename mangle_path to seq_mangle_path 2026-07-31 10:09:14 +02:00
signalfd.c
splice.c splice: pass a poll key when waking pipe readers and writers 2026-09-25 16:45:34 +02:00
stack.c
stat.c fsverity updates for 7.4 2026-10-20 15:51:20 -10:00
statfs.c
super.c vfs-7.4-rc1.shared.super 2026-10-19 20:55:04 -10:00
sync.c
sysctls.c
timerfd.c
utimes.c
xattr.c fs: port ->get_acl() to pass const mnt_idmap 2026-09-23 09:19:50 +02:00