Files
kernel/fs
Alexander Aring a845ca01e5 fs: dlm: fix build with CONFIG_IPV6 disabled
[ Upstream commit 1b9beda83e27a0c2cd75d1cb743c297c7b36c844 ]

This patch will surround the AF_INET6 case in sk_error_report() of dlm
with a #if IS_ENABLED(CONFIG_IPV6). The field sk->sk_v6_daddr is not
defined when CONFIG_IPV6 is disabled. If CONFIG_IPV6 is disabled, the
socket creation with AF_INET6 should already fail because a runtime
check if AF_INET6 is registered. However if there is the possibility
that AF_INET6 is set as sk_family the sk_error_report() callback will
print then an invalid family type error.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 4c3d90570bcc ("fs: dlm: don't call kernel_getpeername() in error_report()")
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-01-27 12:01:31 +01:00
..
2021-12-16 09:10:13 -08:00
2021-11-09 10:02:51 -08:00
2021-12-02 12:41:10 +01:00
2021-12-07 15:47:09 +00:00
2022-01-20 09:12:20 +01:00
2021-11-09 12:53:58 +01:00
2021-12-17 16:56:35 +09:00
2021-11-17 09:26:09 +01:00
2021-11-17 10:36:35 -05:00
2021-12-09 10:49:56 -08:00