diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2023-10-18 16:20:11 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-10-20 00:51:52 +0200 |
commit | 75a384ceda93df0ec2436f0188e58f166a609c49 (patch) | |
tree | 5898b6b90f76fcca58af712a03c3fbdc58b5cba1 /Documentation/netlink/genetlink-legacy.yaml | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net (diff) | |
download | linux-75a384ceda93df0ec2436f0188e58f166a609c49.tar.xz linux-75a384ceda93df0ec2436f0188e58f166a609c49.zip |
ptp: prevent string overflow
The ida_alloc_max() function can return up to INT_MAX so this buffer is
not large enough. Also use snprintf() for extra safety.
Fixes: 403376ddb422 ("ptp: add debugfs interface to see applied channel masks")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Link: https://lore.kernel.org/r/d4b1a995-a0cb-4125-aa1d-5fd5044aba1d@moroto.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'Documentation/netlink/genetlink-legacy.yaml')
0 files changed, 0 insertions, 0 deletions