aboutsummaryrefslogtreecommitdiffstats
path: root/fs/file.c
AgeCommit message (Expand)AuthorFilesLines
2023-12-12file: remove __receive_fd()Christian Brauner1-8/+3
2023-12-12file: remove pointless wrapperChristian Brauner1-14/+9
2023-12-12file: s/close_fd_get_file()/file_close_fd()/gChristian Brauner1-5/+9
2023-12-12Improve __fget_files_rcu() code generation (and thus __fget_light())Linus Torvalds1-18/+33
2023-10-25file, i915: fix file reference for mmap_singleton()Christian Brauner1-0/+25
2023-10-19backing file: free directlyChristian Brauner1-0/+3
2023-10-19file: convert to SLAB_TYPESAFE_BY_RCUChristian Brauner1-18/+107
2023-08-28Merge tag 'v6.6-vfs.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vf...Linus Torvalds1-14/+16
2023-08-19fs: Fix kernel-doc warningsMatthew Wilcox (Oracle)1-1/+2
2023-08-06fs: rely on ->iterate_shared to determine f_pos lockingChristian Brauner1-1/+1
2023-08-04file: reinstate f_pos locking optimization for regular filesLinus Torvalds1-1/+17
2023-08-04file: mostly eliminate spurious relocking in __range_closeMateusz Guzik1-13/+14
2023-07-24file: always lock position for FMODE_ATOMIC_POSChristian Brauner1-4/+2
2023-03-09fs: prevent out-of-bounds array speculation when closing a file descriptorTheodore Ts'o1-0/+1
2022-10-31fs: use acquire ordering in __fget_light()Jann Horn1-1/+10
2022-06-29gfs2: Add glockfd debugfs fileAndreas Gruenbacher1-0/+1
2022-06-05fix the breakage in close_fd_get_file() calling conventions changeAl Viro1-2/+1
2022-05-14Unify the primitives for file descriptor closingAl Viro1-48/+29
2022-05-14fs: remove fget_many and fput_many interfaceGou Hao1-20/+13
2022-03-29fs: fix fd table size alignment properlyLinus Torvalds1-2/+1
2022-03-29fs: fd tables have to be multiples of BITS_PER_LONGLinus Torvalds1-0/+30
2021-12-13fget: clarify and improve __fget_files() implementationLinus Torvalds1-16/+56
2021-12-03fget: check that the fd still exists after getting a ref to itLinus Torvalds1-0/+4
2021-09-11Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhostLinus Torvalds1-0/+6
2021-09-06file: Export receive_fd() to modulesXie Yongji1-0/+6
2021-08-31Merge tag 'fs.close_range.v5.15' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-24/+40
2021-05-03Merge branch 'work.file' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-20/+19
2021-04-16fs: split receive_fd_replace from __receive_fdChristoph Hellwig1-20/+19
2021-04-02file: simplify logic in __close_range()Christian Brauner1-17/+14
2021-04-02file: fix close_range() for unshare+cloexecChristian Brauner1-4/+17
2021-04-02file: let pick_file() tell caller it's doneChristian Brauner1-7/+26
2021-02-01fs: provide locked helper variant of close_fd_get_file()Jens Axboe1-11/+25
2020-12-30kernel/io_uring: cancel io_uring before task worksPavel Begunkov1-2/+0
2020-12-19close_range: unshare all fds for CLOSE_RANGE_UNSHARE | CLOSE_RANGE_CLOEXECChristian Brauner1-1/+3
2020-12-15Merge branch 'exec-for-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-66/+58
2020-12-10file: Remove get_files_structEric W. Biederman1-13/+0
2020-12-10file: Rename __close_fd_get_file close_fd_get_fileEric W. Biederman1-2/+2
2020-12-10file: Rename __close_fd to close_fd and remove the files parameterEric W. Biederman1-6/+4
2020-12-10file: Merge __alloc_fd into alloc_fdEric W. Biederman1-8/+3
2020-12-10file: In f_dupfd read RLIMIT_NOFILE once.Eric W. Biederman1-4/+5
2020-12-10file: Merge __fd_install into fd_installEric W. Biederman1-19/+6
2020-12-10file: Implement task_lookup_next_fd_rcuEric W. Biederman1-0/+21
2020-12-10file: Implement task_lookup_fd_rcuEric W. Biederman1-0/+15
2020-12-10file: Replace fcheck_files with files_lookup_fd_rcuEric W. Biederman1-2/+2
2020-12-10file: Factor files_lookup_fd_locked out of fcheck_filesEric W. Biederman1-1/+1
2020-12-10file: Rename __fcheck_files to files_lookup_fd_rawEric W. Biederman1-1/+1
2020-12-10exec: Remove reset_files_structEric W. Biederman1-12/+0
2020-12-04fs, close_range: add flag CLOSE_RANGE_CLOEXECGiuseppe Scrivano1-10/+34
2020-09-30io_uring: don't rely on weak ->files referencesJens Axboe1-0/+2
2020-08-07Merge branch 'hch.init_path' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-6/+1
2020-08-04Merge tag 'close-range-v5.9' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-11/+110
2020-07-31fs: remove ksys_dupChristoph Hellwig1-6/+1
2020-07-13fs: Expand __receive_fd() to accept existing fdKees Cook1-6/+19
2020-07-13fs: Add receive_fd() wrapper for __receive_fd()Kees Cook1-7/+10
2020-07-13fs: Move __scm_install_fd() to __receive_fd()Kees Cook1-0/+45
2020-06-17close_range: add CLOSE_RANGE_UNSHAREChristian Brauner1-7/+58
2020-06-17open: add close_range()Christian Brauner1-8/+56
2020-05-19fix multiplication overflow in copy_fdtable()Al Viro1-1/+1
2020-03-20io_uring: make sure openat/openat2 honor rlimit nofileJens Axboe1-1/+6
2020-01-29Merge tag 'threads-v5.6' of git://git.kernel.org/pub/scm/linux/kernel/git/bra...Linus Torvalds1-2/+20
2020-01-20fs: move filp_close() outside of __close_fd_get_file()Jens Axboe1-2/+4
2020-01-13vfs, fdtable: Add fget_task helperSargun Dhillon1-2/+20
2020-01-02Revert "fs: remove ksys_dup()"Dominik Brodowski1-1/+6
2019-12-12fs: remove ksys_dup()Dominik Brodowski1-6/+1
2019-11-26Revert "vfs: properly and reliably lock f_pos in fdget_pos()"Linus Torvalds1-1/+1
2019-11-25vfs: properly and reliably lock f_pos in fdget_pos()Linus Torvalds1-1/+1
2019-03-08Merge tag 'io_uring-2019-03-06' of git://git.kernel.dk/linux-blockLinus Torvalds1-5/+10
2019-03-05fs/file.c: initialize init_files.resize_waitShuriyc Chu1-0/+1
2019-02-28fs: add fget_many() and fput_many()Jens Axboe1-5/+10
2018-12-28Merge tag 'char-misc-4.21-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-0/+29
2018-12-19binder: fix use-after-free due to ksys_close() during fdget()Todd Kjos1-0/+29
2018-11-27fs/file: Replace synchronize_sched() with synchronize_rcu()Paul E. McKenney1-1/+1
2018-04-02fs: add ksys_close() wrapper; remove in-kernel calls to sys_close()Dominik Brodowski1-0/+1
2018-04-02fs: add ksys_dup{,3}() helper; remove in-kernel calls to sys_dup{,3}()Dominik Brodowski1-3/+13
2018-01-31Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-5/+0
2017-12-05fs/file.c: trim includesAl Viro1-5/+0
2017-12-04fs: Eliminate cond_resched_rcu_qs() in favor of cond_resched()Paul E. McKenney1-1/+1
2017-11-17Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-5/+7
2017-11-05vfs: grab the lock instead of blocking in __fd_install during resizingMateusz Guzik1-4/+7
2017-11-05vfs: stop clearing close on exec when closing a fdMateusz Guzik1-1/+0
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman1-0/+1
2017-07-06fs/file.c: replace alloc_fdmem() with kvmalloc() alternativeMichal Hocko1-18/+4
2017-05-08mm, vmalloc: use __GFP_HIGHMEM implicitlyMichal Hocko1-1/+1
2017-03-02sched/headers: Prepare for new header dependencies before moving code to <lin...Ingo Molnar1-1/+1
2016-09-27fs/file: more unsigned file descriptorsAlexey Dobriyan1-17/+17
2016-05-02give readdir(2)/getdents(2)/etc. uniform exclusion with lseek()Al Viro1-0/+5
2016-01-14kmemcg: account certain kmem allocations to memcgVladimir Davydov1-3/+4
2015-12-06fs/file.c: __const_max is actually __const_min :-)Rasmus Villemoes1-3/+3
2015-11-05vfs: clear remainder of 'full_fds_bits' in dup_fd()Eric Biggers1-32/+32
2015-10-31vfs: conditionally clear close-on-exec flagLinus Torvalds1-1/+2
2015-10-31vfs: Fix pathological performance case for __alloc_fd()Linus Torvalds1-4/+35
2015-07-01fs/file.c: __fget() and dup2() atomicity rulesEric Dumazet1-2/+8
2015-07-01fs/file.c: don't acquire files->file_lock in fd_install()Eric Dumazet1-19/+48
2015-04-17mm: rcu-protected get_mm_exe_file()Konstantin Khlebnikov1-2/+1
2014-12-10fs/file.c: replace get_unused_fd() with get_unused_fd_flags(0)Yann Droneaud1-1/+1
2014-10-13Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-1/+1
2014-10-09missing annotation in fs/file.cAl Viro1-0/+1
2014-09-07rcu: Provide cond_resched_rcu_qs() to force quiescent states in long loopsPaul E. McKenney1-1/+1
2014-05-06fs/file.c: don't open-code kvfree()Al Viro1-8/+3
2014-04-12Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-7/+4
2014-04-01get rid of files_defer_init()Al Viro1-7/+4
2014-03-31Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-1/+1
2014-03-23vfs: Don't let __fdget_pos() get FMODE_PATH filesEric Biggers1-15/+4
2014-03-10get rid of fget_light()Al Viro1-13/+43
2014-02-17fs: Substitute rcu_access_pointer() for rcu_dereference_raw()Paul E. McKenney1-1/+1
2014-02-10fs/file.c:fdtable: avoid triggering OOMs from alloc_fdmemEric W. Biederman1-1/+1
2014-01-25fs: __fget_light() can use __fget() in slow pathOleg Nesterov1-11/+3
2014-01-25fs: factor out common code in fget_light() and fget_raw_light()Oleg Nesterov1-24/+9
2014-01-25fs: factor out common code in fget() and fget_raw()Oleg Nesterov1-17/+8
2014-01-25change close_files() to use rcu_dereference_raw(files->fdt)Oleg Nesterov1-17/+9
2014-01-25introduce __fcheck_files() to fix rcu_dereference_check_fdtable(), kill rcu_m...Oleg Nesterov1-2/+2
2013-05-01don't bother with deferred freeing of fdtablesAl Viro1-66/+2
2013-02-19locking: Various static lock initializer fixesThomas Gleixner1-1/+1
2013-01-03misc: remove __dev* attributes.Greg Kroah-Hartman1-1/+1
2012-12-12Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-6/+0
2012-11-29fix off-by-one in argument passed by iterate_fd() to callbacksAl Viro1-6/+8
2012-11-28kill daemonize()Al Viro1-6/+0
2012-11-18Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+0
2012-11-12kill bogus BUG_ON() in do_close_on_exec()Al Viro1-1/+0
2012-10-30Return the right error value when dup[23]() newfd argument is too largeAl Viro1-2/+2
2012-10-09dup3: Return an error when oldfd == newfd.Richard W.M. Jones1-0/+3
2012-09-26export fget_lightAl Viro1-0/+1
2012-09-26new helper: daemonize_descriptors()Al Viro1-0/+6
2012-09-26new helper: iterate_fd()Al Viro1-0/+21
2012-09-26make expand_files() and alloc_fd() staticAl Viro1-2/+2
2012-09-26take __{set,clear}_{open_fd,close_on_exec}() into fs/file.cAl Viro1-0/+20
2012-09-26new helper: replace_fd()Al Viro1-29/+62
2012-09-26take purely descriptor-related stuff from fcntl.c to file.cAl Viro1-0/+132
2012-09-26take close-on-exec logics to fs/file.c, clean it up a bitAl Viro1-0/+37
2012-09-26take descriptor-related part of close() to file.cAl Viro1-0/+26
2012-09-26take fget() and friends to fs/file.cAl Viro1-0/+106
2012-09-26expose a low-level variant of fd_install() for binderAl Viro1-2/+14
2012-09-26move put_unused_fd() and fd_install() to fs/file.cAl Viro1-0/+44
2012-09-26trim free_fdtable_rcu()Al Viro1-15/+2
2012-09-26don't bother with call_rcu() in put_files_struct()Al Viro1-9/+5
2012-09-26move files_struct-related bits from kernel/exit.c to fs/file.cAl Viro1-1/+99
2012-09-26new helper: __alloc_fd()Al Viro1-4/+8
2012-09-26take rlimit check to callers of expand_files()Al Viro1-7/+9
2012-09-26make get_unused_fd_flags() a functionAl Viro1-3/+3
2012-03-29Merge branch 'x86-x32-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-27/+25
2012-02-28fs: reduce the use of module.h wherever possiblePaul Gortmaker1-1/+1
2012-02-23fs: Fix close_on_exec pointer in alloc_fdtableBobby Powers1-1/+1
2012-02-19Replace the fd_sets in struct fdtable with an array of unsigned longsDavid Howells1-24/+22
2012-02-19Wrap accesses to the fd_sets in struct fdtableDavid Howells1-4/+4
2011-04-28vfs: avoid large kmalloc()s for the fdtableAndrew Morton1-7/+11
2010-08-11vfs: use kmalloc() to allocate fdmem if possibleChangli Gao1-34/+23
2010-06-14fs: remove all rcu head initializations, except on_stack initializationsPaul E. McKenney1-3/+0
2010-03-06fs: use rlimit helpersJiri Slaby1-1/+1
2010-02-25vfs: Apply lockdep-based checking to rcu_dereference() usesPaul E. McKenney1-1/+1
2009-10-11headers: remove sched.h from interrupt.hAlexey Dobriyan1-0/+1
2008-08-01[PATCH] merge locate_fd() and get_unused_fd()Al Viro1-0/+61
2008-07-26[PATCH] fix RLIM_NOFILE handlingAl Viro1-0/+9
2008-05-16[PATCH] avoid multiplication overflows and signedness issues for max_fdsAl Viro1-0/+4
2008-05-16[PATCH] dup_fd() part 4 - race fixAl Viro1-2/+8
2008-05-16[PATCH] dup_fd() - part 3Al Viro1-28/+15
2008-05-16[PATCH] dup_fd() part 2Al Viro1-8/+16
2008-05-16[PATCH] dup_fd() fixes, part 1Al Viro1-0/+130
2008-05-16[PATCH] take init_files to fs/file.cAl Viro1-0/+13
2008-05-01[PATCH] fix sysctl_nr_open bugsAl Viro1-2/+20
2008-05-01[PATCH] split linux/file.hAl Viro1-0/+1
2008-02-06get rid of NR_OPEN and introduce a sysctl_nr_openEric Dumazet1-3/+5
2006-12-22[PATCH] fdtable: Provide free_fdtable() wrapperVadim Lobanov1-1/+1
2006-12-10[PATCH] fdtable: Implement new pagesize-based fdtable allocatorVadim Lobanov1-136/+72
2006-12-10[PATCH] fdtable: Remove the free_files fieldVadim Lobanov1-19/+8
2006-12-10[PATCH] fdtable: Make fdarray and fdsets equal in sizeVadim Lobanov1-34/+22
2006-12-07[PATCH] file: kill unnecessary timer in fdtable_deferTejun Heo1-27/+2
2006-11-22WorkStruct: Pass the work_struct pointer instead of context dataDavid Howells1-2/+4
2006-09-29[PATCH] expand_fdtable(): remove pointless unlock+lockAndrew Morton1-2/+0
2006-09-29[PATCH] Clean up expand_fdtable() and expand_files()Vadim Lobanov1-41/+35
2006-09-27[PATCH] alloc_fdtable() cleanupAndrew Morton1-4/+2
2006-07-12[PATCH] alloc_fdtable() expansion fixAndrew Morton1-1/+1
2006-07-12[PATCH] fix fdset leakageKirill Korotaev1-1/+3
2006-07-10[PATCH] fix weird logic in alloc_fdtable()Andrew Morton1-7/+3
2006-03-28[PATCH] for_each_possible_cpu: fixes for generic partKAMEZAWA Hiroyuki1-1/+1
2006-03-23[PATCH] Shrinks sizeof(files_struct) and better layoutEric Dumazet1-20/+14
2006-02-05[PATCH] percpu data: only iterate over possible CPUsEric Dumazet1-2/+1
2005-09-14[PATCH] Fix the fdtable freeing in the case of vmalloced fdset/arraysDipankar Sarma1-7/+3
2005-09-09[PATCH] files: files struct with RCUDipankar Sarma1-131/+258
2005-09-09[PATCH] files: break up files structDipankar Sarma1-17/+25
2005-04-16Linux-2.6.12-rc2v2.6.12-rc2Linus Torvalds1-0/+254