OSDN Git Service

io_uring: retain sockaddr_storage across send/recvmsg async punt
authorJens Axboe <axboe@kernel.dk>
Sun, 9 Feb 2020 18:29:15 +0000 (11:29 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 9 Feb 2020 18:32:10 +0000 (11:32 -0700)
commitb537916ca5107c3a8714b8ab3099c0ec205aec12
treef4ae546e80055b395dd871aaeb1e70b96a582d3f
parent6ab231448fdc5e37c15a94a4700fca11e80007f7
io_uring: retain sockaddr_storage across send/recvmsg async punt

Jonas reports that he sometimes sees -97/-22 error returns from
sendmsg, if it gets punted async. This is due to not retaining the
sockaddr_storage between calls. Include that in the state we copy when
going async.

Cc: stable@vger.kernel.org # 5.3+
Reported-by: Jonas Bonn <jonas@norrbonn.se>
Tested-by: Jonas Bonn <jonas@norrbonn.se>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c