[dm-devel] [PATCH] dm ioctl: prevent stack leak in dm ioctl call

Alasdair G Kergon agk at redhat.com
Thu Apr 27 15:43:48 UTC 2017


On Tue, Apr 25, 2017 at 05:33:19PM -0700, Adrian Salido wrote:
> Will update the patch to be clear
 
So at the moment, we're leaning towards just:

  param->data_size = offsetof(struct dm_ioctl, data)

to replace

  param->data_size = sizeof(*param);

in the caller.

Alasdair




More information about the dm-devel mailing list