1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-19 21:04:26 +00:00
Mikhail Lobanov a5e61b50c9 drbd: Add NULL check for net_conf to prevent dereference in state validation
If the net_conf pointer is NULL and the code attempts to access its
fields without a check, it will lead to a null pointer dereference.
Add a NULL check before dereferencing the pointer.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 44ed167da748 ("drbd: rcu_read_lock() and rcu_dereference() for tconn->net_conf")
Cc: stable@vger.kernel.org
Signed-off-by: Mikhail Lobanov <m.lobanov@rosalinux.ru>
Link: https://lore.kernel.org/r/20240909133740.84297-1-m.lobanov@rosalinux.ru
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2024-09-10 13:44:06 -06:00
..
2023-01-29 15:18:33 -07:00
2022-11-22 19:38:39 -07:00
2022-11-22 19:38:39 -07:00
2024-03-11 11:43:44 -07:00
2022-11-22 19:38:39 -07:00
2022-11-22 19:38:39 -07:00
2023-01-29 15:18:33 -07:00
2022-11-22 19:38:39 -07:00
2022-11-22 19:38:39 -07:00
2022-11-22 19:38:39 -07:00
2022-11-22 19:38:39 -07:00
2022-11-22 19:38:39 -07:00