Opened 12 years ago

Closed 12 years ago

#412 closed defect (fixed)

Kernel test mapping1 fails

Reported by: Martin Sucha Owned by: Jakub Jermář
Priority: major Milestone: 0.5.0
Component: helenos/kernel/amd64 Version: mainline
Keywords: Cc:
Blocker for: Depends on:
See also:


Running test mapping1 from kconsole causes kernel panic on amd64.
The issue is not reproducible on ia32.

HelenOS: mainline,1396
Platform: amd64
QEMU: QEMU PC emulator version 0.12.5 (qemu-kvm-0.12.5)

Attachments (1)

mapping1-fail.png (28.2 KB ) - added by Martin Sucha 12 years ago.
Screenshot of the problem

Download all attachments as: .zip

Change History (3)

by Martin Sucha, 12 years ago

Attachment: mapping1-fail.png added

Screenshot of the problem

comment:1 by Jakub Jermář, 12 years ago

iswithin() calculates the end address by summing the base address and the size. The argument is 64-bit, so there will be no overflow on 32-bit systems. But on 64-bit systems, there may be an overflow. This is what happens in the 64-bit version of ra_free(), for example on amd64, when the respective span uses up the end of the address space.

comment:2 by Jakub Jermář, 12 years ago

Resolution: fixed
Status: newclosed

Fix merged in mainline,1397.

Note: See TracTickets for help on using tickets.