]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
dev/xenstore: fix return with locks held
authorroyger <royger@FreeBSD.org>
Wed, 20 May 2020 11:01:10 +0000 (11:01 +0000)
committerroyger <royger@FreeBSD.org>
Wed, 20 May 2020 11:01:10 +0000 (11:01 +0000)
commit17b33e67de5c86a4676ee3a11092ee36951d3654
tree8cbbc92e72cdfae690df39919532e075d1f479bc
parentec3e82254f244cb41ab510364d280d6c81d621c1
dev/xenstore: fix return with locks held

Fix returning from xenstore device with locks held, which triggers the
following panic:

# cat /dev/xen/xenstore
^C
userret: returning with the following locks held:
exclusive sx evtchn_ringc_sx (evtchn_ringc_sx) r = 0 (0xfffff8000650be40) locked @ /usr/src/sys/dev/xen/evtchn/evtchn_dev.c:262

Note this is not a security issue since access to the device is
limited to root by default.

Sponsored by: Citrix Systems R&D
MFC after: 1 week
sys/dev/xen/evtchn/evtchn_dev.c