Date: Thu, 09 Feb 2023 17:10:11 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 269441] crash running jail network command from different jail Message-ID: <bug-269441-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269441 Bug ID: 269441 Summary: crash running jail network command from different jail Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: olivier@freebsd.org Created attachment 240030 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D240030&action= =3Dedit core dump text kernel crash if running a network command (like a ping) in a jail/vnet from= a shell running in a different fib. Tested on: FreeBSD 14.0-CURRENT FreeBSD 14.0-CURRENT #36 main-n260757-ded5f2954e1a: W= ed Feb 8 22:32:37 CET 2023=20=20 How to reproduce: -------- #!/bin/sh echo "Creating an empty jail/vnet..." ifconfig lo888 create jail -c name=3Dbug persist vnet vnet.interface=3Dlo888 jexec bug ifconfig lo888 1.1.1.1/24 up echo "Starting a shell on fib 2..." sysctl net.fibs=3D3 setfib 2 sh echo "crashing by generating network traffic into jail from fib 2:" jexec bug ping -c 1 1.1.1 ---------- core dump extract (full log attached): (kgdb) #0 __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:59 #1 dump_savectx () at /usr/src/sys/kern/kern_shutdown.c:403 #2 0xffffffff80be8d48 in dumpsys (di=3D0x0) at /usr/src/sys/x86/include/dump.h:87 #3 doadump (textdump=3D1) at /usr/src/sys/kern/kern_shutdown.c:432 #4 kern_reboot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:539 #5 0xffffffff80be928f in vpanic (fmt=3D<optimized out>, ap=3Dap@entry=3D0xfffffe0429c18900) at /usr/src/sys/kern/kern_shutdown.= c:983 #6 0xffffffff80be90c3 in panic (fmt=3D<unavailable>) at /usr/src/sys/kern/kern_shutdown.c:907 #7 0xffffffff810b88c9 in trap_fatal (frame=3D0xfffffe0429c189f0, eva=3D0) at /usr/src/sys/amd64/amd64/trap.c:955 #8 0xffffffff810b891f in trap_pfault (frame=3D0xfffffe0429c189f0, usermode=3Dfalse, signo=3D<optimized out>, ucode=3D<optimized out>) at /usr/src/sys/amd64/amd64/trap.c:763 #9 <signal handler called> #10 0x0000000000000000 in ?? () #11 0xffffffff80d912ed in fib4_lookup (fibnum=3D<optimized out>, dst=3D..., scopeid=3Dscopeid@entry=3D0, flags=3Dflags@entry=3D0, flowid=3Dflowid@e= ntry=3D0) at /usr/src/sys/netinet/in_fib.c:121 #12 0xffffffff80d9aa54 in in_pcbladdr (inp=3Dinp@entry=3D0xfffff81109481380, faddr=3Dfaddr@entry=3D0xfffff810970368a8, laddr=3Dladdr@entry=3D0xfffff810970368a4, cred=3D0xfffff81110c47200) at /usr/src/sys/netinet/in_pcb.c:1145 #13 0xffffffff80da8df1 in rip_send (so=3D<optimized out>, pruflags=3D<optimized out>, m=3D0xfffff81097036800, nam=3D<optimized ou= t>, control=3D<optimized out>, td=3D<optimized out>) at /usr/src/sys/netinet/raw_ip.c:496 #14 0xffffffff80c90839 in sosend_generic (so=3D0xfffff81097071b40, addr=3D0= x0, uio=3D0xfffffe0429c18ce8, top=3D0xfffff81097036800, control=3D0x0, flag= s=3D0, td=3D0xfffffe01bff4b740) at /usr/src/sys/kern/uipc_socket.c:1783 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269441-227>