From nobody Fri Apr 08 13:39:54 2022 X-Original-To: ipfw@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 504BA1A91697 for ; Fri, 8 Apr 2022 13:39:54 +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 4KZfWG0c1Hz3rfG for ; Fri, 8 Apr 2022 13:39:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 E8AE4257C5 for ; Fri, 8 Apr 2022 13:39:53 +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 238DdrNG029962 for ; Fri, 8 Apr 2022 13:39:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 238DdrMk029961 for ipfw@FreeBSD.org; Fri, 8 Apr 2022 13:39:53 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: ipfw@FreeBSD.org Subject: [Bug 263078] kernel core generated from ipfw_chk() function Date: Fri, 08 Apr 2022 13:39:54 +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: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: aadhya@cisco.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ipfw@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: IPFW Technical Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-ipfw List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ipfw@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649425194; 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=4AruBGgY5Ox2lXpBP620yaIS2/6jv58+zW1Hg+rV6hI=; b=rxb75uoBz8VpSu0Yw/2bPZN6lKyOqxMjKyD7hMeG0fSia8qNzLnFFLVUSXFXfaAIlImZh9 oYCOJs3DcuYJ0s1bmqUqJa3/86x9TEYfUrlIrgrnFVbBPXpROWX4lxS8ca8WmK/jgySesd hC8WZKOp9WbNTxRhR7kyqnpV7In0Md1m+SMytxt77zW3R+jnSIw1J6KstkKRMPDAntcGnL QuRJlLFgj/k8cqd7g6cSB9WOXYBbbCSwuJtwUxcBCA1gn7G62/c6cWVirLixgTcgFn9I8C wW5qgkk6xWHpFJWHZY/OzecNPmLZ58RWCXvbddl6d2F6u0Vh2nphoMB+ucuXBQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649425194; a=rsa-sha256; cv=none; b=tH+JJE0j2kuVu/aQH3Hak9Lu3soPOzU0mv73l9T4mQ/6iV9O4GjFRyB7rv6/5hItyiJNOX XEBOvLzbME+WxIfxpUfIHgifHOxLktemqThGRoGhJR5gWUY+kNCd9ElJu3UPTJZ52IjCn0 H7xpUy/LvbwCBLBlLKek5YFXxfLxFHahSK/SjUKH7CTsk9Z4Pnz/HbXElpoHhFbZj6joCd m6+ZO82ONqogOR9A21ZV966qhpxMrpwCR40JOSjTBz3XKJvHUHQ6V7TA+1I3pIwbFYwsxt 1C+OoU+qSVgTfMuhjILngCGkGeIr6raYNmuKcN6CwWcKSUQqgkKSQnlRLZ4lBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263078 --- Comment #2 from aadhya --- Thanks for the info. We will implement the fix and try. Based on further investigation using objdump and disassemble ipfw_chk(), it looks like crash happened at this particular instruction : 0xffffffff807a431f : movzwl 0x2(%rcx),%r12d=20=20=20 Below is the instruction set in details : =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D * Skip disabled rules, and re-enter * the inner loop with the correct * f_pos, f, l and cmd. * Also clear cmdlen and skip_or */ for (; f_pos < chain->n_rules - 1 && 0xffffffff807a42ff : add $0x8,%rsi 0xffffffff807a4303 : cmp %ecx,%eax 0xffffffff807a4305 : jl 0xffffffff807a42f0 0xffffffff807a4307 : jmp 0xffffffff807a4311=20 (V_set_disable & (1 << chain->map[f_pos]->set)); f_pos++) ; /* Re-enter the inner loop at the skipto rule. = */ f =3D chain->map[f_pos]; 0xffffffff807a4309 : mov 0xffffffff81011110,%rbx 0xffffffff807a4311 : mov %rax,-0xe8(%rbp) 0xffffffff807a4318 : movslq %eax,%rcx 0xffffffff807a431b : mov (%rbx,%rcx,8),%rcx 0xffffffff807a431f : movzwl 0x2(%rcx),%r12d 0xffffffff807a4324 : xor %eax,%eax 0xffffffff807a4326 : mov %rcx,-0x90(%rbp) 0xffffffff807a432d : lea 0x20(%rcx),%r14 0xffffffff807a4331 : xor %r15d,%r15d 0xffffffff807a4334 : mov %r8d,-0x44(%rbp) 0xffffffff807a4338 : jmpq 0xffffffff807a50b0 0xffffffff807a433d : cmpl $0x0,-0x80(%rbp) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Thanks !!! --=20 You are receiving this mail because: You are the assignee for the bug.=