aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namei.c
AgeCommit message (Expand)AuthorFilesLines
2025-05-26Merge tag 'vfs-6.16-rc1.misc' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-26/+53
2025-05-26Merge tag 'vfs-6.16-rc1.async.dir' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-76/+80
2025-05-15fs: Pass a folio to page_put_link()Matthew Wilcox (Oracle)1-3/+27
2025-05-15fs: Convert __page_get_link() to use a folioMatthew Wilcox (Oracle)1-10/+10
2025-04-21fs: touch up predicts in inode_permission()Mateusz Guzik1-5/+5
2025-04-21fs: improve codegen in link_path_walk()Mateusz Guzik1-4/+7
2025-04-16fs: ensure that *path_locked*() helpers leave passed path pristineChristian Brauner1-16/+18
2025-04-15fs: add kern_path_locked_negative()Christian Brauner1-16/+49
2025-04-11fs: Fix filename init after recent refactoringSong Liu1-4/+4
2025-04-08VFS: change lookup_one_common and lookup_noperm_common to take a qstrNeilBrown1-27/+21
2025-04-08VFS: rename lookup_one_len family to lookup_noperm and remove permission checkNeilBrown1-35/+52
2025-04-08fs: unconditionally use atime_needs_update() in pick_link()Mateusz Guzik1-5/+5
2025-04-07VFS: improve interface for lookup_one functionsNeilBrown1-29/+22
2025-03-24Merge tag 'vfs-6.15-rc1.file' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-1/+1
2025-03-24Merge tag 'vfs-6.15-rc1.async.dir' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-49/+56
2025-03-24Merge tag 'vfs-6.15-rc1.misc' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-20/+22
2025-03-18VFS/autofs: try_lookup_one_len() does not need any locksNeilBrown1-3/+2
2025-03-18fs: dedup handling of struct filename init and refcounts bumpsMateusz Guzik1-8/+9
2025-03-12fs: dodge an atomic in putname if ref == 1Mateusz Guzik1-4/+9
2025-03-05fs: use fput_close() in path_openat()Mateusz Guzik1-1/+1
2025-03-05VFS: Change vfs_mkdir() to return the dentry.NeilBrown1-16/+29
2025-02-27Change inode_operations.mkdir to return struct dentry *NeilBrown1-3/+12
2025-02-21vfs: inline getname()Mateusz Guzik1-5/+0
2025-02-21vfs: catch invalid modes in may_open()Mateusz Guzik1-0/+2
2025-02-20fuse: don't truncate cached, mutated symlinkMiklos Szeredi1-5/+19
2025-02-19VFS: add common error checks to lookup_one_qstr_excl()NeilBrown1-40/+21
2025-02-19VFS: change kern_path_locked() and user_path_locked_at() to never return nega...NeilBrown1-0/+4
2025-01-30Merge tag 'pull-revalidate' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-8/+10
2025-01-28treewide: const qualify ctl_tables where applicableJoel Granados1-1/+1
2025-01-27Pass parent directory inode and expected name to ->d_revalidate()Al Viro1-8/+10
2024-12-22vfs: support caching symlink lengths in inodesMateusz Guzik1-15/+19
2024-11-18Merge tag 'pull-xattr' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfsLinus Torvalds1-8/+26
2024-11-18Merge tag 'pull-fd' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfsLinus Torvalds1-9/+4
2024-11-03fdget_raw() users: switch to CLASS(fd_raw)Al Viro1-9/+4
2024-11-01fs: optimize acl_permission_check()Linus Torvalds1-0/+41
2024-10-19getname_maybe_null() - the third variant of pathname copy-inAl Viro1-7/+23
2024-10-19teach filename_lookup() to treat NULL filename as ""Al Viro1-1/+3
2024-09-23Merge tag 'pull-stable-struct_fd' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-5/+5
2024-09-16Merge tag 'vfs-6.12.folio' of gitolite.kernel.org:pub/scm/linux/kernel/git/vf...Linus Torvalds1-5/+5
2024-08-30fs: rearrange general fastpath check now that O_CREAT uses itChristian Brauner1-13/+4
2024-08-30fs: remove audit dummy context checkChristian Brauner1-11/+1
2024-08-30fs: pull up trailing slashes check for O_CREATChristian Brauner1-8/+4
2024-08-30fs: move audit parent inodeChristian Brauner1-1/+3
2024-08-30fs: try an opportunistic lookup for O_CREAT opens tooJeff Layton1-10/+64
2024-08-30fs: add a kerneldoc header over lookup_fastJeff Layton1-0/+14
2024-08-12introduce fd_file(), convert all accessors to it.Al Viro1-5/+5
2024-08-07fs: Convert aops->write_begin to take a folioMatthew Wilcox (Oracle)1-5/+5
2024-08-07fs: Convert aops->write_end to take a folioMatthew Wilcox (Oracle)1-1/+1
2024-07-24vfs: correct the comments of vfs_*() helpersCongjie Zhou1-13/+13
2024-07-15Merge tag 'vfs-6.11.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vf...Linus Torvalds1-36/+62
2024-07-15Merge branch 'link_path_walk'Linus Torvalds1-47/+94
2024-07-07vfs: link_path_walk: move more of the name hashing into hash_name()Linus Torvalds1-19/+32
2024-07-07vfs: link_path_walk: improve may_lookup() code generationLinus Torvalds1-10/+19
2024-06-27fs: reflow may_create_in_sticky()Christian Brauner1-16/+35
2024-06-25vfs: reorder checks in may_create_in_stickyMateusz Guzik1-3/+3
2024-06-21vfs: shave a branch in getname_flagsMateusz Guzik1-11/+20
2024-06-19vfs: link_path_walk: do '.' and '..' detection while hashingLinus Torvalds1-22/+46
2024-06-19vfs: link_path_walk: clarify and improve name hashing interfaceLinus Torvalds1-8/+12
2024-06-19vfs: link_path_walk: simplify name hash flowLinus Torvalds1-16/+13
2024-06-18vfs: generate FS_CREATE before FS_OPEN when ->atomic_open used.NeilBrown1-2/+8
2024-06-05vfs: retire user_path_at_empty and drop empty arg from getname_flagsMateusz Guzik1-9/+7
2024-05-22Merge tag 'ovl-update-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-3/+3
2024-05-13Merge tag 'vfs-6.10.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vf...Linus Torvalds1-6/+13
2024-05-02ovl: implement tmpfileMiklos Szeredi1-3/+3
2024-04-13vfs: relax linkat() AT_EMPTY_PATH - aka flink() - requirementsLinus Torvalds1-6/+13
2024-04-03security: Place security_path_post_mknod() where the original IMA call wasRoberto Sassu1-5/+2
2024-03-12Merge tag 'lsm-pr-20240312' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-5/+7
2024-03-12Merge tag 'hardening-v6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-1/+1
2024-03-11Merge tag 'vfs-6.9.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs...Linus Torvalds1-4/+2
2024-02-25rcu pathwalk: prevent bogus hard errors from may_lookup()Al Viro1-1/+5
2024-02-15ima: Move to LSM infrastructureRoberto Sassu1-6/+0
2024-02-15security: Introduce inode_post_create_tmpfile hookRoberto Sassu1-0/+1
2024-02-15security: Introduce path_post_mknod hookRoberto Sassu1-0/+5
2024-02-15security: Introduce file_post_open hookRoberto Sassu1-0/+2
2024-02-01kernel.h: removed REPEAT_BYTE from kernel.hTanzir Hasan1-1/+1
2024-01-23Merge tag 'exportfs-6.9' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/gi...Christian Brauner1-4/+2
2024-01-23fs: Create a generic is_dot_dotdot() utilityChuck Lever1-4/+2
2024-01-12Merge tag 'pull-bcachefs-fix' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-3/+13
2024-01-11Merge tag 'pull-rename' of git://git.kernel.org/pub/scm/linux/kernel/git/viro...Linus Torvalds1-26/+61
2024-01-10Merge tag 'sysctl-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/m...Linus Torvalds1-1/+0
2023-12-28fs: Remove the now superfluous sentinel elements from ctl_table arrayJoel Granados1-1/+0
2023-12-21Merge branch 'vfs.file'Christian Brauner1-4/+1
2023-12-21fs: fix doc comment typo fs tree wideAlexander Mikhalitsyn1-11/+11
2023-12-12file: massage cleanup of files that failed to openAl Viro1-4/+1
2023-11-25rename(): avoid a deadlock in the case of parents having no common ancestorAl Viro1-8/+29
2023-11-25rename(): fix the locking of subdirectoriesAl Viro1-23/+37
2023-11-20fs: namei: Fix spelling mistake "Retuns" to "Returns"YangXin1-2/+2
2023-11-15new helper: user_path_locked_at()Al Viro1-3/+13
2023-10-30Merge tag 'vfs-6.7.misc' of gitolite.kernel.org:pub/scm/linux/kernel/git/vfs/vfsLinus Torvalds1-24/+7
2023-10-24vfs: Convert BUG_ON to WARN_ON_ONCE in open_last_lookupsBernd Schubert1-1/+2
2023-10-19vfs: shave work on failed file openMateusz Guzik1-1/+4
2023-10-19fs: simplify misleading code to remove ambiguity regarding ihold()/iput()Luís Henriques1-3/+1
2023-10-19fs: add a new SB_I_NOUMASK flagJeff Layton1-19/+0
2023-10-13audit,io_uring: io_uring openat triggers audit reference count underflowDan Clash1-4/+5
2023-08-19fs: Fix kernel-doc warningsMatthew Wilcox (Oracle)1-0/+3
2023-07-14fs: Fix error checking for d_hash_and_lookup()Wang Ming1-1/+1
2023-07-04fs: no need to check sourceJan Kara1-2/+1
2023-06-26Merge tag 'v6.5/vfs.file' of git://git.kernel.org/pub/scm/linux/kernel/git/vf...Linus Torvalds1-11/+13
2023-06-19fs: rename {vfs,kernel}_tmpfile_open()Amir Goldstein1-11/+13
2023-06-02fs: Lock moved directoriesJan Kara1-8/+14
2023-06-02fs: Establish locking order for unrelated directoriesJan Kara1-2/+2
2023-04-29Merge tag '6.4-rc-ksmbd-server-fixes' of git://git.samba.org/ksmbdLinus Torvalds1-23/+102
2023-04-24ksmbd: fix racy issue from using ->d_parent and ->d_nameNamjae Jeon1-12/+45
2023-04-20fs: introduce lock_rename_child() helperAl Viro1-11/+57
2023-03-12fs: Fix description of vfs_tmpfile()Roberto Sassu1-2/+2
2023-02-22Merge tag 'nfsd-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linuxLinus Torvalds1-3/+3
2023-02-20Merge tag 'fs.idmapped.v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-229/+221
2023-02-20fs: namei: Allow follow_down() to uncover auto mountsRichard Weinberger1-3/+3
2023-01-19fs: port i_{g,u}id_into_vfs{g,u}id() to mnt_idmapChristian Brauner1-29/+21
2023-01-19fs: port privilege checking helpers to mnt_idmapChristian Brauner1-22/+16
2023-01-19fs: port inode_owner_or_capable() to mnt_idmapChristian Brauner1-3/+2
2023-01-19fs: port acl to mnt_idmapChristian Brauner1-16/+17
2023-01-19fs: port xattr to mnt_idmapChristian Brauner1-4/+2
2023-01-19fs: port ->permission() to pass mnt_idmapChristian Brauner1-84/+82
2023-01-19fs: port ->tmpfile() to pass mnt_idmapChristian Brauner1-1/+1
2023-01-19fs: port ->rename() to pass mnt_idmapChristian Brauner1-1/+1
2023-01-19fs: port ->mknod() to pass mnt_idmapChristian Brauner1-1/+1
2023-01-19fs: port ->mkdir() to pass mnt_idmapChristian Brauner1-1/+1
2023-01-19fs: port ->symlink() to pass mnt_idmapChristian Brauner1-2/+3
2023-01-19fs: port ->create() to pass mnt_idmapChristian Brauner1-3/+5
2023-01-18fs: port vfs_*() helpers to struct mnt_idmapChristian Brauner1-93/+100
2023-01-11filelock: move file locking definitions to separate header fileJeff Layton1-0/+1
2022-12-13Merge tag 'landlock-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-1/+1
2022-12-12Merge tag 'fs.vfsuid.conversion.v6.2' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-20/+20
2022-12-12Merge tag 'fs.acl.rework.v6.2' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-2/+2
2022-11-19vfs: vfs_tmpfile: ensure O_EXCL flag is enforcedPeter Griffin1-1/+2
2022-10-26fs: use type safe idmapping helpersChristian Brauner1-20/+20
2022-10-20fs: rename current get acl methodChristian Brauner1-2/+2
2022-10-19security: Create file_truncate hook from path_truncate hookGünther Noack1-1/+1
2022-10-10Merge tag 'pull-tmpfile' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-33/+55
2022-10-10Merge tag 'mm-stable-2022-10-08' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-1/+1
2022-10-03mm: fs: initialize fsdata passed to write_begin/write_end interfaceAlexander Potapenko1-1/+1
2022-09-24vfs: open inside ->tmpfile()Miklos Szeredi1-2/+1
2022-09-24vfs: move open right after ->tmpfile()Miklos Szeredi1-50/+33
2022-09-24vfs: make vfs_tmpfile() staticMiklos Szeredi1-2/+1
2022-09-24vfs: add vfs_tmpfile_open() helperMiklos Szeredi1-0/+41
2022-09-01nd_jump_link(): constify pathAl Viro1-1/+1
2022-09-01may_linkat(): constify pathAl Viro1-1/+1
2022-08-09Merge tag 'fs.setgid.v6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/b...Linus Torvalds1-11/+69
2022-07-21fs: move S_ISGID stripping into the vfs_*() helpersYang Xu1-13/+69
2022-07-19fs: Add missing umask strip in vfs_tmpfileYang Xu1-0/+2
2022-07-06step_into(): move fetching ->d_inode past handle_mounts()Al Viro1-20/+11
2022-07-06lookup_fast(): don't bother with inodeAl Viro1-18/+4
2022-07-06follow_dotdot{,_rcu}(): don't bother with inodeAl Viro1-11/+4
2022-07-06step_into(): lose inode argumentAl Viro1-6/+9
2022-07-06namei: stash the sampled ->d_seq into nameidataAl Viro1-50/+48
2022-07-06namei: move clearing LOOKUP_RCU towards rcu_read_unlock()Al Viro1-9/+12
2022-07-05switch try_to_unlazy_next() to __legitimize_mnt()Al Viro1-2/+7
2022-07-05follow_dotdot{,_rcu}(): change calling conventionsAl Viro1-9/+7
2022-07-05namei: get rid of pointless unlikely(read_seqcount_retry(...))Al Viro1-9/+9
2022-07-05__follow_mount_rcu(): verify that mount_lock remains unchangedAl Viro1-0/+2
2022-06-04Merge tag 'pull-18-rc1-work.namei' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-9/+2
2022-05-30Merge tag 'ovl-update-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-10/+60
2022-05-27Merge tag 'mm-nonmm-stable-2022-05-26' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-4/+4
2022-05-19namei: cleanup double word in commentTom Rix1-1/+1
2022-05-19get rid of dead code in legitimize_root()Al Viro1-7/+0
2022-05-19fs/namei.c:reserve_stack(): tidy up the call of try_to_unlazy()Al Viro1-1/+1
2022-05-13proc/sysctl: make protected_* world readableJulius Hemanth Pitti1-4/+4
2022-05-08namei: Call aops write_begin() and write_end() directlyMatthew Wilcox (Oracle)1-3/+3
2022-05-08namei: Convert page_symlink() to use memalloc_nofs_save()Matthew Wilcox (Oracle)1-4/+7
2022-05-08namei: Merge page_symlink() and __page_symlink()Matthew Wilcox (Oracle)1-11/+2
2022-04-28fs: add two trivial lookup helpersChristian Brauner1-10/+60
2022-04-14VFS: filename_create(): fix incorrect intent.NeilBrown1-12/+10
2022-01-28Merge tag 'fsnotify_for_v5.17-rc2' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-5/+5
2022-01-24fsnotify: invalidate dcache before IN_DELETE eventAmir Goldstein1-5/+5
2022-01-22fs: move namei sysctls to its own fileLuis Chamberlain1-4/+54
2022-01-07vfs, cachefiles: Mark a backing file in use with an inode flagDavid Howells1-1/+2
2021-11-01Merge tag 'locks-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/jlay...Linus Torvalds1-3/+1
2021-10-26fs: remove leftover comments from mandatory locking removalJeff Layton1-3/+1
2021-09-07putname(): IS_ERR_OR_NULL() is wrong hereAl Viro1-1/+1
2021-09-07namei: Standardize callers of filename_create()Stephen Brennan1-17/+15
2021-09-07namei: Standardize callers of filename_lookup()Stephen Brennan1-17/+20
2021-09-07rename __filename_parentat() to filename_parentat()Al Viro1-9/+9
2021-09-07namei: Fix use after free in kern_path_lockedStephen Brennan1-15/+14
2021-09-03Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-1/+7
2021-09-03fs, mm: fix race in unlinking swapfileHugh Dickins1-1/+7
2021-08-31Merge tag 'for-5.15-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kda...Linus Torvalds1-6/+37
2021-08-30Merge tag 'for-5.15/io_uring-vfs-2021-08-30' of git://git.kernel.dk/linux-blockLinus Torvalds1-102/+137
2021-08-23io_uring: add support for IORING_OP_LINKATDmitry Kadashev1-1/+1
2021-08-23io_uring: add support for IORING_OP_SYMLINKATDmitry Kadashev1-2/+1
2021-08-23namei: update do_*() helpers to return intsDmitry Kadashev1-5/+5
2021-08-23namei: make do_linkat() take struct filenameDmitry Kadashev1-16/+29
2021-08-23namei: add getname_uflags()Dmitry Kadashev1-0/+8
2021-08-23namei: make do_symlinkat() take struct filenameDmitry Kadashev1-11/+12
2021-08-23namei: make do_mknodat() take struct filenameDmitry Kadashev1-8/+11
2021-08-23namei: make do_mkdirat() take struct filenameDmitry Kadashev1-7/+19
2021-08-23namei: change filename_parentat() calling conventionsDmitry Kadashev1-55/+53
2021-08-23namei: ignore ERR/NULL names in putname()Dmitry Kadashev1-4/+5
2021-08-23namei: add mapping aware lookup helperChristian Brauner1-6/+37
2021-08-23fs: remove mandatory file locking supportJeff Layton1-3/+1
2021-07-03Merge branch 'work.namei' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-35/+45
2021-04-27Merge tag 'fs.idmapped.helpers.v5.13' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-8/+3
2021-04-27Merge tag 'fs.idmapped.docs.v5.13' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-11/+3
2021-04-07namei: make sure nd->depth is always validAl Viro1-1/+1
2021-04-07teach set_nameidata() to handle setting the root as wellAl Viro1-12/+16
2021-04-07take LOOKUP_{ROOT,ROOT_GRABBED,JUMPED} out of LOOKUP_... spaceAl Viro1-23/+31
2021-04-07switch file_open_root() to struct pathAl Viro1-5/+3
2021-04-06LOOKUP_MOUNTPOINT: we are cleaning "jumped" flag too lateAl Viro1-4/+4
2021-04-06Make sure nd->path.mnt and nd->path.dentry are always valid pointersAl Viro1-2/+4
2021-03-23namei: fix kernel-doc for struct renamedata and moreRandy Dunlap1-11/+3