Fork us on GitHub Follow us on Google+ Follow us on Facebook Follow us on Twitter

Opened 7 years ago

Closed 7 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:

Description

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 7 years ago.
Screenshot of the problem

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by Martin Sucha

Attachment: mapping1-fail.png added

Screenshot of the problem

comment:1 Changed 7 years ago by Jakub Jermář

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 Changed 7 years ago by Jakub Jermář

Resolution: fixed
Status: newclosed

Fix merged in mainline,1397.

Note: See TracTickets for help on using tickets.