]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Fix sendmsg(MSG_WAITALL) handling
authorDavid Howells <dhowells@redhat.com>
Fri, 13 Mar 2020 17:30:27 +0000 (17:30 +0000)
committerDavid Howells <dhowells@redhat.com>
Fri, 13 Mar 2020 23:04:34 +0000 (23:04 +0000)
commit297cf1b27f522fb9822276327cbd63052b8bb4e6
tree0ca56d1744449d4ecd1e70d1d4914cdd942e0ed7
parentad83ef36cb811fe6277da46c221e240fbeb5e488
rxrpc: Fix sendmsg(MSG_WAITALL) handling

Fix the handling of sendmsg() with MSG_WAITALL for userspace to round the
timeout for when a signal occurs up to at least two jiffies as a 1 jiffy
timeout may end up being effectively 0 if jiffies wraps at the wrong time.

Fixes: dab12a72d787 ("rxrpc: Use MSG_WAITALL to tell sendmsg() to temporarily ignore signals")
Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/sendmsg.c