From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C3A15C433EF for ; Mon, 30 May 2022 10:01:43 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B67A6843A7; Mon, 30 May 2022 12:01:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="R6/sH9qf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8BF42843B3; Mon, 30 May 2022 12:00:48 +0200 (CEST) Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 28111843B7 for ; Mon, 30 May 2022 12:00:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=3yJWUYgYKBmE9RBTKKFNNFKD.BNLT-ANNSKHRSR.CDMW.CD@flex--ascull.bounces.google.com Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-2f4dfd09d7fso90481257b3.0 for ; Mon, 30 May 2022 03:00:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=DI4Tu/7WXHvvEnNTfAPTYnxAjxPFX9Q/wYzU2gRDbiE=; b=R6/sH9qfYH4kpdz5/IqFJBzqaGDgEOjW3lMOKKn1HkAphJLFGassSiWAGVDyCTYml7 iBptSiAKI0PHMGxFju97Nhbln7Uzoz06MSVJyuOmf/K0pIQkyaalr8d7hd6WlJQ/DvBl OwT3MyDRzPO/1LByDmlBbllcLhXVWlcBrMGPPrCv5kIxlvZrMNDr6/ngA/Tm/mz6QoN7 FO5xs0J1Q3CRQTp8BNrZ7kOg+IHf+y/y1RyT8cUAA8nABItNWbvtOF2/nl5lqQoruhjl qUPxCN+jOOCGiIfzrThw3ST+AAsq1Dwk2o0L7TNkh4hS67Jz7p/+ymSkVLGzDHDjzT0R Cgpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=DI4Tu/7WXHvvEnNTfAPTYnxAjxPFX9Q/wYzU2gRDbiE=; b=f8WEM+IqzSqebA36GrrK4W06ShvbDzgWR1/nNDJffUaDv2rcoClT/0HgS2yY9by/jH QrS3cm94ZqFE6GrLfdC3okiTIzS/SNy2Rz2R6STtP5mGRPXY6/LK5e0BH6SazZX4ASEZ jvZhQnh+anGdIGg58roWVzF6nSH+JsU1OuncO72lO+wNV2mpkOiGk1U71e16QadtwDz+ xayPJvYAiTQZLD17W17xiVxy0RE2HRDwSgYR6WFKAXynE0Tw+0C+pjsho9XHQG74oTq8 4Hq4fXfgM6Oy7Sb38n635puGRw9/ViDN2RLtzKXXb3aTfInIqCCt1/MAa3GRXhMrIqAI 38Nw== X-Gm-Message-State: AOAM533OBC2jzfldMGDdNgeJot4/BHr6HOtSBCk9WrCSIGG3pWjITYtk XXAZoMm1FsDejeQAHvjVyxJQwvsfUYcSSL6lzkqC63K8G3c/YYbf+YjCXQcRWIJcb870X5cOjKH 81uGnDnDrxSGE9oEPVbwId8R3IZmfuKJYdsz7OZgT2fH4o2sO7twXuBKqhzQ= X-Google-Smtp-Source: ABdhPJy7D4StVesX804j8GQ0uGGXgB5SRXLCe2Hx7FDCp8Ni4mikhbCUlDXrHpe5dqZZrjOiJZWhThwFaTQ= X-Received: from ascull.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:1510]) (user=ascull job=sendgmr) by 2002:a0d:d7d7:0:b0:30c:5179:c0a8 with SMTP id z206-20020a0dd7d7000000b0030c5179c0a8mr3791753ywd.401.1653904840114; Mon, 30 May 2022 03:00:40 -0700 (PDT) Date: Mon, 30 May 2022 10:00:06 +0000 In-Reply-To: <20220530100013.3753780-1-ascull@google.com> Message-Id: <20220530100013.3753780-7-ascull@google.com> Mime-Version: 1.0 References: <20220530100013.3753780-1-ascull@google.com> X-Mailer: git-send-email 2.36.1.124.g0e6072fb45-goog Subject: [PATCH v3 06/13] test/py: test_stackprotector: Disable for ASAN From: Andrew Scull To: u-boot@lists.denx.de Cc: sjg@chromium.org, trini@konsulko.com, xypron.glpk@gmx.de, jonbottarini@google.com, seanga2@gmail.com, Andrew Scull Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean The stack protector test intentionally overflows a buffer in order to corrupt the stack canary so that it can test that the corruption is detected as expected. However, this is incompatible with ASAN, which detects the buffer overflow and interrupts the test, so disable the test for such configurations. Signed-off-by: Andrew Scull --- test/py/tests/test_stackprotector.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/py/tests/test_stackprotector.py b/test/py/tests/test_stackprotector.py index b009437e5e..b87392c54f 100644 --- a/test/py/tests/test_stackprotector.py +++ b/test/py/tests/test_stackprotector.py @@ -5,6 +5,7 @@ import pytest import signal @pytest.mark.buildconfigspec('cmd_stackprotector_test') +@pytest.mark.notbuildconfigspec('asan') def test_stackprotector(u_boot_console): """Test that the stackprotector function works.""" -- 2.36.1.124.g0e6072fb45-goog