Patch "s390/qeth: fix underestimated count of buffer elements" has been added to the 4.15-stable tree
Subsystems (4)
This is a note to let you know that I've just added the patch titled
s390/qeth: fix underestimated count of buffer elements
to the 4.15-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
s390-qeth-fix-underestimated-count-of-buffer-elements.patch
and it can be found in the queue-4.15 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Tue Mar 6 19:02:57 PST 2018
From: Ursula Braun <[email protected]>
Date: Fri, 9 Feb 2018 11:03:49 +0100
Subject: s390/qeth: fix underestimated count of buffer elements
From: Ursula Braun <[email protected]>
[ Upstream commit 89271c65edd599207dd982007900506283c90ae3 ]
For a memory range/skb where the last byte falls onto a page boundary (ie. 'end' is of the form xxx...xxx001), the PFN_UP() part of the calculation currently doesn't round up to the next PFN due to an off-by-one error.
Thus qeth believes that the skb occupies one page less than it actually does, and may select a IO buffer that doesn't have enough spare buffer elements to fit all of the skb's data.
HW detects this as a malformed buffer descriptor, and raises an exception which then triggers device recovery.
--- drivers/s390/net/qeth_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/s390/net/qeth_core.h +1 -1
@@ -836,7 +836,7 @@ struct qeth_trap_id {*/ static inline int qeth_get_elements_for_range (addr_t start,addr_t end) { -return PFN_UP (end -1 ) -PFN_DOWN (start); +return PFN_UP (end) -PFN_DOWN (start); }static inline int qeth_get_micros (void )
Patches currently in stable-queue which might be from [email protected] are
queue-4.15/s390-qeth-fix-underestimated-count-of-buffer-elements.patch