diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-10-19 17:35:50 -1000 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-10-19 17:35:50 -1000 |
| commit | a1d4585be12feb09b3e66d312ceb200234164660 (patch) | |
| tree | a8dffabc247184cacf5c5ef6fa3a8b159bc74977 /tools/lib/python/kdoc/parse_data_structs.py | |
| parent | ada21d495ccedc37e165d3c7da12a9ae4160ad81 (diff) | |
| parent | fae37d5e3c4e94aef334825ab89f66efcfe489b2 (diff) | |
| download | linux-next-a1d4585be12feb09b3e66d312ceb200234164660.tar.gz linux-next-a1d4585be12feb09b3e66d312ceb200234164660.zip | |
Merge tag 'vfs-7.4-rc1.file' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
Pull file table updates from Christian Brauner:
"This annotates struct fdtable's fd array with __counted_by_ptr so
KASAN and the fortified functions can bounds check it against max_fds
and adds a KUnit suite for fdtable. A follow-up uses __struct_size()
in the test since sparse doesn't know __builtin_dynamic_object_size().
FD_PREPARE() is simplified. It was built as an ACQUIRE-style guard on
infrastructure that was never needed. The ACQUIRE machinery and
CLASS_INIT() go away, the variable is declared with __cleanup()
directly, struct fd_prepare loses its err field since the fd either
holds the descriptor or the error, and callers get a const pointer to
the guard behind a UNIQUE_ID() name so they can't shadow it. Code
generation is identical"
* tag 'vfs-7.4-rc1.file' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs:
file: make struct fd_prepare const and kill its err field
cleanup: remove CLASS_INIT()
file: declare the FD_PREPARE() variable with __cleanup() directly
file: simplify FD_PREPARE()
vfs: use __struct_size() in the fdtable KUnit test
vfs: Add KUnit tests for fdtable
vfs: Annotate struct fdtable's fd field with __counted_by_ptr
Diffstat (limited to 'tools/lib/python/kdoc/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions
