diff options
| author | Vladimir Oltean <[email protected]> | 2022-06-28 13:08:31 +0300 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-06-29 20:37:36 -0700 |
| commit | 3eb4a4c3442c0642feaf466ecf6fe3cfb4af2c43 (patch) | |
| tree | 155f961c5f204a7a1264adadfc18011532ba26bf /include/linux/debugobjects.h | |
| parent | 2a832912dba29f30f8df58b682ab0535c89682b5 (diff) | |
net: switchdev: add reminder near struct switchdev_notifier_fdb_info
br_switchdev_fdb_notify() creates an on-stack FDB info variable, and
initializes it member by member. As such, newly added fields which are
not initialized by br_switchdev_fdb_notify() will contain junk bytes
from the stack.
Other uses of struct switchdev_notifier_fdb_info have a struct
initializer which should put zeroes in the uninitialized fields.
Add a reminder above the structure for future developers. Recently
discussed during review.
Link: https://patchwork.kernel.org/project/netdevbpf/patch/[email protected]/#24877698
Link: https://patchwork.kernel.org/project/netdevbpf/patch/[email protected]/#24912269
Signed-off-by: Vladimir Oltean <[email protected]>
Reviewed-by: Ido Schimmel <[email protected]>
Reviewed-by: Nikolay Aleksandrov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions