kernel_samsung_a53x/drivers/block/drbd
Mikhail Lobanov 10fc1d058f drbd: Add NULL check for net_conf to prevent dereference in state validation
commit a5e61b50c9f44c5edb6e134ede6fee8806ffafa9 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-23 23:21:31 +01:00
..
drbd_actlog.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drbd_bitmap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drbd_debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drbd_debugfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drbd_int.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drbd_interval.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drbd_interval.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drbd_main.c drbd: Fix atomicity violation in drbd_uuid_set_bm() 2024-11-23 23:21:31 +01:00
drbd_nl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drbd_nla.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drbd_nla.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drbd_proc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drbd_protocol.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drbd_receiver.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drbd_req.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drbd_req.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drbd_state.c drbd: Add NULL check for net_conf to prevent dereference in state validation 2024-11-23 23:21:31 +01:00
drbd_state.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drbd_state_change.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drbd_strings.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drbd_strings.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drbd_vli.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drbd_worker.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00