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::441; helo=mail-wr1-x441.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) (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 424892117D76B for ; Fri, 30 Nov 2018 03:28:34 -0800 (PST) Received: by mail-wr1-x441.google.com with SMTP id t27so4943998wra.6 for ; Fri, 30 Nov 2018 03:28:34 -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=xo1a7vY2B0NUZQxdc7PXhDSjRt1cMqsf4FEz6xQT8w4=; b=gF297wnv9KiRaZ0EOtWiGAEqjYsekDIK27APKCrfGmTw0lAtB+lkxe4nOG+yRjqQQ0 7cBTeC47SebtWIbQtgm9loYMW8RRrWav0uZyS/ENe9N99r/gWykR6LgDZ2OimNPRMBkJ Oowb2hB209ODFSG90XJLrENqC0LgAFAbrElVM= 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=xo1a7vY2B0NUZQxdc7PXhDSjRt1cMqsf4FEz6xQT8w4=; b=Thmwks39MkVhiOtS1j9izwmiF6cEl9h+Jta73LK39JhfRd7Unc+7MxqINYipIKarYY hfPrghrpyrErc2QrEDr/e1ZKqpWr/JwTsVY6Bvq/q4ysDziG2PZcmoacoh4tEp/PZCYv 80lrIXRlnfRkM6EyowVfGwZ8DdzgNv/oX8QPWEzUBJkivGv479Zy4IdCdhpwc38NH7PJ PUCKVBSJcpWzThBVama/+RkeyrEs91kE6ZE9DOQXVAN3LvEUgZtGa8GYvxYyV5UD2gbk jQbBC7PD8yVj5oeXEtwcAoKNWcukt4vzyqdynlY72yQ9e+6G+vtGc8qR2sO7FRPRrQuu 4POQ== X-Gm-Message-State: AA+aEWaWqm6nQ543pZtsuC0HgwI4T5xc8nySpmwVWlSntYI5lb17BlIs 9tf5TGQkYQZNIBhm4Vb/GhRn7qUV+BM= X-Google-Smtp-Source: AFSGD/Xdhes6doeU9ug6iwtwJul32YN5LPDujRaswKcgR7cFi61Qhdxnvznk88icVpP50lTLRbPFxA== X-Received: by 2002:a5d:6a42:: with SMTP id t2mr4993145wrw.50.1543577313064; Fri, 30 Nov 2018 03:28:33 -0800 (PST) Received: from harold.home ([2a01:cb1d:112:6f00:f070:d240:312e:9f99]) by smtp.gmail.com with ESMTPSA id h16sm4340570wrs.60.2018.11.30.03.28.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Nov 2018 03:28:32 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Cc: Ard Biesheuvel , Leif Lindholm , Laszlo Ersek , Eric Auger , Andrew Jones , Philippe Mathieu-Daude Date: Fri, 30 Nov 2018 12:28:25 +0100 Message-Id: <20181130112829.12173-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [PATCH v2 0/4] 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: Fri, 30 Nov 2018 11:28:35 -0000 Content-Transfer-Encoding: 8bit Rationale in patch #4. Patch #3 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. Patches #1 and #2 are fixes for the ARM version of the ArmMmuLib driver for bugs that get triggered by these changes. Cc: Leif Lindholm Cc: Laszlo Ersek Cc: Eric Auger Cc: Andrew Jones Cc: Philippe Mathieu-Daude Ard Biesheuvel (4): ArmPkg/ArmMmuLib ARM: handle unmapped section in GetMemoryRegion() ArmPkg/ArmMmuLib ARM: handle unmapped sections when updating permissions ArmVirtPkg/NorFlashQemuLib: disregard our primary FV ArmVirtPkg/QemuVirtMemInfoLib: trim the MMIO region mapping .../NorFlashQemuLib/NorFlashQemuLib.inf | 5 ++++ .../QemuVirtMemInfoLib/QemuVirtMemInfoLib.inf | 4 ++-- .../QemuVirtMemInfoPeiLib.inf | 2 ++ ArmPkg/Drivers/CpuDxe/Arm/Mmu.c | 3 +++ ArmPkg/Library/ArmMmuLib/Arm/ArmMmuLibCore.c | 8 +++++-- .../Library/NorFlashQemuLib/NorFlashQemuLib.c | 13 +++++++++-- .../QemuVirtMemInfoLib/QemuVirtMemInfoLib.c | 23 +++++++++++++------ 7 files changed, 45 insertions(+), 13 deletions(-) -- 2.19.1