[Bug 234444] cc_htcp + TCP_RFC7413 panic

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jan 14 14:25:57 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234444

--- Comment #6 from Sergey Samoyloff <gonzahq at yandex.ru> ---
(In reply to Michael Tuexen from comment #5)

the problem without running squid

again,
compile and load kernel with options TCP_RFC7413

root at hq:~ # sysctl -w net.inet.tcp.fastopen.enabled=1
net.inet.tcp.fastopen.enabled: 0 -> 1

root at hq:~ # kldload cc_htcp
root at hq:~ # kldstat
Id Refs Address            Size     Name
 1    3 0xffffffff80200000 dd2e30   kernel
 2    1 0xffffffff81211000 8e4      cc_htcp.ko

root at hq:~ # sysctl -w net.inet.tcp.cc.algorithm=htcp
net.inet.tcp.cc.algorithm: newreno -> htcp
root at hq:~ # sysctl -w net.inet.tcp.cc.htcp.adaptive_backoff=1
net.inet.tcp.cc.htcp.adaptive_backoff: 0 -> 1
root at hq:~ # sysctl -w net.inet.tcp.cc.htcp.rtt_scaling=1
net.inet.tcp.cc.htcp.rtt_scaling: 0 -> 1
root at hq:~ #
root at hq:~ # sync
root at hq:~ # service

tried to start squid but kernel panic

hq dumped core - see /var/crash/vmcore.2

Mon Jan 14 17:06:50 MSK 2019

FreeBSD hq 11.2-STABLE FreeBSD 11.2-STABLE #2: Mon Jan 14 16:48:06 MSK 2019    
root at hq:/usr/src/sys/amd64/compile/HQ
amd64

panic: page fault

GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...

Unread portion of the kernel message buffer:
[308]
[308]
[308] Fatal trap 12: page fault while in kernel mode
[308] cpuid = 0; apic id = 00
[308] fault virtual address     = 0x30
[308] fault code                = supervisor read data, page not present
[308] instruction pointer       = 0x20:0xffffffff804eab36
[308] stack pointer             = 0x28:0xfffffe083ed92920
[308] frame pointer             = 0x28:0xfffffe083ed929c0
[308] code segment              = base 0x0, limit 0xfffff, type 0x1b
[308]                   = DPL 0, pres 1, long 1, def32 0, gran 1
[308] processor eflags  = interrupt enabled, resume, IOPL = 0
[308] current process           = 12 (swi4: clock (0))
[308] trap number               = 12
[308] panic: page fault
[308] cpuid = 0
[308] KDB: stack backtrace:
[308] #0 0xffffffff805175c7 at kdb_backtrace+0x67
[308] #1 0xffffffff804d3277 at vpanic+0x177
[308] #2 0xffffffff804d30f3 at panic+0x43
[308] #3 0xffffffff807e4c1f at trap_fatal+0x35f
[308] #4 0xffffffff807e4c79 at trap_pfault+0x49
[308] #5 0xffffffff807e4473 at trap+0x2d3
[308] #6 0xffffffff807c661c at calltrap+0x8
[308] #7 0xffffffff804eb029 at softclock+0x79
[308] #8 0xffffffff804a2189 at intr_event_execute_handlers+0xe9
[308] #9 0xffffffff804a2466 at ithread_loop+0xe6
[308] #10 0xffffffff8049f642 at fork_exit+0x82
[308] #11 0xffffffff807c75ce at fork_trampoline+0xe
[308] Uptime: 5m8s
[308] Dumping 1197 out of 32728
MB:..2%..11%..21%..31%..41%..51%..61%..71%..81%..91%

Reading symbols from /boot/kernel/cc_htcp.ko...Reading symbols from
/usr/lib/debug//boot/kernel/cc_htcp.ko.debug...done
.
done.
Loaded symbols for /boot/kernel/cc_htcp.ko
#0  doadump (textdump=<value optimized out>) at pcpu.h:230
230     pcpu.h: No such file or directory.
        in pcpu.h
(kgdb) #0  doadump (textdump=<value optimized out>) at pcpu.h:230
#1  0xffffffff804d2e8a in kern_reboot (howto=260)
    at ../../../kern/kern_shutdown.c:383
#2  0xffffffff804d32b1 in vpanic (fmt=<value optimized out>,
    ap=<value optimized out>) at ../../../kern/kern_shutdown.c:776
#3  0xffffffff804d30f3 in panic (fmt=<value optimized out>)
    at ../../../kern/kern_shutdown.c:707
#4  0xffffffff807e4c1f in trap_fatal (frame=0xfffffe083ed92860,
    eva=<value optimized out>) at ../../../amd64/amd64/trap.c:877
#5  0xffffffff807e4c79 in trap_pfault (frame=0xfffffe083ed92860,
    usermode=<value optimized out>) at cpufunc.h:832
#6  0xffffffff807e4473 in trap (frame=0xfffffe083ed92860)
    at ../../../amd64/amd64/trap.c:415
#7  0xffffffff807c661c in calltrap () at ../../../amd64/amd64/exception.S:231
#8  0xffffffff804eab36 in softclock_call_cc (c=<value optimized out>,
    cc=0xffffffff80d79e80, direct=0) at ../../../kern/kern_timeout.c:749
#9  0xffffffff804eb029 in softclock (arg=0xffffffff80d79e80)
    at ../../../kern/kern_timeout.c:867
#10 0xffffffff804a2189 in intr_event_execute_handlers (
    p=<value optimized out>, ie=0xfffff80008291600)
    at ../../../kern/kern_intr.c:1336
#11 0xffffffff804a2466 in ithread_loop (arg=0xfffff800082aa880)
    at ../../../kern/kern_intr.c:1349
#12 0xffffffff8049f642 in fork_exit (
    callout=0xffffffff804a2380 <ithread_loop>, arg=<value optimized out>,
    frame=<value optimized out>) at ../../../kern/kern_fork.c:1072
#13 0xffffffff807c75ce in fork_trampoline ()
    at ../../../amd64/amd64/exception.S:972
#14 0x0000000000000000 in ?? ()
Current language:  auto; currently minimal
(kgdb)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-net mailing list