summaryrefslogtreecommitdiff
path: root/Ports/mbedtls
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2021-06-16 18:20:25 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-18 10:15:14 +0200
commit9559ac9dd63c7d4ef40b964cbf341612b4d60ab6 (patch)
treee99bcab1f3501cc8cdc1b890afdfd935d0d07ce9 /Ports/mbedtls
parent8cd96f031d5f826a5f5b67ef3dcf6a9d4341ed95 (diff)
downloadserenity-9559ac9dd63c7d4ef40b964cbf341612b4d60ab6.zip
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.
Diffstat (limited to 'Ports/mbedtls')
0 files changed, 0 insertions, 0 deletions