Re: [syzbot] [mm?] WARNING in ep_write_iter
John Hubbard <[email protected]>
| Newsgroups | org.kernel.vger.linux-usb,org.kernel.vger.linux-kernel,org.kvack.linux-mm |
|---|---|
| Message-ID | <[email protected]> |
On 8/17/26 11:51 AM, Zi Yan wrote: > On 17 Aug 2026, at 11:55, Greg Kroah-Hartman wrote: >> On Mon, Aug 17, 2026 at 11:19:23AM -0400, Zi Yan wrote: >>> On 17 Aug 2026, at 11:06, Greg Kroah-Hartman wrote: >>>> On Mon, Aug 17, 2026 at 10:34:26AM -0400, Zi Yan wrote: >>>>> On 17 Aug 2026, at 9:55, Alan Stern wrote: >>>>>> On Sun, Aug 16, 2026 at 07:42:13PM -0700, Andrew Morton wrote: >>>>>>> On Sun, 16 Aug 2026 21:47:58 -0400 "Zi Yan" <[email protected]> wrote: ... > BTW, kvmalloc() also gives a WARN if the input size is bigger than INT_MAX[1][2]. > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/mm/slub.c?h=v7.2#n6912 > [2] https://lore.kernel.org/all/CAHk-=wiRq+_jd_O1gz3J6-ANtXMY7iLpi8XFUcmtB3rBixvUXQ@mail.gmail.com/ Probably best to remove those WARNs as well, both for consistency, and because the reasoning still holds for those two references as well. There is already enough information for the kernel developer: the allocation failed. "Go investigate, it's easy enough to find out what happened." No need to print out warnings. thanks, -- John Hubbard