summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2023-05-22 14:07:37 +0000
committerriastradh <riastradh@NetBSD.org>2023-05-22 14:07:37 +0000
commitd118a3897f290a50b17a761c4656d271d68f3f4d (patch)
treeebd4f192e856fdcf5f2e42eab8861cab07954295 /sys/dev
parentbc87ececf2bf392029c39dd8f8a3eb04c872f233 (diff)
tty(9): Make ttwrite update uio with only how much it has consumed.
As is, it leaves uio in an inconsistent state. Good enough for the write(2) return value to be correct for a userland caller to restart write(2) where it left off, but not good enough for a loop in the kernel to reuse the same uio. Reported-by: syzbot+e0f56178d0add0d8be20@syzkaller.appspotmail.com https://syzkaller.appspot.com/bug?id=6290eb02b8fe73361dc15c7bc44e1208601e6af8 Reported-by: syzbot+7caa189e8fccd926357e@syzkaller.appspotmail.com https://syzkaller.appspot.com/bug?id=c0a3b77b4831dfa81fc855857bde81755d246bd3 Reported-by: syzbot+4a1eff91eb4e7c1970b6@syzkaller.appspotmail.com https://syzkaller.appspot.com/bug?id=10523a633a4ad9749f57dc7cf03f9447d518c5b8 Reported-by: syzbot+1d3c280f59099dc82e17@syzkaller.appspotmail.com https://syzkaller.appspot.com/bug?id=8e02ebb0da76a8e286461f33502117a1d30275c6 Reported-by: syzbot+080d51214d0634472b12@syzkaller.appspotmail.com https://syzkaller.appspot.com/bug?id=1f617747db8087e5554d3df1b79a545dee26a650 Reported-by: syzbot+dd50b448e49e5020131a@syzkaller.appspotmail.com https://syzkaller.appspot.com/bug?id=f71c8cef4110b7eeac6eca67b6a4d1f4a8b3e96f Reported-by: syzbot+26b675ecf0cc9dfd8586@syzkaller.appspotmail.com https://syzkaller.appspot.com/bug?id=57b1901f5b3e090a964d08dd0d729f9909f203be Reported-by: syzbot+87f0df2c9056313a5c4b@syzkaller.appspotmail.com https://syzkaller.appspot.com/bug?id=67994a3da32d075144e25d1ac314be1d9694ae6e Reported-by: syzbot+e5bc98e18aa42f0cb25d@syzkaller.appspotmail.com https://syzkaller.appspot.com/bug?id=6374bd286532423c63f2b331748280729134224c Reported-by: syzbot+7e587f4c5aaaf80e84b3@syzkaller.appspotmail.com https://syzkaller.appspot.com/bug?id=976210ed438d48ac275d77d7ebf4a086e43b5fcb
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions