Page MenuHomeFreeBSD

Mark imported state as PFTM_UNLINKED before freeing it
AbandonedPublic

Authored by mjg on Dec 5 2022, 4:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 31, 7:09 AM
Unknown Object (File)
Feb 21 2024, 3:39 AM
Unknown Object (File)
Feb 21 2024, 3:09 AM
Unknown Object (File)
Dec 20 2023, 8:39 AM
Unknown Object (File)
Nov 23 2023, 10:19 AM
Unknown Object (File)
Nov 22 2023, 10:44 AM
Unknown Object (File)
Nov 12 2023, 7:47 AM
Unknown Object (File)
Nov 12 2023, 5:50 AM

Details

Summary

When using a kernel with KASSERT checks enabled, a state import failure (for example due to "wire key attach failed") causes a kernel panic due to the failed state not being set to PFTM_UNLINKED timeout. This patch sets the timeout correctly for such states.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

That's a good fix, but it looks like you're working from an older version. This is already fixed in https://cgit.freebsd.org/src/commit/?id=69ce6ae21acd71b8e46d1f22176063e9d243511a

It seems it didn't get MFC'd though, so that may be why you ran into this. I'll see about fixing that at least.

This comment was removed by glebius.
mjg commandeered this revision.EditedDec 7 2022, 4:01 AM
mjg added a reviewer: vegeta_tuxpowered.net.
mjg added a subscriber: mjg.

As noted by kp@ this is already fixed in the main branch. He recently MFCed it to stable/13 (7efa85c12303c532b3c87d08dc6e6020fb2c18cc) and to stable/12 (577214cb0ac6c1433b39503af5b7b50e8f9985d5).

As there is nothing more to do regarding this bug I'm going to close this revision.

Thanks for the patch nonetheless and apologies for not merging sooner :)