# Page fault in in6_selecthlim() after iwlwifi detaches

## What happened

On 10 November 2026 at 13:56 UTC the AX210 firmware reported "Device error - SW reset". `iwlwifi0` detached, and a moment later the kernel took a page fault at address `0x10`. The backtrace ran `softclock`, `tcp_timer_rexmt`, `tcp_default_output`, `in6_selecthlim`.

The retransmit timer ran for a socket whose interface had just lost its IPv6 per-interface data (`if_afdata[AF_INET6]` is NULL), and `in6_selecthlim()` read through it.

## Status

This is [PR 279653](https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279653), reported by someone else and in progress. The backtrace and environment from this laptop went in as a comment. The fix in review, D54728 (by another developer), does not apply to stable/15.

A local patch, [spagu/freebsd-in6-hlim](https://github.com/spagu/freebsd-in6-hlim), adds an `in6_ifhlim()` helper that falls back to the default hop limit when the IPv6 data is gone. It builds with `-Werror` on 15.1-p6 but has not been proven: the panic needs a firmware crash during a pending retransmit, which cannot be triggered on demand. More on [tradik.com](https://tradik.com/blog/freebsd-in6-selecthlim-iwlwifi-panic/).
