Message ID | 20240331200327.29141-1-eugeneuriev@gmail.com |
---|---|
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=TrkP+yyV; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V763q5vNRz1yWv for <incoming@patchwork.ozlabs.org>; Mon, 1 Apr 2024 08:00:23 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7530787F16; Sun, 31 Mar 2024 23:00:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="TrkP+yyV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9A1EF87DF1; Sun, 31 Mar 2024 22:03:33 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) (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 8DBC187D45 for <u-boot@lists.denx.de>; Sun, 31 Mar 2024 22:03:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=eugeneuriev@gmail.com Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-516a01c8490so797896e87.1 for <u-boot@lists.denx.de>; Sun, 31 Mar 2024 13:03:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711915411; x=1712520211; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=vI5N3Yjv79U0WZkAOUQFKBv5htNWZMUCTL4VA/e155A=; b=TrkP+yyVvTxEvVatcDDoEk505PUsbg4aob+lXOrfzVXhT7MzXuLxlzvnk1Z/o7LAlh kTqXt83HYO03l0O6PL8V1Pqn1egTDbQ23pwhFoe3Ome+e+UQ68yTx0LVN3ms8OiZQbJP T9sm8a5W9xy8Lx7+ETmKzVUGLq2ksdam+6f+FCUtfc3zJTliCmufO3UdU+Fttttfp8pc uHDEWpEokg15ESHBUxwAyUBvQa6v3vtDpyk/p6xd8eInUQGPXrsm602Bb5henmPyyhHJ Q1LELe8FhP6ZYGJIO+bpJ9LZrWiJ4tGW8juNMPfLrggiwIElnxBRNGKtITgNzwhl2+H4 bu3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711915411; x=1712520211; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vI5N3Yjv79U0WZkAOUQFKBv5htNWZMUCTL4VA/e155A=; b=EvUZ5sxgYUUGil7cSH+cn9aZgAkRKPu+TXgwt37+9GeargjRCQtJmG38gYwfCvOSWH 9TaW1c8zzW21u6tk44C0uhC3Bo6OokrS9rw/PwuvP+elMVXzGna5AnCKgNNdn+aILDjm Voaal3b7XD5tXkFdJVffNdT8FEv+tYc5M6OL7pvTaioZTInpE/PMCnLU7+LmBktmgCem y5rpGc6MRWK4WECzK2XH/7LXLlAw8178y/vHW4+e3brhyjuEgVBC7HQwQItL+lAzcSZa xyET04Fbuqj6y0cRYkUWDD7ztugoHd7C9hdFsZ3cDfeb0knOoeHwzOkleiWkgynPUTlT XPbg== X-Gm-Message-State: AOJu0YyI4VXzo08P2gp7wsFJq8KkKRe7vcYBrnvsrzlxi3PigOEFPjB4 CzPKPYJgqPbDfz/RMLmJ3ourspqUM/7Y9J+ygT/r2ezQuRfRphTP X-Google-Smtp-Source: AGHT+IGoC0H0rLEH5uoXEmQ4P2JeR/bRH8c2+ne8RmoixSXnX/1XDLfesRsO1O3FNj4thIe/YVppDw== X-Received: by 2002:a05:6512:20c9:b0:513:cfa9:be6b with SMTP id u9-20020a05651220c900b00513cfa9be6bmr2461406lfr.3.1711915410658; Sun, 31 Mar 2024 13:03:30 -0700 (PDT) Received: from BlackProtonRN.clients.gtk.su ([185.16.100.35]) by smtp.gmail.com with ESMTPSA id l5-20020ac25545000000b00516a08ce8f8sm425000lfk.269.2024.03.31.13.03.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Mar 2024 13:03:30 -0700 (PDT) From: Eugene Uriev <eugeneuriev@gmail.com> To: Tom Rini <trini@konsulko.com> Cc: u-boot@lists.denx.de, Eugene Uriev <eugeneuriev@gmail.com> Subject: [PATCH 0/9] mcheck implementation for U-Boot Date: Sun, 31 Mar 2024 23:03:18 +0300 Message-Id: <20240331200327.29141-1-eugeneuriev@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Sun, 31 Mar 2024 23:00:15 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
mcheck implementation for U-Boot
|
expand
|
On Sun, 31 Mar 2024 23:03:18 +0300, Eugene Uriev wrote: > There was no "mcheck" for U-Boot before. > > Since U-Boot has only 1 thread, and normally makes 4000+ - 6000+ > mallocs, it's better to use havier canaries to protect heap-chunks. > My variant uses 2x8 = 16byte-long protector. And > the multiplier could be changed to tune speed/protection tradeoff. > This protects not only against memset()-s, but against "near" wild > pointers too, and makes more probable to catch "distant" ones. > > [...] Applied to u-boot/master, thanks!