diff options
author | Jiri Pirko <[email protected]> | 2023-12-11 09:37:58 +0100 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-12-12 16:20:54 -0800 |
commit | 65c95f78917ea6fa7ff189a2c19879c4fe161873 (patch) | |
tree | 7d28601fb11ebde6292d221fd7872286247aa43b /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 154bb2fa4810e6196561ecc0f0c36ad61c770b6e (diff) |
dpll: sanitize possible null pointer dereference in dpll_pin_parent_pin_set()
User may not pass DPLL_A_PIN_STATE attribute in the pin set operation
message. Sanitize that by checking if the attr pointer is not null
and process the passed state attribute value only in that case.
Reported-by: Xingyuan Mo <[email protected]>
Fixes: 9d71b54b65b1 ("dpll: netlink: Add DPLL framework base functions")
Signed-off-by: Jiri Pirko <[email protected]>
Acked-by: Vadim Fedorenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions