]> www.infradead.org Git - users/jedix/linux-maple.git/commit
9p/net: return error on bogus (longer than requested) replies
authorDominique Martinet <asmadeus@codewreck.org>
Sun, 16 Mar 2025 21:51:06 +0000 (06:51 +0900)
committerDominique Martinet <asmadeus@codewreck.org>
Wed, 19 Mar 2025 12:20:25 +0000 (21:20 +0900)
commitad6d4558a7112af9e5f6727ac24fd8cd17469739
treecf8fcb4b843327fd37d10c90cda6398d06f66313
parentd0259a856afca31d699b706ed5e2adf11086c73b
9p/net: return error on bogus (longer than requested) replies

Up until now we've been considering longer than requested replies as
acceptable, printing a message and just truncating the data,
but it makes more sense to consider these an error.

Make these fail with EIO instead.

Suggested-by: Christian Schoenebeck <linux_oss@crudebyte.com>
Message-ID: <20250317-p9_bogus_io_error-v1-1-9639f6d1561f@codewreck.org>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
net/9p/client.c