Thread (4 messages) read the whole thread 4 messages, 3 authors, 2024-04-26

Re: [PATCH net] Fix a potential infinite loop in extract_user_to_sg()

From: Jakub Kicinski <kuba@kernel.org>
Date: 2024-04-25 15:45:39
Also in: linux-cifs, linux-crypto, linux-fsdevel, lkml, netfs

On Thu, 25 Apr 2024 09:39:32 +0100 David Howells wrote:
Fix extract_user_to_sg() so that it will break out of the loop if
iov_iter_extract_pages() returns 0 rather than looping around forever.
Is "goto fail" the right way to break out here?
My intuition would be "break".

On a quick read it seems like res = 0 may occur if we run out of
iterator, is passing maxsize > iter->count illegal?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help