From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Google-Smtp-Source: AFSGD/VEfHgZGr4WCAl4DJoHC0WRRq6aVfjHPWXsaLJ4mRHfYMggPX9pZSdl9WmcunDvUtvAn/dEfg== 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 Cc: Ard Biesheuvel , Laszlo Ersek , Eric Auger , Andrew Jones , Philippe Mathieu-Daude 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: [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: , X-List-Received-Date: Wed, 28 Nov 2018 19:16:58 -0000 Content-Transfer-Encoding: 8bit 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