fs: remove hpfs filesystem
Subsystems (3)
cover fs: remove hpfs filesystem
The HPFS filesystem driver has been orphaned and unmaintained for a long time. An RFC on linux-fsdevel stated that HPFS is about to be removed as it has no remaining users and is no longer supported on SMP or PREEMPT kernels. Recent vulnerabilities (e.g., CVE-2026-97486) further highlight the lack of maintenance.
This patch removes the driver along with its Kconfig entry, documentation, and CREDITS entries. The HPFS_SUPER_MAGIC value in include/uapi/linux/magic.h is kept for userspace ABI compatibility, and defconfig cleanups will be sent separately to the respective architecture maintainers.
Breno Rodrigues Alves (1):
fs: remove hpfs filesystem
CREDITS | 2 - Documentation/filesystems/hpfs.rst | 353 --------- Documentation/filesystems/index.rst | 1 - MAINTAINERS | 6 - fs/Kconfig | 1 - fs/Makefile | 1 - fs/hpfs/Kconfig | 17 - fs/hpfs/Makefile | 9 - fs/hpfs/alloc.c | 582 -------------- fs/hpfs/anode.c | 498 ------------ fs/hpfs/buffer.c | 232 ------ fs/hpfs/dentry.c | 62 -- fs/hpfs/dir.c | 331 -------- fs/hpfs/dnode.c | 1095 --------------------------- fs/hpfs/ea.c | 368 --------- fs/hpfs/file.c | 276 ------- fs/hpfs/hpfs.h | 579 -------------- fs/hpfs/hpfs_fn.h | 379 --------- fs/hpfs/inode.c | 318 -------- fs/hpfs/map.c | 335 -------- fs/hpfs/name.c | 114 --- fs/hpfs/namei.c | 621 --------------- fs/hpfs/super.c | 789 ------------------- 23 files changed, 6969 deletions(-) delete mode 100644 Documentation/filesystems/hpfs.rst delete mode 100644 fs/hpfs/Kconfig delete mode 100644 fs/hpfs/Makefile delete mode 100644 fs/hpfs/alloc.c delete mode 100644 fs/hpfs/anode.c delete mode 100644 fs/hpfs/buffer.c delete mode 100644 fs/hpfs/dentry.c delete mode 100644 fs/hpfs/dir.c delete mode 100644 fs/hpfs/dnode.c delete mode 100644 fs/hpfs/ea.c delete mode 100644 fs/hpfs/file.c delete mode 100644 fs/hpfs/hpfs.h delete mode 100644 fs/hpfs/hpfs_fn.h delete mode 100644 fs/hpfs/inode.c delete mode 100644 fs/hpfs/map.c delete mode 100644 fs/hpfs/name.c delete mode 100644 fs/hpfs/namei.c delete mode 100644 fs/hpfs/super.c
Signature · 1 line
2.56.0
PATCH 1/1 fs: remove hpfs filesystem
The HPFS filesystem driver has been orphaned and unmaintained for a long time. An RFC on linux-fsdevel stated that HPFS is about to be removed as it has no remaining users and is no longer supported on SMP or PREEMPT kernels.
Recent vulnerabilities (e.g., CVE-2026-97486) highlight the lack of maintenance and robustness of this code. Remove the driver entirely, along with its Kconfig entry, documentation, and CREDITS entries.
The HPFS_SUPER_MAGIC value in include/uapi/linux/magic.h is kept for userspace ABI compatibility. Defconfig cleanups will be sent separately to the respective architecture maintainers.
--- CREDITS | 2 - Documentation/filesystems/hpfs.rst | 353 --------- Documentation/filesystems/index.rst | 1 - MAINTAINERS | 6 - fs/Kconfig | 1 - fs/Makefile | 1 - fs/hpfs/Kconfig | 17 - fs/hpfs/Makefile | 9 - fs/hpfs/alloc.c | 582 -------------- fs/hpfs/anode.c | 498 ------------ fs/hpfs/buffer.c | 232 ------ fs/hpfs/dentry.c | 62 -- fs/hpfs/dir.c | 331 -------- fs/hpfs/dnode.c | 1095 --------------------------- fs/hpfs/ea.c | 368 --------- fs/hpfs/file.c | 276 ------- fs/hpfs/hpfs.h | 579 -------------- fs/hpfs/hpfs_fn.h | 379 --------- fs/hpfs/inode.c | 318 -------- fs/hpfs/map.c | 335 -------- fs/hpfs/name.c | 114 --- fs/hpfs/namei.c | 621 --------------- fs/hpfs/super.c | 789 ------------------- 23 files changed, 6969 deletions(-) delete mode 100644 Documentation/filesystems/hpfs.rst delete mode 100644 fs/hpfs/Kconfig delete mode 100644 fs/hpfs/Makefile delete mode 100644 fs/hpfs/alloc.c delete mode 100644 fs/hpfs/anode.c delete mode 100644 fs/hpfs/buffer.c delete mode 100644 fs/hpfs/dentry.c delete mode 100644 fs/hpfs/dir.c delete mode 100644 fs/hpfs/dnode.c delete mode 100644 fs/hpfs/ea.c delete mode 100644 fs/hpfs/file.c delete mode 100644 fs/hpfs/hpfs.h delete mode 100644 fs/hpfs/hpfs_fn.h delete mode 100644 fs/hpfs/inode.c delete mode 100644 fs/hpfs/map.c delete mode 100644 fs/hpfs/name.c delete mode 100644 fs/hpfs/namei.c delete mode 100644 fs/hpfs/super.c
CREDITS +0 -2
@@ -3166,7 +3166,6 @@ N: Mikulas Patocka E: [email protected] W: https://artax.karlin.mff.cuni.cz/~mikulas/ P: 1024/BB11D2D5 A0 F1 28 4A C4 14 1E CF 92 58 7A 8F 69 BC A4 D3 -D: Read/write HPFS filesystem S: Weissova 8 S: 644 00 Brno S: Czech Republic
@@ -3872,7 +3871,6 @@ D: portions of the Linux Security Module (LSM) framework and security modules N: Chris Smith E: [email protected] -D: Read only HPFS filesystem S: Richardson, Texas S: USA
Documentation/filesystems/hpfs.rst deleted +0 -353
353 lines not on this page · raw message
Documentation/filesystems/index.rst +0 -1
@@ -94,7 +94,6 @@ Documentation for filesystem implementations. gfs2/index hfs hfsplus - hpfs fuse/index inotify isofs
MAINTAINERS +0 -6
@@ -12063,12 +12063,6 @@ S: Orphan F: arch/x86/include/asm/hpet.h F: arch/x86/kernel/hpet.c -HPFS FILESYSTEM -M: Mikulas Patocka <[email protected]> -S: Maintained -W: http://artax.karlin.mff.cuni.cz/~mikulas/vyplody/hpfs/index-e.cgi -F: fs/hpfs/ - HS3001 Hardware Temperature and Humidity Sensor M: Andre Werner <[email protected]> L: [email protected]
fs/Kconfig +0 -1
@@ -321,7 +321,6 @@ source "fs/cramfs/Kconfig" source "fs/squashfs/Kconfig" source "fs/minix/Kconfig" source "fs/omfs/Kconfig" -source "fs/hpfs/Kconfig" source "fs/qnx4/Kconfig" source "fs/qnx6/Kconfig" source "fs/resctrl/Kconfig"
fs/Makefile +0 -1
@@ -87,7 +87,6 @@ obj-$(CONFIG_LOCKD) += lockd/ obj-$(CONFIG_NLS) += nls/ obj-y += unicode/ obj-$(CONFIG_SMBFS) += smb/ -obj-$(CONFIG_HPFS_FS) += hpfs/ obj-$(CONFIG_NTFS_FS) += ntfs/ obj-$(CONFIG_NTFS3_FS) += ntfs3/ obj-$(CONFIG_UFS_FS) += ufs/
fs/hpfs/Kconfig deleted +0 -17
@@ -1,17 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -config HPFS_FS - tristate "OS/2 HPFS file system support" - depends on BLOCK - select BUFFER_HEAD - select FS_IOMAP - help - OS/2 is IBM's operating system for PC's, the same as Warp, and HPFS - is the file system used for organizing files on OS/2 hard disk - partitions. Say Y if you want to be able to read files from and - write files to an OS/2 HPFS partition on your hard drive. OS/2 - floppies however are in regular MSDOS format, so you don't need this - option in order to be able to read them. Read - <file:Documentation/filesystems/hpfs.rst>. - - To compile this file system support as a module, choose M here: the - module will be called hpfs. If unsure, say N.
fs/hpfs/Makefile deleted +0 -9
@@ -1,9 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -# -# Makefile for the Linux hpfs filesystem routines. -# - -obj-$(CONFIG_HPFS_FS) += hpfs.o - -hpfs-objs := alloc.o anode.o buffer.o dentry.o dir.o dnode.o ea.o file.o \ - inode.o map.o name.o namei.o super.o
fs/hpfs/alloc.c deleted +0 -582
582 lines not on this page · raw message
fs/hpfs/anode.c deleted +0 -498
498 lines not on this page · raw message
fs/hpfs/buffer.c deleted +0 -232
232 lines not on this page · raw message
fs/hpfs/dentry.c deleted +0 -62
62 lines not on this page · raw message
fs/hpfs/dir.c deleted +0 -331
331 lines not on this page · raw message
fs/hpfs/dnode.c deleted +0 -1095
869 lines not on this page · raw message
fs/hpfs/ea.c deleted +0 -368
368 lines not on this page · raw message
fs/hpfs/file.c deleted +0 -276
276 lines not on this page · raw message
fs/hpfs/hpfs.h deleted +0 -579
579 lines not on this page · raw message
fs/hpfs/hpfs_fn.h deleted +0 -379
379 lines not on this page · raw message
fs/hpfs/inode.c deleted +0 -318
318 lines not on this page · raw message
fs/hpfs/map.c deleted +0 -335
335 lines not on this page · raw message
fs/hpfs/name.c deleted +0 -114
114 lines not on this page · raw message
fs/hpfs/namei.c deleted +0 -621
621 lines not on this page · raw message
fs/hpfs/super.c deleted +0 -789
789 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.56.0
Part of the diff is not shown here. View the raw message.
Hi
I am still using HPFS. I have some data on it that I share with OS/2.
Quoted 4 lines · Breno Rodrigues Alves
The HPFS filesystem driver has been orphaned and unmaintained for a long time. An RFC on linux-fsdevel stated that HPFS is about to be removed as it has no remaining users and is no longer supported on SMP or PREEMPT kernels.
This was a problem back in the kernels 2.6.*. I fixed it long time ago (see the commit 7dd29d8d865efdb00c0542a5d2c87af8c52ea6c7 and the merge 7f4238a0ef8858e1f9b02a874b5818f6e9846673).
I am using it with SMP and PREEMPT, it does nothing weird. It just locks everything with a per-filesystem mutex.
Quoted 2 lines
Recent vulnerabilities (e.g.,
CVE-2026-97486) further highlight the lack of maintenance.
This is a regular bug, not a security bug. You can't gain unauthorized access throught this.
Mikulas
Quoted 55 lines
This patch removes the driver along with its
Kconfigentry, documentation, and CREDITS entries. TheHPFS_SUPER_MAGICvalue ininclude/uapi/linux/magic.his kept for userspace ABI compatibility, and defconfig cleanups will be sent separately to the respective architecture maintainers.Breno Rodrigues Alves (1):
fs: remove hpfs filesystemCREDITS | 2 - Documentation/filesystems/hpfs.rst | 353 --------- Documentation/filesystems/index.rst | 1 - MAINTAINERS | 6 - fs/Kconfig | 1 - fs/Makefile | 1 - fs/hpfs/Kconfig | 17 - fs/hpfs/Makefile | 9 - fs/hpfs/alloc.c | 582 -------------- fs/hpfs/anode.c | 498 ------------ fs/hpfs/buffer.c | 232 ------ fs/hpfs/dentry.c | 62 -- fs/hpfs/dir.c | 331 -------- fs/hpfs/dnode.c | 1095 --------------------------- fs/hpfs/ea.c | 368 --------- fs/hpfs/file.c | 276 ------- fs/hpfs/hpfs.h | 579 -------------- fs/hpfs/hpfs_fn.h | 379 --------- fs/hpfs/inode.c | 318 -------- fs/hpfs/map.c | 335 -------- fs/hpfs/name.c | 114 --- fs/hpfs/namei.c | 621 --------------- fs/hpfs/super.c | 789 ------------------- 23 files changed, 6969 deletions(-) delete mode 100644 Documentation/filesystems/hpfs.rst delete mode 100644 fs/hpfs/Kconfig delete mode 100644 fs/hpfs/Makefile delete mode 100644 fs/hpfs/alloc.c delete mode 100644 fs/hpfs/anode.c delete mode 100644 fs/hpfs/buffer.c delete mode 100644 fs/hpfs/dentry.c delete mode 100644 fs/hpfs/dir.c delete mode 100644 fs/hpfs/dnode.c delete mode 100644 fs/hpfs/ea.c delete mode 100644 fs/hpfs/file.c delete mode 100644 fs/hpfs/hpfs.h delete mode 100644 fs/hpfs/hpfs_fn.h delete mode 100644 fs/hpfs/inode.c delete mode 100644 fs/hpfs/map.c delete mode 100644 fs/hpfs/name.c delete mode 100644 fs/hpfs/namei.c delete mode 100644 fs/hpfs/super.cSignature · 1 line
2.56.0