summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_malloc.c
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2019-11-28 16:05:25 +0000
committerbeck <beck@openbsd.org>2019-11-28 16:05:25 +0000
commit29844f7bb5bef5ffbfc45834310c6ffaf614e030 (patch)
treec2b7ebc4cb75981dc4162bb1be13dc505f290cd6 /sys/kern/kern_malloc.c
parentMerge host_v{4,6}() into host_ip(), simplify host() (diff)
downloadwireguard-openbsd-29844f7bb5bef5ffbfc45834310c6ffaf614e030.tar.xz
wireguard-openbsd-29844f7bb5bef5ffbfc45834310c6ffaf614e030.zip
Fix panic noticed by bluhm@ and florian@. bp->b_pobj is used
to determine if the buffer has pages to free. we have to set this pointer only after we could sleep allocating pages. setting it before creates the potential for a race to free us while we are sleeping ok kettenis@
Diffstat (limited to 'sys/kern/kern_malloc.c')
0 files changed, 0 insertions, 0 deletions