Page MenuHomeFreeBSD

Fix "smp_targeted_tlb_shootdown: interrupts disabled" panics
ClosedPublic

Authored by jtl on Feb 24 2017, 5:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 23 2024, 5:41 PM
Unknown Object (File)
Feb 21 2024, 9:35 PM
Unknown Object (File)
Jan 24 2024, 3:33 AM
Unknown Object (File)
Dec 22 2023, 9:57 PM
Unknown Object (File)
Nov 21 2023, 9:19 PM
Unknown Object (File)
Nov 12 2023, 3:51 PM
Unknown Object (File)
Nov 11 2023, 10:04 PM
Unknown Object (File)
Oct 21 2023, 4:59 PM
Subscribers

Details

Summary

We have seen several cases recently where we appear to get a double-fault: we have an original panic. Then, instead of writing the core to the dump device, the kernel has a second panic: "smp_targeted_tlb_shootdown: interrupts disabled".

This is an attempt to fix that second panic.

This should be safe since we can't notify other CPUs of the TLB shootdown when they're stopped anyway.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jtl retitled this revision from to Fix "smp_targeted_tlb_shootdown: interrupts disabled" panics.
jtl updated this object.
jtl edited the test plan for this revision. (Show Details)
jtl added reviewers: kib, jhb.

I think that it might be unsafe to return from ddb into normal operations with this patch, if ddb activity caused any change in the mappings. Some ddb commands might allocate memory, e.g. coredumping.

You need to flush TLB somewhere in cpustop_handler_post(), most likely, to fix this.

jtl edited edge metadata.

Invalidate TLB when restarting other CPUs.

In D9786#201995, @kib wrote:

I think that it might be unsafe to return from ddb into normal operations with this patch, if ddb activity caused any change in the mappings. Some ddb commands might allocate memory, e.g. coredumping.

You need to flush TLB somewhere in cpustop_handler_post(), most likely, to fix this.

Ugh. You're right.

I should have known better. :-)

I think it should be fixed now...

kib edited edge metadata.
This revision is now accepted and ready to land.Feb 24 2017, 6:36 PM
This revision was automatically updated to reflect the committed changes.