Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1690855
| From | Xin Long <lucien.xin@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] sctp: fully initialize the IPv6 address in sctp_v6_to_addr() |
| Date | 2017-07-19 03:00 +0200 |
| Message-ID | <u4Lvk-15W-7@gated-at.bofh.it> (permalink) |
| References | <u4C8F-3FU-1@gated-at.bofh.it> <u4Cil-3Yt-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Jul 19, 2017 at 3:02 AM, Alexander Potapenko <glider@google.com> wrote: > On Tue, Jul 18, 2017 at 4:55 PM, Alexander Potapenko <glider@google.com> wrote: >> KMSAN reported use of uninitialized sctp_addr->v4.sin_addr.s_addr and >> sctp_addr->v6.sin6_scope_id in sctp_v6_cmp_addr() (see below). >> Make sure all fields of an IPv6 address are initialized, which >> guarantees that the IPv4 fields are also initialized. > I'm assuming here that the IPv4 address is known to overlap with the > IPv6 one and doesn't need separate initialization. > Ok, addr->v6.sin6_scope_id = 0 will fix the call trace you posted here. addr->v6.sin6_flowinfo = 0 is to fix uninitialized sctp_addr->v4.sin_addr.s_addr, I couldn't see how this happens, can you also post the call trace for v4.sin_addr.s_addr ? Thanks
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] sctp: fully initialize the IPv6 address in sctp_v6_to_addr() Alexander Potapenko <glider@google.com> - 2017-07-18 17:00 +0200
Re: [PATCH] sctp: fully initialize the IPv6 address in sctp_v6_to_addr() Alexander Potapenko <glider@google.com> - 2017-07-18 17:10 +0200
Re: [PATCH] sctp: fully initialize the IPv6 address in sctp_v6_to_addr() Xin Long <lucien.xin@gmail.com> - 2017-07-19 03:00 +0200
Re: [PATCH] sctp: fully initialize the IPv6 address in sctp_v6_to_addr() Alexander Potapenko <glider@google.com> - 2017-07-24 18:30 +0200
Re: [PATCH] sctp: fully initialize the IPv6 address in sctp_v6_to_addr() Xin Long <lucien.xin@gmail.com> - 2017-07-25 04:40 +0200
csiph-web