mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:46:16 +00:00
0b364cf53b
In psnet_open_pf_bar() and snet_open_vf_bar() a string later passed to
pcim_iomap_regions() is placed on the stack. Neither
pcim_iomap_regions() nor the functions it calls copy that string.
Should the string later ever be used, this, consequently, causes
undefined behavior since the stack frame will by then have disappeared.
Fix the bug by allocating the strings on the heap through
devm_kasprintf().
Cc: stable@vger.kernel.org # v6.3
Fixes:
|
||
---|---|---|
.. | ||
Makefile | ||
snet_ctrl.c | ||
snet_hwmon.c | ||
snet_main.c | ||
snet_vdpa.h |