From patchwork Fri Jun 14 08:13:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Berg X-Patchwork-Id: 1947744 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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=CuzxZnFR; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=EAnKxJF7; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=sipsolutions.net header.i=@sipsolutions.net header.a=rsa-sha256 header.s=mail header.b=Uzko/55Q; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4W0sYH33PVz20XL for ; Fri, 14 Jun 2024 18:16:03 +1000 (AEST) 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=Ns0MKE7Dgrn75nuKeLb4utkAiO16Bj0pCSHGZCzvxrw=; b=CuzxZnFRkPU7F5 MzLkGlKPge8xR8WC337hqbscIKULzMALKkdK1BOYMVjBGDsdylSD2oZx3QMAD6a0A6wCfJKXIU5Dw 98jl4LbSCJI7HvzIFwiHO8a4oUdlUmFA9dzdRy3EGWknvv4brpKoVFWTXLclqFpZye4XVP4SnQ6hB pGmJNtoZizJFh7eThRWBFGfvsebunsAkE8w/U7aoKkO6JFBxLeBD9MsJEqPV9faEwhyLWxNmdcDPM rSvVt16evmys8t/RNiJZuWBEkGyVINt0bZfGaKNsLrx3hBM+NvxOPp8j4xj80HAQrZi+04o0BO5mT F9clzTVkgsHVw4xBcZoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sI264-00000001wuP-2qHC; Fri, 14 Jun 2024 08:15:44 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sI25f-00000001wY8-2YgL for hostap@bombadil.infradead.org; Fri, 14 Jun 2024 08:15:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=QMpRiG6WiyK9m5PNbw9QFWODTd3sEowzLH90CybaFt8=; b=EAnKxJF7XdyieKsRUSSeQpeo4r RGTQrBHJACqyi2nhviqmNkwUuTHstAiKcGHP3Lp+oEjsHjorCdewnxc8hYfSf2OZmy8NLGsUpM5g1 K/jExb8BLDQuWmSrm0Sn61E2LQALHp2hy7M78hs6Xwo8fsJIOuFf7goenLUAdlR77io5nEghbyqZi DwwBR9qGOpSel8MsUrgMbBvnx7NKH17gIF7L8FUMa1ThY2q1mRBo6gK3ZI0WeAS2P4flKtjBlbUg4 Ix17cu4Qci8FqlBdYXF8WOxdVB59ZsEa2f8dY0IAEALHoGChyX1MH0WygxQy/+EocB9BtBaB771JA ISegmjzw==; Received: from s3.sipsolutions.net ([2a01:4f8:242:246e::2] helo=sipsolutions.net) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sI25F-00000004CFm-3p1d for hostap@lists.infradead.org; Fri, 14 Jun 2024 08:15:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Content-Type:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=QMpRiG6WiyK9m5PNbw9QFWODTd3sEowzLH90CybaFt8=; t=1718352893; x=1719562493; b=Uzko/55Qn/eeZqxf2FIRp0g23omsD+O78+zrouVDcbWtSYj EEGa5Ax5l9oQIN9b9TEmmedksD+4ZmjNJfXsdAoJRIfNUs6oLHvpbihZrriEDW2DPeVGfrLmg9WyK 1Q4qNydhIRkba/3UdD84+FTEvWdfhC79wRjdrHTsM80GoZyfIQMyX5gcmzvSRIIgYZaUaLW/sgmxj wyVAvOWDxTwukg0uaPPTXy43iS63cwyCItrRYEfDNR9YRAzcPYJ2oNU1fS+5hnJJ5BWosmaeywVjb nPWHVFlttPPwxw19GEXnRXNyu9Pnmj9+lupRZC+Cl5IrquW7pb/ScbWW1vDYzQ5w==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1sI25E-0000000DZLi-2GNm; Fri, 14 Jun 2024 10:14:52 +0200 From: benjamin@sipsolutions.net To: hostap@lists.infradead.org Cc: Benjamin Berg Subject: [PATCH 10/10] tests: Ignore large memory blocks when searching for keys Date: Fri, 14 Jun 2024 10:13:51 +0200 Message-ID: <20240614081351.2088185-11-benjamin@sipsolutions.net> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240614081351.2088185-1-benjamin@sipsolutions.net> References: <20240614081351.2088185-1-benjamin@sipsolutions.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240614_091458_065487_395ED875 X-CRM114-Status: UNSURE ( 8.47 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "desiato.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: From: Benjamin Berg The supplicant will generally never allocate a memory block of that size. We can therefore assume that it belongs to ASAN and we need to ignore it. Signed-off-by: Benjamin Berg --- tests/hwsim/test_ap_psk.py | 5 +++++ 1 file changed, 5 insertions(+) Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 T_SCC_BODY_TEXT_LINE No description available. X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Benjamin Berg The supplicant will generally never allocate a memory block of that size. We can therefore assume that it belongs to ASAN and we need to ignore it. Signed-off-by: Benjamin Berg --- tests/hwsim/test_ap_psk.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/hwsim/test_ap_psk.py b/tests/hwsim/test_ap_psk.py index 085619f0d3..96550930dc 100644 --- a/tests/hwsim/test_ap_psk.py +++ b/tests/hwsim/test_ap_psk.py @@ -2658,6 +2658,11 @@ def read_process_memory(pid, key=None): for name in ["[heap]", "[stack]"]: if name in l: logger.info("%s 0x%x-0x%x is at %d-%d" % (name, start, end, len(buf), len(buf) + (end - start))) + + if end - start >= 256 * 1024 * 1024: + logger.info("Large memory block of >= 256MiB, assuming ASAN shadow memory") + continue + try: mem.seek(start) data = mem.read(end - start)