Bug 271344 - page fault during assigning/removing IPv6 addresses simultaneously
Summary: page fault during assigning/removing IPv6 addresses simultaneously
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.3-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: Zhenlei Huang
URL: https://reviews.freebsd.org/D39317
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-10 11:01 UTC by Piotr Kubaj
Modified: 2024-05-10 16:32 UTC (History)
3 users (show)

See Also:
zlei: mfc-stable13+


Attachments
panic (171.99 KB, image/png)
2023-05-10 11:01 UTC, Piotr Kubaj
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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