Linux内核重大事故:ext4数据损坏

由于从6.5内核移植到其他稳定版的补丁出现严重BUG,导致最近3周发布的内核出现ext4数据错误

受影响的内核版本:


- Stable kernels < 6.5 are affected if they have 91562895f803 (ext4 commit)
- Kernels >= 6.5 are not affected, as they will _also_ have 936e114a245b6 

6.1.64
6.1.65
5.15.141
5.15.140
5.10.202
5.10.201

如何确定自己使用的内核受到影响


由于存在不确定性,建议自测

# build the test binary
git clone https://github.com/linux-test-project/ltp/
cd ltp
make autotools
./configure
cd testcases/kernel/syscalls/preadv
make

# you need to run the test as root (manages loop devices)
# you can copy it and run on another machine with compatible libc
# not sure if it's production-friendly!
env LTP_SINGLE_FS_TYPE=ext4 LTP_DEV_FS_TYPE=ext4 ./preadv03_64

个人评价


此内核BUG非常严重,导致debian 12.3难产,debian直接发行12.4版本。
建议所有用户尽快更新内核

来源: https://lwn.net/Articles/954285/

此处评论已关闭