diff options
| author | Juergen Gross <[email protected]> | 2025-07-03 07:32:59 +0000 |
|---|---|---|
| committer | Juergen Gross <[email protected]> | 2025-07-14 15:10:09 +0000 |
| commit | 70045cf6593cbf0740956ea9b7b4269142c6ee38 (patch) | |
| tree | badc3dcc0471c3b7d0a46aeb9b92a660383620ad /drivers/net/xen-netfront.c | |
| parent | xen: fix UAF in dmabuf_exp_from_pages() (diff) | |
| download | kernel-70045cf6593cbf0740956ea9b7b4269142c6ee38.tar.gz kernel-70045cf6593cbf0740956ea9b7b4269142c6ee38.zip | |
xen/gntdev: remove struct gntdev_copy_batch from stack
When compiling the kernel with LLVM, the following warning was issued:
drivers/xen/gntdev.c:991: warning: stack frame size (1160) exceeds
limit (1024) in function 'gntdev_ioctl'
The main reason is struct gntdev_copy_batch which is located on the
stack and has a size of nearly 1kb.
For performance reasons it shouldn't by just dynamically allocated
instead, so allocate a new instance when needed and instead of freeing
it put it into a list of free structs anchored in struct gntdev_priv.
Fixes: a4cdb556cae0 ("xen/gntdev: add ioctl for grant copy")
Reported-by: Abinash Singh <[email protected]>
Reviewed-by: Stefano Stabellini <[email protected]>
Signed-off-by: Juergen Gross <[email protected]>
Message-ID: <[email protected]>
Diffstat (limited to 'drivers/net/xen-netfront.c')
0 files changed, 0 insertions, 0 deletions
