Bug 271344

Summary: page fault during assigning/removing IPv6 addresses simultaneously
Product: Base System Reporter: Piotr Kubaj <pkubaj>
Component: kernAssignee: Zhenlei Huang <zlei>
Status: Closed FIXED    
Severity: Affects Some People CC: erj, kp, zlei
Priority: --- Flags: zlei: mfc-stable13+
Version: 13.3-RELEASE   
Hardware: Any   
OS: Any   
URL: https://reviews.freebsd.org/D39317
Attachments:
Description Flags
panic none

Description Piotr Kubaj freebsd_committer freebsd_triage 2023-05-10 11:01:19 UTC
Created attachment 242098 [details]
panic

Reproduced on powerpc64 with bge and on amd64 with ice and bge.
Run the following command repeatedly:
for i in {1..20}; do ifconfig ice0 inet6 fec0::2:930/112 & ifconfig ice0 inet6 fec0::2:930 delete & done

It may take a few attempts, but will result in the attached panic (on amd64 with ice).
Comment 1 Zhenlei Huang freebsd_committer freebsd_triage 2023-05-29 11:52:53 UTC
I can repeat this issue on stable/13 amd64.
Comment 2 Kristof Provost freebsd_committer freebsd_triage 2023-05-29 12:10:05 UTC
Odds are that https://github.com/pfsense/FreeBSD-src/commit/f5a365e51feea75d1e5ebc86c53808d8cae7b6d7 (main only) fixes this.
Comment 3 Piotr Kubaj freebsd_committer freebsd_triage 2023-05-30 12:46:29 UTC
Thanks, it indeed fixes the panic.
Comment 4 Zhenlei Huang freebsd_committer freebsd_triage 2024-04-09 14:04:01 UTC
stable/14 has the commit f5a365e51fee, this should be MFCed into stable/13.
Comment 5 Zhenlei Huang freebsd_committer freebsd_triage 2024-05-10 16:32:56 UTC
Tested and MFSed to stable/13. https://cgit.freebsd.org/src/commit/?h=stable/13&id=ff99bfe3ef739a026e0cf554295774c8bf02d326