You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: [email protected] # v6.3
Fixes: 51a8f9d ("virtio: vdpa: new SolidNET DPU driver.")
Reported-by: Christophe JAILLET <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Suggested-by: Andy Shevchenko <[email protected]>
Signed-off-by: Philipp Stanner <[email protected]>
Reviewed-by: Stefano Garzarella <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
0 commit comments