summaryrefslogtreecommitdiff
path: root/net/smc/smc_tx.c
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2018-07-18 12:57:27 +0300
committerDavid S. Miller <davem@davemloft.net>2018-07-18 20:51:45 +0300
commit3bc53be9db21040b5d2de4d455f023c8c494aa68 (patch)
treeaca5ff34b83771aabde98a6d5e31bca8e6769977 /net/smc/smc_tx.c
parent83ed7d1fe2d2d4a11b30660dec20168bb473d9c1 (diff)
downloadlinux-3bc53be9db21040b5d2de4d455f023c8c494aa68.tar.xz
net/nfc: Avoid stalls when nfc_alloc_send_skb() returned NULL.
syzbot is reporting stalls at nfc_llcp_send_ui_frame() [1]. This is because nfc_llcp_send_ui_frame() is retrying the loop without any delay when nonblocking nfc_alloc_send_skb() returned NULL. Since there is no need to use MSG_DONTWAIT if we retry until sock_alloc_send_pskb() succeeds, let's use blocking call. Also, in case an unexpected error occurred, let's break the loop if blocking nfc_alloc_send_skb() failed. [1] https://syzkaller.appspot.com/bug?id=4a131cc571c3733e0eff6bc673f4e36ae48f19c6 Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Reported-by: syzbot <syzbot+d29d18215e477cfbfbdd@syzkaller.appspotmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc_tx.c')
0 files changed, 0 insertions, 0 deletions