From nobody Mon Jun 19 03:59:25 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Qkwxn3gvJz4fHbt for ; Mon, 19 Jun 2023 03:59:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qkwxn0H5mz4ZYL for ; Mon, 19 Jun 2023 03:59:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687147165; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oE8ZIsnmtEc5odDuAFriZxuaTSouo/5URzARhi8naYA=; b=Rho8Iu3nwzxSTyK67ylet12TZgayBrC78jUW9gyZOuIrofkBaFIclZDRVw9hU6IymBRdUT GFur1Zv2ODP+JDWuF6cYotWwbkB8DhkF5YZ6FlfrdB1nTB9zqEYOIyEwm3BrzG06gfK9O5 PKP882IHAN9nvGpWFZ+YkqouDExqEt2co9E+JkPZtKCckh+iAifroevRzhIKqvLp9Z4kuR /Hbfwz/hJWdi/BLrznxXSSVGu6cRkE2Mg7VsKN/Sw9EMgb/5BantR/Gg7W716iEB9aHr5Y 11vp2K+Az9upD3s1XVYJtvCAKiy1/vuDUaIBoG84qxtsX2FfCURCuLnbFK6/UQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687147165; a=rsa-sha256; cv=none; b=w/fsZY6pKYqsQF9d6llCohz961T+s0R5BFgivBpoYLC4SF/GOYhdFeJiVHoMiK92mA6/JV rQFAjgHD3hn1U5/giwqSR0CmIivz2yzhz+XKMavLYQCw/Uut3j5enxv3GzV7DnTexR7+NP SKYHwDsucrSufgXjD7hm7Ue486pf2qLgDWHZnVGugKVDbvW/LafOw34bIxNwUS3jVfpQKd a99EouhhkIstPkvRvhh2jbLpsrb3wjiA+eIFU/UKDV8fZhkYxa1GpCPN4/zlDb3g9R+EfA oaDS0t0/mBuYPbfxJmoxGvLXg8djCC9kRxfmR6q0IpEYrddWOUIN9z/tc02ZEQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Qkwxm5LDQz12K7 for ; Mon, 19 Jun 2023 03:59:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 35J3xOVu060601 for ; Mon, 19 Jun 2023 03:59:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 35J3xOQq060600 for bugs@FreeBSD.org; Mon, 19 Jun 2023 03:59:24 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 272073] Kernel Panic in IPFW when using Radix Tables for Captive portal Date: Mon, 19 Jun 2023 03:59:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: IntelNetworking, crash X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: burak.sn@outlook.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: rep_platform short_desc keywords cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272073 Alfa changed: What |Removed |Added ---------------------------------------------------------------------------- Hardware|Any |amd64 Summary|Kernal Panic in IPFW when |Kernel Panic in IPFW when |using Captive portal |using Radix Tables for | |Captive portal Keywords| |IntelNetworking, crash CC| |ae@FreeBSD.org, | |burak.sn@outlook.com, | |kp@freebsd.org --- Comment #1 from Alfa --- Hi i implemented a sample captive portal on FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64 and i used IPFW radix tables= and dummynet When i log in to captive portal FreeBSD experiences Fatal trap shown below Fatal trap 12: page fault while in kernel mode cpuid =3D 3; apic id =3D 03 fault virtual address =3D 0x2fc fault code =3D supervisor read data, page not present instruction pointer =3D 0x20:0xffffffff810ada90 stack pointer =3D 0x28:0xfffffe00c23302e0 Fatal trap 12: page fault while in kernel mode frame pointer =3D 0x28:0xfffffe00c23302e0 cpuid =3D 6; apic id =3D 06 fault virtual address =3D 0x2fe fault code =3D supervisor read data, page not present instruction pointer =3D 0x20:0xffffffff810ada90 stack pointer =3D 0x28:0xfffffe00c23d52e0 frame pointer =3D 0x28:0xfffffe00c23d52e0 code segment =3D base 0x0, limit 0xfffff, type 0x1b code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 1654 (nginx) trap number =3D 12 panic: page fault cpuid =3D 3 time =3D 1687084663 KDB: stack backtrace: #0 0xffffffff80c53dc5 at kdb_backtrace+0x65 #1 0xffffffff80c06741 at vpanic+0x151 #2 0xffffffff80c065e3 at panic+0x43 #3 0xffffffff810b1fa7 at trap_fatal+0x387 #4 0xffffffff810b1fff at trap_pfault+0x4f #5 0xffffffff81088e78 at calltrap+0x8 #6 0xffffffff80c9a99f at m_pullup+0x1af #7 0xffffffff821b3372 at ipfw_chk+0x1082 #8 0xffffffff821b7f2c at ipfw_check_frame+0x13c #9 0xffffffff80d429c7 at pfil_run_hooks+0x97 #10 0xffffffff80d239e4 at ether_output_frame+0x94 #11 0xffffffff80d23864 at ether_output+0x684 #12 0xffffffff80dbd736 at ip_output+0x1316 #13 0xffffffff80dd43af at tcp_output+0x1dbf #14 0xffffffff80de638d at tcp_usr_send+0x17d #15 0xffffffff80c03f54 at vn_sendfile+0x12a4 #16 0xffffffff80c04e97 at sendfile+0x117 #17 0xffffffff810b289c at amd64_syscall+0x10c Uptime: 20h5m39s # ipfw table all list --- table(test_lan), set(0) --- --- table(lan_ips_2), set(0) --- 192.168.30.1/32 0 --- table(lan_ips_5), set(0) --- 10.0.100.1/32 0 --- table(test_captiveportal), set(0) --- em3 2000 em2 5000 --- table(test_auth_up_2), set(0) --- --- table(test_auth_up_5), set(0) --- --- table(test_auth_down_2), set(0) --- --- table(test_auth_down_5), set(0) --- --- table(test_blocked_mac_2), set(0) --- --- table(test_blocked_mac_5), set(0) --- --- table(test_allowedmacup_2), set(0) --- 78:60:4e:e8:ca:f0/48 1004 5c:d1:d7:ec:a4:24/48 1004 38:1e:5b:b4:8b:e0/48 1004 88:90:47:20:ff:52/48 1004 --- table(test_allowedmacup_5), set(0) --- --- table(test_blocked_mac_all), set(0) --- --- table(test_allowedmacdown_2), set(0) --- 78:60:4e:e8:ca:f0/48 4 5c:d1:d7:ec:a4:24/48 4 38:1e:5b:b4:8b:e0/48 4 88:90:47:20:ff:52/48 4 --- table(test_allowedmacdown_5), set(0) --- # kldstat Id Refs Address Size Name 1 69 0xffffffff80200000 1f3e2d0 kernel 2 4 0xffffffff82140000 47978 ipfw.ko 3 2 0xffffffff82188000 71770 pf.ko 4 1 0xffffffff821fa000 f8a0 carp.ko 5 1 0xffffffff82600000 3c4778 zfs.ko 6 1 0xffffffff82520000 3250 ichsmb.ko 7 1 0xffffffff82524000 2180 smbus.ko 8 1 0xffffffff82527000 12520 dummynet.ko 9 1 0xffffffff8253a000 42a0 ipfw_nat.ko 10 1 0xffffffff8253f000 c852 libalias.ko 11 1 0xffffffff8254c000 2240 pflog.ko 12 1 0xffffffff8254f000 2224 speaker.ko 14 1 0xffffffff8255a000 2548 if_enc.ko 16 1 0xffffffff8258c000 52c0 ng_pppoe.ko 17 8 0xffffffff82592000 aac8 netgraph.ko 18 1 0xffffffff8259d000 39c0 ng_socket.ko 19 1 0xffffffff825a1000 43c4 ng_mppc.ko 20 1 0xffffffff825a6000 20b0 rc4.ko 21 1 0xffffffff825a9000 2398 ng_iface.ko 22 1 0xffffffff825ac000 61e8 ng_ppp.ko 23 1 0xffffffff825b3000 2138 ng_tee.ko 24 1 0xffffffff825b6000 31c8 ng_ether.ko 25 1 0xffffffff825ba000 3468 ipdivert.ko 26 1 0xffffffff825be000 2138 ng_tcpmss.ko em0@pci0:2:0:0: class=3D0x020000 rev=3D0x00 hdr=3D0x00 vendor=3D0x8086 devi= ce=3D0x10d3 subvendor=3D0x8086 subdevice=3D0x0000 vendor =3D 'Intel Corporation' device =3D '82574L Gigabit Network Connection' class =3D network subclass =3D ethernet --=20 You are receiving this mail because: You are the assignee for the bug.=