Message ID | 20200619161621.644540-2-seth.forshee@canonical.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49pP7h16PSzB473; Sat, 20 Jun 2020 02:16:31 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1jmJgp-00025G-OL; Fri, 19 Jun 2020 16:16:27 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <seth.forshee@canonical.com>) id 1jmJgn-00024v-Un for kernel-team@lists.ubuntu.com; Fri, 19 Jun 2020 16:16:25 +0000 Received: from mail-il1-f198.google.com ([209.85.166.198]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <seth.forshee@canonical.com>) id 1jmJgn-0003Z5-Jh for kernel-team@lists.ubuntu.com; Fri, 19 Jun 2020 16:16:25 +0000 Received: by mail-il1-f198.google.com with SMTP id x63so6763918ilk.8 for <kernel-team@lists.ubuntu.com>; Fri, 19 Jun 2020 09:16:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=D7YsGSyHRip+TZFLXlLyMc+vJKnHoZ1C6gCCK6mFUz0=; b=MGXtAFuC8unlq+ZZAfevMHP33QXIDbZ86FCBOSVDRmnAT/iNNSwYGIz1CpENimjLmk S7vmZQpGliLvSPJX660nL0b+lCMMOnqjDPrmA1NCapoZN54ncY73t8oSkBykCJvO9SFs 0g7HQxq8do86ctZSGwAfomuBByPnXjMVKF6p6FYbHrscA6FPufMagC4zk3VCemlae6Bk tljdjZAN/nKtS/MsiYISOjTVpuyQSep0eEaO2+ZzVgz0kDi73Zr/WhcYCToVA62ueXav 72OEJ7DW1NHEY5wDnjFcUCd3cvdhjmfNujOxbxju0k5Zwxbg54Uu2UtADikwOlWYEdVf HBKg== X-Gm-Message-State: AOAM532IPK4haoUseY0JrmeMesnjXY24GF0LRNGxphtwhNaq/B0z/DD6 a0ukYN63n57iC+MJ/1PD5L5YSKvt/aUs+lskLn6rE+SJ5yVC1ZavntVdLd7pZNAKuasfVUGwWFy rWwmBR1afsyAH3pJULCLYHqv0kXI64XAMlIhdAgqtXA== X-Received: by 2002:a92:c7c6:: with SMTP id g6mr4452875ilk.49.1592583384456; Fri, 19 Jun 2020 09:16:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXgMB7yZLQiBtkRyhskxyvBJkdooCx/Cm+qVFW24PqVrvOHAU6yvLCQHbtdovni1aVGRlBew== X-Received: by 2002:a92:c7c6:: with SMTP id g6mr4452852ilk.49.1592583384176; Fri, 19 Jun 2020 09:16:24 -0700 (PDT) Received: from localhost ([2605:a601:ac0f:820:f090:1573:c2fc:6389]) by smtp.gmail.com with ESMTPSA id w18sm3547756ili.19.2020.06.19.09.16.23 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jun 2020 09:16:23 -0700 (PDT) From: Seth Forshee <seth.forshee@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [PATCH v2 01/57][B] acpi: Disable ACPI table override if the kernel is locked down Date: Fri, 19 Jun 2020 11:15:25 -0500 Message-Id: <20200619161621.644540-2-seth.forshee@canonical.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200619161621.644540-1-seth.forshee@canonical.com> References: <20200619161621.644540-1-seth.forshee@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
Lockdown updates
|
expand
|
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 62a2a564a46e..3b6d3247a4c9 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -675,6 +675,11 @@ void __init acpi_initrd_override(void *data, size_t size) if (table_nr == 0) return; + if (secure_modules()) { + pr_notice("kernel is locked down, ignoring table override\n"); + return; + } + acpi_tables_addr = memblock_find_in_range(0, max_low_pfn_mapped << PAGE_SHIFT, all_tables_size, PAGE_SIZE);