Re: [scsi] 6aded12b10: kernel_BUG_at_mm/usercopy.c

From: Christoph Hellwig
Date: Wed Mar 23 2022 - 03:14:29 EST


The actual warning is;

[ 34.496096][ T331] usercopy: Kernel memory overwrite attempt detected to spans multiple pages (off set 0, size 6)!

This is for the cmnd field in struct scsi_cmnd, which is allocated by
the block layer as part of the request allocator. So with a specific
packing it can legitimately span pages.

Kees: how can we annotate that this is ok?