aboutsummaryrefslogtreecommitdiff
path: root/sys/ddb/db_watch.c
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2020-03-19 21:38:52 +0000
committerMark Johnston <markj@FreeBSD.org>2020-03-19 21:38:52 +0000
commite02582d1ae44dfc7ae009481ce12930ccf662142 (patch)
tree6039a4e3b0319f09e741e76cb01fb805f7f858f6 /sys/ddb/db_watch.c
parent27bae6150a9fd352796b5ff775eb464a2cf6dac9 (diff)
downloadsrc-e02582d1ae44dfc7ae009481ce12930ccf662142.tar.gz
src-e02582d1ae44dfc7ae009481ce12930ccf662142.zip
Fix synchronization in the IPV6_2292PKTOPTIONS set handler.
The inpcb needs to be locked when we update output packet options. Otherwise it is possible for the IPV6_2292PKTOPTIONS handler to free packet option structures while another thread is reading or updating them. Note that the option handler is still kind of broken. For instance it frees all options before performing privilege checks for individual options. However, this can be fixed separately. Reported by: syzbot+52eb0fd4ddc119787f9d@syzkaller.appspotmail.com Reviewed by: bz, tuexen MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D24125
Notes
Notes: svn path=/head/; revision=359154
Diffstat (limited to 'sys/ddb/db_watch.c')
0 files changed, 0 insertions, 0 deletions