[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200303.174305.187736433958803345.davem@davemloft.net>
Date: Tue, 03 Mar 2020 17:43:05 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: lesliemonis@...il.com
Cc: netdev@...r.kernel.org, tahiliani@...k.edu.in, gautamramk@...il.com
Subject: Re: [PATCH net-next 3/4] pie: remove pie_vars->accu_prob_overflows
From: Leslie Monis <lesliemonis@...il.com>
Date: Mon, 2 Mar 2020 20:48:30 +0530
> - prandom_bytes(&rnd, 8);
> + prandom_bytes(&rnd, 7);
This is undefined because it depends upon the endianness whether you
are initializing the more significant 7 bytes or the least significant
7 bytes of rnd.
I think you should just keep this at 8 and explicitly clear out the
top byte.
Powered by blists - more mailing lists