stack smashing detected with 'nvme sanitize-log /dev/nvme0'

Christoph Hellwig hch at lst.de
Mon Sep 25 08:19:50 PDT 2023


On Mon, Sep 25, 2023 at 05:09:16PM +0200, Daniel Wagner wrote:
> > The device just seems completely broken unfortunately.
> 
> Just a follow up on this. I've update nvme-cli so that all payloads are
> allocated via the nvme_alloc() helper which ensures that the payloads
> start at a 4k boundary and the buffer is multiple of 4k. This should
> address this issue.

It does not address the issue, it just works around it.   I think we
need a kernel level quirk to make sure we never issue commands that
cause these devices to act so broken to them, as the stack smashing is
a security problem.



More information about the Linux-nvme mailing list