🇰🇷 한글 설명
Linux 커널의 EROFS 파일 시스템에서 fscache 백엔드 기능이 완전히 제거되었습니다. 기존의 fscache 방식은 netfs에 대한 의존성 문제와 유연성 부족으로 인해 이미 2년 전부터 사용이 권장되지 않았으며, 이를 fanotify pre-content hooks 방식으로 대체하기 위해 해당 코드를 삭제했습니다.
💡 쉬운 설명
파일을 불러오는 방식 중 하나였던 오래되고 복잡한 기능을 더 효율적인 최신 방식으로 바꾸기 위해 삭제한 것입니다. 보안 취약점을 고치는 것이 아니라, 불필요하고 복잡한 코드를 정리하여 시스템을 더 깔끔하게 만드는 작업입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
erofs: remove fscache backend entirely
EROFS over fscache was introduced to provide image lazy pulling
functionality. After the feature landed, the fscache subsystem made
netfs a new hard dependency, which is unexpected for a local filesystem
and has an kernel-defined caching hierarchy which could be inflexible
compared to the fanotify pre-content hooks. Therefore, this feature has
been deprecated for almost two years.
As EROFS file-backed mounts and fanotify pre-content hooks both upstream
for a while and already providing equivalent functionality (erofs-utils
has supported fanotify pre-content hooks), let's remove the fscache
backend now.
The main application of this feature is Nydus [1], and they plan to move
to use fanotify pre-content hooks in the near future too.
I hope this patch can be merged into Linux 7.2, which is also motivated
by newly found implementation issues [2][3] that are not worth
investigating given the deprecation and limited development resources.
The associated fscache/cachefiles cleanup patch will follow separately
through the vfs tree (netfs) later: it seems fine since the codebase is
isolated by CONFIG_CACHEFILES_ONDEMAND.
[1] https://github.com/dragonflyoss/nydus/blob/v2.1.0/docs/nydus-fscache.md
[2] https://github.com/dragonflyoss/nydus/pull/1824
[3] https://lore.kernel.org/r/
[email protected]
📍 영향받는 시스템
Linux kernel (fscache backend enabled EROFS implementation)
⚔️ 공격 벡터
해당 사항 없음 (취약점이 아닌 기능 제거 및 코드 정리 사항임)
🛡️ 대응 방법
최신 Linux 커널 버전(7.2 이상 권장)으로 업데이트하여 개선된 기능을 사용하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 패치가 적용된 최신 버전인지 확인합니다.