Bug 131753 - [altq] [panic] kernel panic in hfsc_dequeue
Summary: [altq] [panic] kernel panic in hfsc_dequeue
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 7.1-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: Bugmeister
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2009-02-16 21:40 UTC by Jari Kirma
Modified: 2025-01-28 12:09 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jari Kirma freebsd_committer freebsd_triage 2009-02-16 21:40:02 UTC
System (four-core Intel Q6600 with SMP kernel) crashes under load
(although relatively light load, thanks to only 2 Mbit outbound link) of
roughty hundred TCP connections somewhat reproducibly when HFSC ALTQ
traffic scheduling is used.

Only information seen about this is the dmesg message:

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x4
fault code              = supervisor read, page not present
instruction pointer     = 0x20:0xc04641e7
stack pointer           = 0x28:0xe719ca68
frame pointer           = 0x28:0xe719caac
code segment            = base rx0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 15 (swi4: clock sio)
trap number             = 12
panic: page fault

Where the instruction pointer points to inlined code inside hfsc_dequeue:

(gdb) l *(0xc04641e7)
0xc04641e7 is in hfsc_dequeue (altq_classq.h:113).
108             struct mbuf  *m, *m0;
109
110             if ((m = qtail(q)) == NULL)
111                     return (NULL);
112             if ((m0 = m->m_nextpkt) != m)
113                     m->m_nextpkt = m0->m_nextpkt;
114             else
115                     qtail(q) = NULL;
116             qlen(q)--;
117             m0->m_nextpkt = NULL;

Could it be just a simple locking issue in the linked list?

How-To-Repeat: Exact conditions are not known, but running lots of outbound TCP traffic over HFSC connection on a SMP system might trigger it.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2009-02-17 01:09:02 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-net

Over to maintainer(s).
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:27 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:17:06 UTC
Keyword: 

    crash

– in lieu of summary line prefix: 

    [panic]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2025-01-28 12:09:29 UTC
^Triage: I'm sorry that this PR did not get addressed in a timely fashion.

By now, the version that it was created against is long out of support.
Please re-open if it is still a problem on a supported version.