1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:58:12 +00:00
serenity/Kernel/FileSystem
Tim Schumacher 9559ac9dd6 Kernel: Correctly decode proc_file_type from identifier
inode identifiers in ProcFS are encoded in a way that the parent ID is
shifted 12 bits to the left and the PID is shifted by 16 bits. This
means that the rightmost 12 bits are reserved for the file type or the
fd.

Since the to_fd and to_proc_file_type decoders only decoded the
rightmost 8 bits, decoded values would wrap around beyond values of 255,
resulting in a different value compared to what was originally encoded.
2021-06-18 10:15:14 +02:00
..
AnonymousFile.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
AnonymousFile.h Kernel: Make AnonymousFile::create API OOM safe 2021-06-01 23:14:40 +01:00
BlockBasedFileSystem.cpp Kernel: Remove the now defunct LOCKER(..) macro. 2021-04-25 09:38:27 +02:00
BlockBasedFileSystem.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Custody.cpp Kernel: Rename Custody::create() => try_create() 2021-05-28 11:23:00 +02:00
Custody.h Kernel: Rename Custody::create() => try_create() 2021-05-28 11:23:00 +02:00
DevFS.cpp Kernel: Remove various other uses of ssize_t 2021-06-16 21:29:36 +02:00
DevFS.h Kernel: Remove various other uses of ssize_t 2021-06-16 21:29:36 +02:00
DevPtsFS.cpp Kernel: Remove various other uses of ssize_t 2021-06-16 21:29:36 +02:00
DevPtsFS.h Kernel: Remove various other uses of ssize_t 2021-06-16 21:29:36 +02:00
ext2_fs.h Everywhere: "file name" => "filename" 2021-04-29 22:16:18 +02:00
ext2_types.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Ext2FileSystem.cpp Kernel: Remove obsolete size_t casts 2021-06-17 19:52:54 +02:00
Ext2FileSystem.h Kernel: Remove various other uses of ssize_t 2021-06-16 21:29:36 +02:00
FIFO.cpp Kernel: Remove the now defunct LOCKER(..) macro. 2021-04-25 09:38:27 +02:00
FIFO.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
File.cpp Kernel: Closing a file descriptor should not always close the file 2021-04-30 11:42:35 +02:00
File.h Kernel: Implement multi-watch InodeWatcher :^) 2021-05-12 22:38:20 +02:00
FileBackedFileSystem.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
FileBackedFileSystem.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
FileDescription.cpp Kernel: Remove various other uses of ssize_t 2021-06-16 21:29:36 +02:00
FileDescription.h Kernel: Remove various other uses of ssize_t 2021-06-16 21:29:36 +02:00
FileSystem.cpp Kernel: Expose FileSystem's fragment size 2021-05-19 21:33:29 +02:00
FileSystem.h Kernel: static vs non-static constexpr variables 2021-05-19 21:21:47 +01:00
Inode.cpp Kernel: Update check in Inode::read_entire 2021-06-17 19:52:54 +02:00
Inode.h Kernel: Remove various other uses of ssize_t 2021-06-16 21:29:36 +02:00
InodeFile.cpp Kernel: Change Inode::{read/write}_bytes interface to KResultOr<ssize_t> 2021-05-02 13:27:37 +02:00
InodeFile.h Kernel: Implement InodeFile::stat() and simplify FileDescription::stat() 2021-06-08 11:12:31 +02:00
InodeIdentifier.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
InodeMetadata.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
InodeWatcher.cpp Kernel: Make UserOrKernelBuffer R/W helpers return KResultOr<size_t> 2021-05-13 23:28:40 +02:00
InodeWatcher.h Kernel: Make InodeWatcher::crate API OOM safe 2021-05-13 16:21:53 +02:00
Plan9FileSystem.cpp Kernel: Remove obsolete size_t casts 2021-06-17 19:52:54 +02:00
Plan9FileSystem.h Kernel: Remove various other uses of ssize_t 2021-06-16 21:29:36 +02:00
ProcFS.cpp Kernel: Correctly decode proc_file_type from identifier 2021-06-18 10:15:14 +02:00
ProcFS.h Kernel: Remove various other uses of ssize_t 2021-06-16 21:29:36 +02:00
TmpFS.cpp Kernel: Remove various other uses of ssize_t 2021-06-16 21:29:36 +02:00
TmpFS.h Kernel: Remove various other uses of ssize_t 2021-06-16 21:29:36 +02:00
VirtualFileSystem.cpp Kernel: Don't assume there are no nodes if m_unveiled_paths.is_empty() 2021-06-08 12:15:04 +02:00
VirtualFileSystem.h Kernel: Don't assume there are no nodes if m_unveiled_paths.is_empty() 2021-06-08 12:15:04 +02:00