Project

General

Profile

Actions

Bug #14497

closed

Kernel panic when using traffic shaping on a PPPoE interface

Added by Steve Wheeler 11 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Category:
Traffic Shaper (ALTQ)
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
23.09
Release Notes:
Default
Affected Version:
2.7.x
Affected Architecture:
amd64

Description

A PRIQ traffic shaper with codel enabled can cause a panicwhen applied to a PPPoE WAN.

See: https://forum.netgate.com/topic/179546/6100-boot-loop-w-traffic-shaper-on-pppoe-wan

Bootstrapping clock...
codel_should_drop: could not found the packet mtag!

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 04
fault virtual address    = 0x5010410
fault code        = supervisor read data, page not present
instruction pointer    = 0x20:0xffffffff80cd789d
stack pointer            = 0x0:0xfffffe00c4c04ae0
frame pointer            = 0x0:0xfffffe00c4c04b60
code segment        = base 0x0, limit 0xfffff, type 0x1b
            = DPL 0, pres 1, long 1, def32 0, gran 1

Fatal trap 12: page fault while in kernel mode
cpuid = 2; apic id = 10
fault virtual address    = 0x1
fault code        = supervisor read instruction, page not present
instruction pointer    = 0x20:0x1
stack pointer            = 0x28:0xfffffe00107e04e8
frame pointer            = 0x28:0xfffffe00107e0510
code segment        = base 0x0, limit 0xfffff, type 0x1b
            = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags    = interrupt enabled, resume, IOPL = 0
current process        = 0 (if_io_tqg_2)
rdi: fffff80265c8b600 rsi: fffff80265c8b600 rdx:                0
rcx: fffff80265573430  r8:                0  r9: fffff80001004c00
rax: fffff80265c8b600 rbx: fffff80265573400 rbp: fffffe00107e0510
r10:                0 r11:         7ffa26e3 r12: fffffe0085822000
r13:          3010000 r14: fffff80265573430 r15: fffff80265c8b600
trap number        = 12
panic: page fault
cpuid = 2
time = 1687374345
KDB: enter: panic
[ thread pid 0 tid 100009 ]
Stopped at      kdb_enter+0x32: movq    $0,0x2342e13(%rip)
db:0:kdb.enter.default> textdump set
textdump set
db:0:kdb.enter.default>  capture on
db:0:kdb.enter.default>  run pfs
db:1:pfs> bt
Tracing pid 0 tid 100009 td 0xfffffe0011ff5c80
kdb_enter() at kdb_enter+0x32/frame 0xfffffe00107e02a0
vpanic() at vpanic+0x183/frame 0xfffffe00107e02f0
panic() at panic+0x43/frame 0xfffffe00107e0350
trap_fatal() at trap_fatal+0x409/frame 0xfffffe00107e03b0
trap_pfault() at trap_pfault+0x4f/frame 0xfffffe00107e0410
calltrap() at calltrap+0x8/frame 0xfffffe00107e0410
--- trap 0xc, rip = 0x1, rsp = 0xfffffe00107e04e8, rbp = 0xfffffe00107e0510 ---
??() at 0x1/frame 0xfffffe00107e0510
uma_zfree_arg() at uma_zfree_arg+0x1d9/frame 0xfffffe00107e0550
mb_free_ext() at mb_free_ext+0xbe/frame 0xfffffe00107e0580
m_free() at m_free+0xbc/frame 0xfffffe00107e05b0
m_freem() at m_freem+0x28/frame 0xfffffe00107e05d0
iflib_completed_tx_reclaim() at iflib_completed_tx_reclaim+0x1df/frame 0xfffffe00107e0640
iflib_txq_drain() at iflib_txq_drain+0x68/frame 0xfffffe00107e06c0
drain_ring_lockless() at drain_ring_lockless+0x5d/frame 0xfffffe00107e0710
ifmp_ring_enqueue() at ifmp_ring_enqueue+0x27a/frame 0xfffffe00107e0750
iflib_if_transmit() at iflib_if_transmit+0x23b/frame 0xfffffe00107e07c0
iflib_altq_if_start() at iflib_altq_if_start+0xee/frame 0xfffffe00107e07f0
iflib_altq_if_transmit() at iflib_altq_if_transmit+0xff/frame 0xfffffe00107e0820
vlan_transmit() at vlan_transmit+0xdf/frame 0xfffffe00107e0870
ether_output_frame() at ether_output_frame+0xa3/frame 0xfffffe00107e08a0
ether_output() at ether_output+0x670/frame 0xfffffe00107e0930
ip_tryforward() at ip_tryforward+0x577/frame 0xfffffe00107e09d0
ip_input() at ip_input+0x309/frame 0xfffffe00107e0a30
netisr_dispatch_src() at netisr_dispatch_src+0x2a0/frame 0xfffffe00107e0a80
ether_demux() at ether_demux+0x149/frame 0xfffffe00107e0ab0
ether_nh_input() at ether_nh_input+0x352/frame 0xfffffe00107e0b10
netisr_dispatch_src() at netisr_dispatch_src+0xb0/frame 0xfffffe00107e0b60
ether_input() at ether_input+0x69/frame 0xfffffe00107e0bc0
ether_demux() at ether_demux+0x9a/frame 0xfffffe00107e0bf0
ether_nh_input() at ether_nh_input+0x352/frame 0xfffffe00107e0c50
netisr_dispatch_src() at netisr_dispatch_src+0xb0/frame 0xfffffe00107e0ca0
ether_input() at ether_input+0x69/frame 0xfffffe00107e0d00
iflib_rxeof() at iflib_rxeof+0xc13/frame 0xfffffe00107e0e00
_task_fn_rx() at _task_fn_rx+0x72/frame 0xfffffe00107e0e40
gtaskqueue_run_locked() at gtaskqueue_run_locked+0x15d/frame 0xfffffe00107e0ec0
gtaskqueue_thread_loop() at gtaskqueue_thread_loop+0xc3/frame 0xfffffe00107e0ef0
fork_exit() at fork_exit+0x7d/frame 0xfffffe00107e0f30
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00107e0f30
--- trap 0x78c08548, rip = 0xeb8480f79c0, rsp = 0xfc22e8c2940f2024, rbp = 0xc016058b48000000 ---

Seen in 23.01 and 23.05


Files

shaper_config.xml (1.74 KB) shaper_config.xml Steve Wheeler, 06/26/2023 12:20 PM
Actions

Also available in: Atom PDF