Thread (5 messages) flat view 5 messages, 5 authors, 2022-11-24

Re: [PATCH v3] ethtool: avoiding integer overflow in ethtool_phys_id()

From: Jakub Kicinski <kuba@kernel.org>
Date: 2022-11-24 04:11:51
Also in: lkml

On Tue, 22 Nov 2022 15:29:01 +0300 Maxim Korotkov wrote:
The value of an arithmetic expression "n * id.data" is subject
to possible overflow due to a failure to cast operands to a larger data
type before performing arithmetic. Used macro for multiplication instead
operator for avoiding overflow.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Maxim Korotkov <redacted>
Applying to net-next, pretty sure nobody expects us to support blinking
an LED 4 billion times, at a rate low enough for a human eye to see...
But let's watch the stable bots pick it up anyway.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help