summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-picolcd_fb.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2023-03-01 01:28:57 +0100
committerJakub Kicinski <kuba@kernel.org>2023-03-02 05:32:36 +0100
commitf3221361dc85d4de22586ce8441ec2c67b454f5d (patch)
treeb4dbd98afdac7a8e2c5a1bc7d1f168962d6a357f /drivers/hid/hid-picolcd_fb.c
parentnet: tls: fix possible race condition between do_tls_getsockopt_conf() and do... (diff)
downloadlinux-f3221361dc85d4de22586ce8441ec2c67b454f5d.tar.xz
linux-f3221361dc85d4de22586ce8441ec2c67b454f5d.zip
net: tls: avoid hanging tasks on the tx_lock
syzbot sent a hung task report and Eric explains that adversarial receiver may keep RWIN at 0 for a long time, so we are not guaranteed to make forward progress. Thread which took tx_lock and went to sleep may not release tx_lock for hours. Use interruptible sleep where possible and reschedule the work if it can't take the lock. Testing: existing selftest passes Reported-by: syzbot+9c0268252b8ef967c62e@syzkaller.appspotmail.com Fixes: 79ffe6087e91 ("net/tls: add a TX lock") Link: https://lore.kernel.org/all/000000000000e412e905f5b46201@google.com/ Cc: stable@vger.kernel.org # wait 4 weeks Reviewed-by: Eric Dumazet <edumazet@google.com> Link: https://lore.kernel.org/r/20230301002857.2101894-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/hid/hid-picolcd_fb.c')
0 files changed, 0 insertions, 0 deletions