Kernel bug: KMSAN: uninit-value in __inet_bind
Subsystem: net
Status: fixed

Crash report:
wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50
wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
=====================================================
BUG: KMSAN: uninit-value in __inet_bind+0x8a4/0xf20 net/ipv4/af_inet.c:511
 __inet_bind+0x8a4/0xf20 net/ipv4/af_inet.c:511
 inet_bind_sk net/ipv4/af_inet.c:464 [inline]
 inet_bind+0x12c/0x1a0 net/ipv4/af_inet.c:469
 kernel_bind+0xd6/0x130 net/socket.c:3554
 rds_tcp_conn_path_connect+0x952/0xff0 net/rds/tcp_connect.c:175
 rds_connect_worker+0x353/0x4d0 net/rds/threads.c:176
 process_one_work kernel/workqueue.c:3275 [inline]
 process_scheduled_works+0xae7/0x1d60 kernel/workqueue.c:3358
 worker_thread+0xede/0x1580 kernel/workqueue.c:3439
 kthread+0x53f/0x600 kernel/kthread.c:467
 ret_from_fork+0x20f/0x910 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Uninit was stored to memory at:
 kernel_bind+0x92/0x130 net/socket.c:3552
 rds_tcp_conn_path_connect+0x952/0xff0 net/rds/tcp_connect.c:175
 rds_connect_worker+0x353/0x4d0 net/rds/threads.c:176
 process_one_work kernel/workqueue.c:3275 [inline]
 process_scheduled_works+0xae7/0x1d60 kernel/workqueue.c:3358
 worker_thread+0xede/0x1580 kernel/workqueue.c:3439
 kthread+0x53f/0x600 kernel/kthread.c:467
 ret_from_fork+0x20f/0x910 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Uninit was stored to memory at:
 rds_tcp_conn_path_connect+0xaf8/0xff0 net/rds/tcp_connect.c:174
 rds_connect_worker+0x353/0x4d0 net/rds/threads.c:176
 process_one_work kernel/workqueue.c:3275 [inline]
 process_scheduled_works+0xae7/0x1d60 kernel/workqueue.c:3358
 worker_thread+0xede/0x1580 kernel/workqueue.c:3439
 kthread+0x53f/0x600 kernel/kthread.c:467
 ret_from_fork+0x20f/0x910 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Uninit was created at:
 slab_post_alloc_hook mm/slub.c:4466 [inline]
 slab_alloc_node mm/slub.c:4788 [inline]
 kmem_cache_alloc_noprof+0x373/0x1200 mm/slub.c:4795
 rds_tcp_conn_alloc+0x7b/0xbb0 net/rds/tcp.c:376
 __rds_conn_create+0x267f/0x34e0 net/rds/connection.c:283
 rds_conn_create_outgoing+0x5d/0x80 net/rds/connection.c:377
 rds_sendmsg+0x2684/0x4d70 net/rds/send.c:1321
 sock_sendmsg_nosec net/socket.c:727 [inline]
 __sock_sendmsg net/socket.c:742 [inline]
 ____sys_sendmsg+0xfe7/0x1080 net/socket.c:2592
 ___sys_sendmsg+0x271/0x3b0 net/socket.c:2646
 __sys_sendmsg net/socket.c:2678 [inline]
 __do_sys_sendmsg net/socket.c:2683 [inline]
 __se_sys_sendmsg net/socket.c:2681 [inline]
 __x64_sys_sendmsg+0x211/0x3e0 net/socket.c:2681
 x64_sys_call+0x1e20/0x3ea0 arch/x86/include/generated/asm/syscalls_64.h:47
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x134/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

CPU: 1 UID: 0 PID: 1096 Comm: kworker/u8:7 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
Workqueue: krds_cp_wq#0/0 rds_connect_worker
=====================================================