Re: [PATCH net] inetpeer: fix uninit-value in inet_getpeer

2018-04-09 Thread Eric Dumazet
On 04/09/2018 07:58 AM, David Miller wrote: > From: Eric Dumazet > Date: Mon, 9 Apr 2018 06:43:27 -0700 > >> syzbot/KMSAN reported that p->dtime was read while it was >> not yet initialized in : >> >> delta = (__u32)jiffies - p->dtime; >> if (delta < ttl || !refcount_dec_if_one(&p->r

Re: [PATCH net] inetpeer: fix uninit-value in inet_getpeer

2018-04-09 Thread David Miller
From: Eric Dumazet Date: Mon, 9 Apr 2018 06:43:27 -0700 > syzbot/KMSAN reported that p->dtime was read while it was > not yet initialized in : > > delta = (__u32)jiffies - p->dtime; > if (delta < ttl || !refcount_dec_if_one(&p->refcnt)) > gc_stack[i] = NULL; > > This