blob: 6b90a5124013a79ef12844193346295dac9b189f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
The bug report describes an issue where the file `/proc/self/auxv` returns zero bytes when read using QEMU's user mode emulation, causing tools like `cat` and procps-ng to malfunction or segfault. The problem was introduced in a specific commit and affects newer versions of QEMU.
From the analysis:
- **Symptom**: Reading from `/proc/self/auxv` yields 0 bytes instead of the expected data.
- **Impact**: Tools relying on this file may crash or enter infinite loops.
- **Investigation**: A `git bisect` identified a specific commit as the source, and logging showed unexpected values for `len`, possibly due to an integer overflow or sign issue.
**Key Analysis**:
1. The affected code is part of QEMU's user-mode emulation, specifically in handling syscalls related to `/proc/self/auxv`.
2. The issue manifests during runtime when accessing the file.
3. The problem likely stems from a logic error (e.g., incorrect length calculation or sign handling) rather than an instruction-level fault.
**Categorization**:
The bug primarily relates to how QEMU handles syscalls, particularly in intercepting and providing content for `/proc/self/auxv`. It involves incorrect behavior during runtime due to a faulty system call implementation.
**Answer**: syscall
|