diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c index 62533cb148c3..bfe49bc2f322 100644 --- a/sys/amd64/amd64/trap.c +++ b/sys/amd64/amd64/trap.c @@ -632,7 +632,6 @@ trap(struct trapframe *frame) user: userret(td, frame); - mtx_assert(&Giant, MA_NOTOWNED); KASSERT(PCB_USER_FPU(td->td_pcb), ("Return from trap with kernel FPU ctx leaked")); userout: diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c index c0c56787dea0..7536f1148fe6 100644 --- a/sys/i386/i386/trap.c +++ b/sys/i386/i386/trap.c @@ -775,7 +775,6 @@ trap(struct trapframe *frame) user: userret(td, frame); - mtx_assert(&Giant, MA_NOTOWNED); KASSERT(PCB_USER_FPU(td->td_pcb), ("Return from trap with kernel FPU ctx leaked")); userout: diff --git a/sys/ia64/ia32/ia32_trap.c b/sys/ia64/ia32/ia32_trap.c index 44e06482ae13..cea8f9200915 100644 --- a/sys/ia64/ia32/ia32_trap.c +++ b/sys/ia64/ia32/ia32_trap.c @@ -278,6 +278,5 @@ ia32_trap(int vector, struct trapframe *tf) out: userret(td, tf); - mtx_assert(&Giant, MA_NOTOWNED); do_ast(tf); } diff --git a/sys/ia64/ia64/trap.c b/sys/ia64/ia64/trap.c index d587b05868fd..c0cdaa918838 100644 --- a/sys/ia64/ia64/trap.c +++ b/sys/ia64/ia64/trap.c @@ -841,7 +841,6 @@ trap(int vector, struct trapframe *tf) out: if (user) { userret(td, tf); - mtx_assert(&Giant, MA_NOTOWNED); do_ast(tf); } return; diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 46cdca1ace69..5dc43cac4b31 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -1055,5 +1055,4 @@ fork_return(struct thread *td, struct trapframe *frame) if (KTRPOINT(td, KTR_SYSRET)) ktrsysret(SYS_fork, 0, 0); #endif - mtx_assert(&Giant, MA_NOTOWNED); } diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c index 095bbdf73b13..dcba5b83fd7c 100644 --- a/sys/kern/subr_trap.c +++ b/sys/kern/subr_trap.c @@ -260,7 +260,6 @@ ast(struct trapframe *framep) } userret(td, framep); - mtx_assert(&Giant, MA_NOTOWNED); } const char * diff --git a/sys/mips/mips/trap.c b/sys/mips/mips/trap.c index 7254d4f1524d..5b4e0aa4d5ab 100644 --- a/sys/mips/mips/trap.c +++ b/sys/mips/mips/trap.c @@ -1095,7 +1095,6 @@ out: * Note: we should only get here if returning to user mode. */ userret(td, trapframe); - mtx_assert(&Giant, MA_NOTOWNED); return (trapframe->pc); } diff --git a/sys/powerpc/aim/trap.c b/sys/powerpc/aim/trap.c index d419e43f249e..b55d34be5a61 100644 --- a/sys/powerpc/aim/trap.c +++ b/sys/powerpc/aim/trap.c @@ -297,7 +297,6 @@ trap(struct trapframe *frame) } userret(td, frame); - mtx_assert(&Giant, MA_NOTOWNED); } static void diff --git a/sys/powerpc/booke/trap.c b/sys/powerpc/booke/trap.c index cd2ab3865bd0..959d8b1d0666 100644 --- a/sys/powerpc/booke/trap.c +++ b/sys/powerpc/booke/trap.c @@ -249,7 +249,6 @@ trap(struct trapframe *frame) } userret(td, frame); - mtx_assert(&Giant, MA_NOTOWNED); } static void diff --git a/sys/sparc64/sparc64/trap.c b/sys/sparc64/sparc64/trap.c index 12264b0832e8..b4f0e27fa6d2 100644 --- a/sys/sparc64/sparc64/trap.c +++ b/sys/sparc64/sparc64/trap.c @@ -329,7 +329,6 @@ trap(struct trapframe *tf) } userret(td, tf); - mtx_assert(&Giant, MA_NOTOWNED); } else { KASSERT((tf->tf_type & T_KERNEL) != 0, ("trap: kernel trap isn't"));