Skip to content

[Bug] gef is slow while debugging kernel in qemu #978

@WHW0x455

Description

@WHW0x455

GEF+GDB version

gef: 2023.04 release
gdb: GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1

Operating System

Ubuntu 22.04.2 LTS

Describe the issue you encountered

Gdb with gef is slow when debugging kernel in qemu (with command gef-remote --qemu-user --qemu-binary ./vmlinux localhost 1234).

Do you read the docs and look at previously closed issues/PRs for similar cases?

Yes

Architecture impacted

  • X86
  • X64
  • ARM
  • ARM64
  • MIPS
  • MIPS64
  • PPC
  • PPC64
  • RISCV

Describe your issue. Without a proper reproduction step-by-step, your issue will be ignored.

  1. downlaod the challenge (https://github.com/Crusaders-of-Rust/corCTF-2022-public-challenge-archive/tree/master/pwn/cache-of-castaways)
  2. extract the vmlinux elf from bzImage.
  3. start the kernel with qemu with the run script. (and add -s in qemu args)
  4. start gdb, execute gef-remote --qemu-user --qemu-binary ./vmlinux localhost 1234
  5. normally debug the kernel, execute sth. like si. This is slow.

Minimalist test case

No response

Additional context?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions