kernel crashes on binary possibly containing ARMv7 opcodes

Bug #1049503 reported by Jonathan Schleifer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Raspbian
Invalid
Undecided
Unassigned

Bug Description

When launching the following binary, the kernel crashes:
https://webkeks.org/crash_kernel.gz

This binary *does* contain the ARMv7 opcode movw, however, a version without this opcode shows the same behaviour.

This binary was simply produced by compiling ObjFW using Clang 3.1 (built from source, as the Clang included in Raspbian is broken - but this is another bug).

Revision history for this message
Jonathan Schleifer (midar) wrote :

Oh, FWIW, I started it in gdb and set a breakpoint on main - it is never even reached, the kernel crashes even before that, most likely because of an __attribute__((constructor)). I haven't found a way yet to break on the entry point and single step from there.

Revision history for this message
peter green (plugwash) wrote :

Is this still reproducable with a recent kernel? (and if so what kernel exactly?)

Revision history for this message
Jonathan Schleifer (midar) wrote :

Yes, this is still happening with 3.6.11+. Just download the linked executable (I still host it there), gunzip it, chmod +x it, run it and see your kernel crash. All it does is issue invalid opcodes. The kernel does not send a SIGILL like it is supposed to, but instead choses to crash.

Revision history for this message
peter green (plugwash) wrote :

Have you reported this to the raspberry pi foundation kernel guys? (iirc they track their bugs on github)

Revision history for this message
Diederik (didi-debian) wrote :

As peter green already indicated, it should be reported at: https://github.com/raspberrypi/linux/issues/

As this is not a raspbian.org bug, I'm marking it as invalid.

Changed in raspbian:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.