Re: [PATCH 5/9] x86/dumpstack: Improve opcodes dumping in the Code: section

From: Linus Torvalds
Date: Tue Mar 06 2018 - 13:48:02 EST


On Tue, Mar 6, 2018 at 1:49 AM, Borislav Petkov <bp@xxxxxxxxx> wrote:
>
> Make it read the whole buffer of code_bytes size in one go. By default
> use a statically allocated 64 bytes buffer. If "code_bytes=" is supplied
> on the cmdline a new buffer gets allocated.

Are these always serialized? For oopses, I think we end up serializing
with die_lock, but is that always the case?

Maybe at least a comment about why a static allocation is ok?

Linus