From patchwork Wed Nov 28 19:16:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 152341 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1481252ljp; Wed, 28 Nov 2018 11:17:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/UiJu1HB1N+bhItQGic9yD7gP/o9HwiX+Ru383LHR0ntRK0Rp8dKyYxZJ2ipap5B4DSd9N+ X-Received: by 2002:a17:902:70c6:: with SMTP id l6mr33148062plt.30.1543432620420; Wed, 28 Nov 2018 11:17:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543432620; cv=none; d=google.com; s=arc-20160816; b=NY3zxdqHTCBjyjaYgolMM2TUuHc4T6AP4bZYHhvRpjQw2Q/VRMR4/gtUyJJmzUM5Jo b+sfJHRI8KWlsJD3atEW1lSN3ZcCFjQ0+qbVlBHPeA8Nlygso68IV8YhK3OOoMBURVZX H0ocHU7Kn2sc6AVCidvXljlWAotcFfN9QI7Ld4/9cTXOC7s38oIgnGNe1J4lsL9yp90E t3WeO33XEvj44GWs/PCkjxY+Ty43Rmmp5jhYh3Q35MsDXw6F+N/uLYVsxUFKOgxA7KLZ NgU0KcGGgPHEAm0iL6sj6rPU0Te12fiLvXaft0dKk0CWjVsGKFDczErZEvybBgRVv7Tq v9ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=DJecFSV9pN+IjlhKyrrYfznVrQfHxXdCRdHS0KSiU8M=; b=S+yBOJ7K2ausK9qR4yVv3AeFSfFlubK2PDm7aTm/mNUy6diQLfvUkBGrYDxQ6QWgxV f3ogHe+bkyD32f4A/8eo3SSgtGcULuxYeAv0GjHZo/4zQUGfcPsSzpAKSY4hro4B2Aiw mEiwMP4rFaGC1T+9j7+5q7K2jmTVplQ4cowHjchRuOlVW33hWboGyMjsEBwmruVOcytr W8ENprwTrQwsC+r5VNq8Ky85Hj1YPnlbe2dZbhXKiuJMHbZfrZs11envjJmoOTSqQETa hHwm7xvYt/W1frcf8+/v3yOaU3oDFIBPe3UyJk4frTMiUc6vNThYRbOPGYWBFqFGm3pd AbcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="ZuBg/LLZ"; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id h8si8552235plr.343.2018.11.28.11.16.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Nov 2018 11:17:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="ZuBg/LLZ"; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 2DFF521A02937; Wed, 28 Nov 2018 11:16:59 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::42d; helo=mail-wr1-x42d.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id BBBDB21196218 for ; Wed, 28 Nov 2018 11:16:57 -0800 (PST) Received: by mail-wr1-x42d.google.com with SMTP id p4so27470371wrt.7 for ; Wed, 28 Nov 2018 11:16:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1fS82h/4ESmaoOgYD0oKkF/RNNzfpC98E/G0bOWijK4=; b=ZuBg/LLZ7RvLPvt4TBU89vjUBQB7ukcbrnN8P+mPjS3Y0l0vlFnYFhGI3UldWMugOg 3lVSeJjdSuaJAzCgo7nf5sXYqM8mLnqTBlcst7Pme2uujVbItDLM/PHCwca/3HEYNrAp YLWW7z2NNZI/6UehDJ5JtwQcEmKSmVI9RajXo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1fS82h/4ESmaoOgYD0oKkF/RNNzfpC98E/G0bOWijK4=; b=sC5KPVLR/Ja8IxyimdNzGPSM4NPcXY4kDkgqpGU47oK/UfzyDL+agNeQ4POwyvjvNv KXzLvjtfWbhkXBYS6qdDORFIR7fUD/0EElyV4GahQqTbFeVPwXxc2dU+FMhdp4NzCKbp V+HDCW1ZHHqoR/OxLqFIfaaT53WbGXdVYmSxNdv5FgH5igxbXx9bOJBQMZB3vVPOLK2v fhCOBQzOeECKSy8Hdo7u9DWQjGjqu9GohZPziQtWW4ApmaMa9hYK/e/ysfdEHtE5HQTx 5QElBxLBo12Szr6pSC7x17hsU+EGDyRsrrKSzZ/2fEcSRJiVVEJUNsHjWfNHpNAwwXcM dgWg== X-Gm-Message-State: AA+aEWbq/DdOWGnnEVb/zUzWQbaK58SinDG+ZUoC4MMVqS2mLFQhfVRJ 0E33kr5YbQW4QcaXNyxeAqnAQFvM7WQ= X-Received: by 2002:adf:b30f:: with SMTP id j15mr30380019wrd.46.1543432615513; Wed, 28 Nov 2018 11:16:55 -0800 (PST) Received: from harold.home ([2a01:cb1d:112:6f00:296f:238b:c20d:3626]) by smtp.gmail.com with ESMTPSA id b18sm6273104wrr.43.2018.11.28.11.16.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Nov 2018 11:16:54 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Wed, 28 Nov 2018 20:16:44 +0100 Message-Id: <20181128191646.31526-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [edk2] [RFC PATCH 0/2] ArmVirtQemu: unmap page #0 to catch NULL pointer dereferences X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Jones , Laszlo Ersek Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Rationale in patch #2. Patch #1 is a prerequisite patch that ensures that we no longer need page #0 to be mapped for the NOR flash driver to be able to expose it as a read/write block device. Cc: Laszlo Ersek Cc: Eric Auger Cc: Andrew Jones Cc: Philippe Mathieu-Daude Ard Biesheuvel (2): ArmVirtPkg/NorFlashQemuLib: disregard our primary FV ArmVirtPkg/QemuVirtMemInfoLib: trim the MMIO region mapping .../NorFlashQemuLib/NorFlashQemuLib.inf | 5 +++++ .../QemuVirtMemInfoLib/QemuVirtMemInfoLib.inf | 4 ++-- .../QemuVirtMemInfoPeiLib.inf | 2 ++ .../Library/NorFlashQemuLib/NorFlashQemuLib.c | 13 +++++++++++-- .../QemuVirtMemInfoLib/QemuVirtMemInfoLib.c | 18 +++++++++++------- 5 files changed, 31 insertions(+), 11 deletions(-) -- 2.19.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel