Linux(20)
-
커널 패닉 원인 찾는 방법
/ # ping 127.0.0.1PING 127.0.0.1 (127.0.0.1): 56 data bytes[ 291.469783] BUG: kernel NULL pointer dereference, address: 0000000000000000[ 291.472826] #PF: supervisor read access in kernel mode[ 291.473058] #PF: error_code(0x0000) - not-present page[ 291.473268] PGD 5c10067 P4D 5c10067 PUD 5c9e067 PMD 0 [ 291.473883] Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI[ 291.474263] CPU: 0 PID: 85 Comm: ..
2025.12.09 -
QEMU와 GDB로 Linux 커널 디버깅하기
Claud AI로 정리한 저장용 내용입니다. (고마워요 클로드 선생님)목차환경 준비커널 빌드initramfs 생성QEMU로 커널 실행GDB 디버깅실전 디버깅 팁문제 해결환경 준비필수 패키지 설치sudo apt-get updatesudo apt-get install -y \ qemu-system-x86 \ gdb \ busybox-static \ build-essential \ flex \ bison \ libssl-dev \ libelf-dev커널 소스 다운로드wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.10.8.tar.xztar -xf linux-6.10.8.tar.xzcd linux-6.10.8커널 ..
2025.12.09 -
커널 내부 흐름 엿보기
(참고: https://d2.naver.com/helloworld/47667?nil_openapi=search) 다음 홈페이지를 통해 커널의 네트워크 스택 코드들을 분석할 수 있다[ https://elixir.bootlin.com/linux/v6.17.3/source/net/core/dev.c#L6228 ] 현재 이더넷 소켓 버퍼는 CPU 8에서 처리되고 있음netfilter Input 과정에서 보이는 함수들의 호출 구조를 확인해볼 수 있음
2025.11.10 -
Netfilter 이해하고 커널 모듈 만들기 2025.11.10
-
최소 기능 모듈 만들기 2025.11.10
-
개발 환경 설정 및 빌드 시스템 2025.11.10