🇰🇷 한글 설명
Linux 커널 __read_vmcore 함수에서 발생하는 softlockup 문제를 해결하는 패치입니다. 메모리 제약 환경의 kdump 이미지에서 softlockup이 발생하면 RCU 메모리 해제를 방해하여 크래시덤프가 멈출 수 있으며, 두 번째 루프에 cond_resched()를 추가하여 CPU 스케줄링 기회를 제공합니다.
💡 쉬운 설명
Linux 시스템의 메모리 덤프 생성 중에 시스템이 무한 반복에 빠져 응답하지 않는 문제가 있었습니다. 이를 해결하기 위해 코드에 작은 일시 정지를 추가하여 다른 중요한 작업이 실행될 기회를 제공합니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
fs/proc: fix softlockup in __read_vmcore (part 2)
Since commit 5cbcb62dddf5 ("fs/proc: fix softlockup in __read_vmcore") the
number of softlockups in __read_vmcore at kdump time have gone down, but
they still happen sometimes.
In a memory constrained environment like the kdump image, a softlockup is
not just a harmless message, but it can interfere with things like RCU
freeing memory, causing the crashdump to get stuck.
The second loop in __read_vmcore has a lot more opportunities for natural
sleep points, like scheduling out while waiting for a data write to
happen, but apparently that is not always enough.
Add a cond_resched() to the second loop in __read_vmcore to (hopefully)
get rid of the softlockups.
📍 영향받는 시스템
Linux kernel 5.cbcb62dddf5 버전 이후 (kdump 환경 사용 시스템)
⚔️ 공격 벡터
보안 취약점이 아닌 시스템 안정성 개선 패치입니다.
🛡️ 대응 방법
Linux 커널을 최신 안정화 버전으로 업그레이드하세요.
🔧 검증 코드
현재 Linux 커널 버전이 출력되며, 최신 커널로 업그레이드되었는지 확인할 수 있습니다.