diff options
| author | 2026-05-12 13:33:46 +0100 | |
|---|---|---|
| committer | 2026-05-12 14:42:30 +0200 | |
| commit | 0aad5704c6b4d14007d4eab15883e8524e4310f4 (patch) | |
| tree | 694ffa3b917d7877ac06e3a267d2119258bdf53a /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com | |
| parent | netfs: Fix potential uninitialised var in netfs_extract_user_iter() (diff) | |
netfs: fix error handling in netfs_extract_user_iter()
In netfs_extract_user_iter(), if iov_iter_extract_pages() failed to
extract user pages, bail out on -ENOMEM, otherwise return the error
code only if @npages == 0, allowing short DIO reads and writes to be
issued.
This fixes mmapstress02 from LTP tests against CIFS.
Fixes: 85dd2c8ff368 ("netfs: Add a function to extract a UBUF or IOVEC into a BVEC iterator")
Reported-by: Xiaoli Feng <xifeng@redhat.com>
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://patch.msgid.link/20260512123404.719402-10-dhowells@redhat.com
Cc: netfs@lists.linux.dev
Cc: stable@vger.kernel.org
Cc: linux-cifs@vger.kernel.org
Cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
