aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/adduser
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2001-05-02 13:06:58 +0000
committerBruce Evans <bde@FreeBSD.org>2001-05-02 13:06:58 +0000
commit79d4e25beae13146f8748f44fc0a37e99957a68a (patch)
tree30c6caade34e7bf3e24bbd58875e191f7321e6b6 /usr.sbin/adduser
parent7f17ea13a30083739564dae8dc07df961983a14f (diff)
downloadsrc-79d4e25beae13146f8748f44fc0a37e99957a68a.tar.gz
src-79d4e25beae13146f8748f44fc0a37e99957a68a.zip
Fixed panics in npx exception handling. When using IRQ13 exception
handling, SMPng always switches the npx context away from curproc before calling the handler, so the handler always paniced. When using exception 16 exception handling, SMPng sometimes switches the npx context away from curproc before calling the handler, so the handler sometimes paniced. Also, we didn't lock the context while using it, so we sometimes didn't detect the switch and then paniced in a less controlled way. Just lock the context while using it, and return without doing anything except clearing the busy latch if the context is not for curproc. This fixes the exception 16 case and makes the IRQ13 case harmless. In both cases, the instruction that caused the exception is restarted and the exception repeats. In the exception 16 case, we soon get an exception that can be handled without doing anything special. In the IRQ13 case, we get an easy to kill hung process.
Notes
Notes: svn path=/head/; revision=76205
Diffstat (limited to 'usr.sbin/adduser')
0 files changed, 0 insertions, 0 deletions