Message ID | 20220401231349.73318-1-masashi.honma@gmail.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=cZd/fvj+; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=ZSlY9RZB; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (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) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KVbcZ4Bjfz9sFk for <incoming@patchwork.ozlabs.org>; Sat, 2 Apr 2022 10:15:26 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=B2uX6c//Q2XetF1vN8oJJoJzIFWIdaZZZWTbs37Hq5M=; b=cZd/fvj+ybhTpD GDTNPuPSshW1ej63PBFVbQTMppp9GLcGWBUoksRtypoHM4oPpmpOmGD0F+f8EP/GdQUPLPQ9SQlQQ 8Lv31Mki2G9knmGn2TqM6W2XzRGHPOXPhT/Exik+6L6XffBg2fbK965Jx4dZtCZOOT8RrqGrPlPTd ZwtfxvKYqOShps/vAHW27MtXoCbNhv0uv8T/RlvgYSdKFyKWiA0aXRgtG19j87uAcCkqIeE8I1q5v plhphnNoWlbrGjfgYD0LAEWAjfsOvUVmwJmt058BV3SlenTNweCf3jU7Uy8adYgyHLmb8tBuhkJyV DW8IsE+2YIip8Lp+sW+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1naQTC-007WzV-HC; Fri, 01 Apr 2022 23:14:18 +0000 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1naQT9-007Wz2-Ls for hostap@lists.infradead.org; Fri, 01 Apr 2022 23:14:16 +0000 Received: by mail-pj1-x102f.google.com with SMTP id bx5so3642207pjb.3 for <hostap@lists.infradead.org>; Fri, 01 Apr 2022 16:14:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2p1r49MA5zBTWdHZV0sR48B0QP0gbddEVZ/8pLYVg+U=; b=ZSlY9RZBaFIfAN5B2CniZpp99SyKJpdVO2IVJMAzMSksxD7sr8SEy7WYSAU8emwlEg VzLiWoBiR1LLViuJJJe77EJKxP5fr1dW7Ny8mGsA4P5ZL4clPYzvb/fdxdI5W+ujfH/0 LUeENCktnmF6XCdqizgOzcKTwp7mLUM/9Op4ONVFY13evuliU7CZeLIytT7Z2h2NhnKb rzktaHc+t/Vt5x+2IqoM/fao/ZNMPY2ThnjqvcmgOQAdSGdEVlWSTSE6lF52d4+oI4le qt9am5ZoXmpgpOVbTmN0DjVe6VI/BpniBugvedjuekTJ/1huierqmy7aGuYSO6BJ2/yo or9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2p1r49MA5zBTWdHZV0sR48B0QP0gbddEVZ/8pLYVg+U=; b=vdmRILtDW8+uVGhq2lsL/EhbjaXzRbxLy8oNne+U0bXBh7J9cKATHdIOQHoJ7b8BMV wmk2n8PO1tbkkUu53Dxvef6VXop5ouKwW6t7CsOquIka32cs4SqR2BU5e4oFdSoBSSkd B52Ao2oyPfU35EM9mMUVw8uv9oWzlqjR3WicIGch9LtcI2y3jk1adG2x9TR34FMUAGaX 66DGYzDaBeyMHEqhIGVihvyzsjkqlVU3pU10wxF5CJuORAjpUjbrFpyVQ+aruzQIpKyr QIESKbGcDUGZcnO4FELHRY6ztzy5aesuOKo8cPEzV7cZXzo/ZqQ3Jc1bbnoruEKsQGl2 IJWA== X-Gm-Message-State: AOAM530WQvCVDPMAWXF8Q8vrqvsiRB0XEkLeUKVZy0B2K4YhAhTjbITE XmYUsP3TUdXAHIG99+/GuZGbG3ygtXvjPg== X-Google-Smtp-Source: ABdhPJx1bjEdGpC/vXm0Zw5nQ7L+WlgvOLadw4lCf1Q2GTz4MKmN6FgMku3AOlWGPb26ueHAbex1Yw== X-Received: by 2002:a17:902:e791:b0:151:dbbd:aeae with SMTP id cp17-20020a170902e79100b00151dbbdaeaemr48869592plb.171.1648854853268; Fri, 01 Apr 2022 16:14:13 -0700 (PDT) Received: from iiyama2004.flets-east.jp ([2409:11:53c0:1f00:1b1d:d372:e97e:923a]) by smtp.gmail.com with ESMTPSA id w79-20020a627b52000000b004fd8d1e5489sm3981099pfc.87.2022.04.01.16.14.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Apr 2022 16:14:13 -0700 (PDT) From: Masashi Honma <masashi.honma@gmail.com> To: hostap@lists.infradead.org Cc: Masashi Honma <masashi.honma@gmail.com>, Alexander Clouter <alex+hostapd@coremem.com> Subject: [PATCH v2] Fix SIGSEGV of eapol_test Date: Sat, 2 Apr 2022 08:13:49 +0900 Message-Id: <20220401231349.73318-1-masashi.honma@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220401230613.70157-1-masashi.honma@gmail.com> References: <20220401230613.70157-1-masashi.honma@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220401_161415_741245_557DB558 X-CRM114-Status: UNSURE ( 9.29 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Running eapol_test to FreeRADIUS 3.0.25 causes trailing SIGSEGV. WPA_TRACE: eloop SIGSEGV - START [1]: ./eapol_test(+0x67de6) [0x55b84fa4ade6] eloop_sigsegv_handler() ../src/utils/eloop.c:123 [2]: /lib/x86_64-linux-gnu/libc.so.6(+0x430c0) [0x7fec94ad20c0] [3]: ./ea [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:102f listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [masashi.honma[at]gmail.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <hostap.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/hostap>, <mailto:hostap-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/hostap/> List-Post: <mailto:hostap@lists.infradead.org> List-Help: <mailto:hostap-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/hostap>, <mailto:hostap-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Hostap" <hostap-bounces@lists.infradead.org> Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
[v2] Fix SIGSEGV of eapol_test
|
expand
|
On Sat, Apr 02, 2022 at 08:13:49AM +0900, Masashi Honma wrote:
> Running eapol_test to FreeRADIUS 3.0.25 causes trailing SIGSEGV.
Thanks, applied.
diff --git a/src/common/dpp_tcp.c b/src/common/dpp_tcp.c index a6cca9a13..c83fb2da4 100644 --- a/src/common/dpp_tcp.c +++ b/src/common/dpp_tcp.c @@ -2243,6 +2243,9 @@ bool dpp_tcp_conn_status_requested(struct dpp_global *dpp) { struct dpp_connection *conn; + if (!dpp) + return false; + dl_list_for_each(conn, &dpp->tcp_init, struct dpp_connection, list) { if (conn->auth && conn->auth->conn_status_requested) return true;
Running eapol_test to FreeRADIUS 3.0.25 causes trailing SIGSEGV. WPA_TRACE: eloop SIGSEGV - START [1]: ./eapol_test(+0x67de6) [0x55b84fa4ade6] eloop_sigsegv_handler() ../src/utils/eloop.c:123 [2]: /lib/x86_64-linux-gnu/libc.so.6(+0x430c0) [0x7fec94ad20c0] [3]: ./eapol_test(dpp_tcp_conn_status_requested+0x4) [0x55b84fa7e674] dpp_tcp_conn_status_requested() ../src/common/dpp_tcp.c:2246 [4]: ./eapol_test(wpas_dpp_connected+0x3c) [0x55b84fa816dc] wpas_dpp_connected() dpp_supplicant.c:437 [5]: ./eapol_test(wpa_supplicant_set_state+0x48d) [0x55b84fc12c9d] wpa_supplicant_set_state() wpa_supplicant.c:1067 [6]: ./eapol_test(eapol_sm_step+0x4b4) [0x55b84fb3b994] sm_SUPP_PAE_Step() ../src/eapol_supp/eapol_supp_sm.c:419 eapol_sm_step() ../src/eapol_supp/eapol_supp_sm.c:989 [7]: ./eapol_test(eapol_sm_rx_eapol+0x190) [0x55b84fb3c060] eapol_sm_rx_eapol() ../src/eapol_supp/eapol_supp_sm.c:1293 [8]: ./eapol_test(+0x24760f) [0x55b84fc2a60f] ieee802_1x_decapsulate_radius() eapol_test.c:834 ieee802_1x_receive_auth() eapol_test.c:945 [9]: ./eapol_test(+0x248d46) [0x55b84fc2bd46] radius_client_receive() ../src/radius/radius_client.c:937 [10]: ./eapol_test(+0x68323) [0x55b84fa4b323] eloop_sock_table_dispatch() ../src/utils/eloop.c:606 [11]: ./eapol_test(eloop_run+0x251) [0x55b84fa4be51] eloop_sock_table_dispatch() ../src/utils/eloop.c:597 eloop_run() ../src/utils/eloop.c:1234 [12]: ./eapol_test(main+0x8cf) [0x55b84fa30d6f] main() eapol_test.c:1517 WPA_TRACE: eloop SIGSEGV - END Aborted (core dumped) Reported-by: Alexander Clouter <alex+hostapd@coremem.com> Signed-off-by: Masashi Honma <masashi.honma@gmail.com> --- src/common/dpp_tcp.c | 3 +++ 1 file changed, 3 insertions(+)