Re: [PATCH net] rds: do not leak kernel memory to user land

2018-05-03 Thread David Miller
From: Eric Dumazet Date: Wed, 2 May 2018 14:53:39 -0700 > syzbot/KMSAN reported an uninit-value in put_cmsg(), originating > from rds_cmsg_recv(). > > Simply clear the structure, since we have holes there, or since > rx_traces might be smaller than RDS_MSG_RX_DGRAM_TRACE_MAX. ... > Fixes: 3289

[PATCH net] rds: do not leak kernel memory to user land

2018-05-02 Thread Eric Dumazet
syzbot/KMSAN reported an uninit-value in put_cmsg(), originating from rds_cmsg_recv(). Simply clear the structure, since we have holes there, or since rx_traces might be smaller than RDS_MSG_RX_DGRAM_TRACE_MAX. BUG: KMSAN: uninit-value in copy_to_user include/linux/uaccess.h:184 [inline] BUG: KMS