[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191211081814.GA433262@kroah.com>
Date: Wed, 11 Dec 2019 09:18:14 +0100
From: Greg KH <gregkh@...uxfoundation.org>
To: Simon Schwartz <kern.simon@...schwartz.xyz>
Cc: rafael@...nel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] driver core: Prevent overflow from causing infinite loops
On Tue, Dec 10, 2019 at 05:41:37PM -0500, Simon Schwartz wrote:
> num_resources in the platform_device struct is declared as a u32.
> The for loops that iterate over num_resources use an int as the counter,
> which can cause infinite loops on architectures with smaller ints.
What arch is that that has so many resources and yet is only a 32bit
system?
thanks,
greg k-h
Powered by blists - more mailing lists