diff options
author | Max Kellermann <max.kellermann@ionos.com> | 2025-02-20 18:24:50 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-03-22 22:56:59 +0300 |
commit | e25cec3b76aba47a49138d2162fc809c6cd49c9e (patch) | |
tree | fb3d7570750ac5083a9ac511655f4358566c101c /include/linux/fpga/fpga-mgr.h | |
parent | 0e464d5b6957e35abebcb6fd8e4321c4ae04f61f (diff) | |
download | linux-e25cec3b76aba47a49138d2162fc809c6cd49c9e.tar.xz |
fs/netfs/read_collect: add to next->prev_donated
If multiple subrequests donate data to the same "next" request
(depending on the subrequest completion order), each of them would
overwrite the `prev_donated` field, causing data corruption and a
BUG() crash ("Can't donate prior to front").
Fixes: ee4cdf7ba857 ("netfs: Speed up buffered reading")
Closes: https://lore.kernel.org/netfs/CAKPOu+_4mUwYgQtRTbXCmi+-k3PGvLysnPadkmHOyB7Gz0iSMA@mail.gmail.com/
Cc: stable@vger.kernel.org
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions