Skip to content
Commit 25fe2c9c authored by Jakub Kicinski's avatar Jakub Kicinski
Browse files

smc: fix out of bound access in smc_nl_get_sys_info()



smc_clc_get_hostname() sets the host pointer to a buffer
which is not NULL-terminated (see smc_clc_init()).

Reported-by: default avatar <syzbot+f4708c391121cfc58396@syzkaller.appspotmail.com>
Fixes: 099b990b ("net/smc: Add support for obtaining system information")
Signed-off-by: default avatarKarsten Graul <kgraul@linux.ibm.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 584c19f9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment