From patchwork Fri Sep 13 23:05:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dimitri John Ledkov X-Patchwork-Id: 1162273 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ubuntu.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=surgut.co.uk header.i=@surgut.co.uk header.b="DjG9GVYV"; dkim-atps=neutral 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 46VWSV24vrz9sNF; Sat, 14 Sep 2019 09:05:14 +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 ) id 1i8uco-0005uj-IG; Fri, 13 Sep 2019 23:05:10 +0000 Received: from mail-wr1-f67.google.com ([209.85.221.67]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1i8ucm-0005uM-Kv for kernel-team@lists.ubuntu.com; Fri, 13 Sep 2019 23:05:08 +0000 Received: by mail-wr1-f67.google.com with SMTP id l3so10795912wru.7 for ; Fri, 13 Sep 2019 16:05:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=surgut.co.uk; s=google; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kF5RZkfgSOfH+zxGeINW8mTMfqeuAedAklEGgD5vtYw=; b=DjG9GVYVS7314jXCoycO3bv3qBQE4zoEkak1AqTezQ9YgmZT9Q0y7oNQhMLSJ5IS/p K3ny7Rw6QDLFgkwuBidb6A4eKM6aI4p5j0dAtfkpNdLPo4+37H5A9guDhnvFBxyvBIDy QxkxF0C3l3wepKngA1i0IkffMBFZJHL5fj4Cg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=kF5RZkfgSOfH+zxGeINW8mTMfqeuAedAklEGgD5vtYw=; b=feLJVl5ejwlYJLVlc+PyYQH6Re3Ek95vtVjVSw9jiZh29jLV5DD0rFa/tnzM3J3OD/ SdPFKlUbaKEflbRCC2nZ5MNCtmR1QsY32Jzafq78n04wZNRhMLqqsCKh9pnr7MXmCcxa Gz+bphB+9l9hGLmQk1gh20WECTIc64y/VVSgqoYrKD0onqgFBoCQKC0tj3ItkFUdX9Ts lZ6Xk7T11tW/iSeHjgZduUfwuJiBmBKpGjAG/swHukju+728Evv2dGpgD1iWzmndIfJR tSAdjtfUg+XjMcwXWNZfV5TrNZBlWQc+9VB5jtufPHBEim4algmIZ4FE9Pnz9v8iGnWL JX5Q== X-Gm-Message-State: APjAAAXCGXbXYa/RngUvOHkBv2E73w9pCtGKbZGqemezQtHFodfyWqnl XmO0zjYZddvQK1WnbLqebtMo0MaAj3c= X-Google-Smtp-Source: APXvYqy0gECX+rcnmKWI+zoYV6LV9VBbXnQM6xL52l5Soo0xy40d41RT2/UA9MuzD7/0+YdZQwyjzQ== X-Received: by 2002:a5d:5642:: with SMTP id j2mr10062954wrw.345.1568415907769; Fri, 13 Sep 2019 16:05:07 -0700 (PDT) Received: from localhost (9.a.8.f.7.f.e.f.f.f.2.3.f.4.a.1.1.4.e.1.c.6.e.d.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:de6c:1e41:1a4f:32ff:fef7:f8a9]) by smtp.gmail.com with ESMTPSA id f143sm5644464wme.40.2019.09.13.16.05.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2019 16:05:07 -0700 (PDT) From: Dimitri John Ledkov To: kernel-team@lists.ubuntu.com Subject: [PATCH][UNSTABLE][EOAN] UBUNTU: SAUCE: (lockdown) s390/setup: Actually init kernel lock down Date: Sat, 14 Sep 2019 00:05:04 +0100 Message-Id: <20190913230504.6168-1-xnox@ubuntu.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 1843961@bugs.launchpad.net, Philipp Rudo , xnox@ubuntu.com Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Philipp Rudo BugLink: https://bugs.launchpad.net/bugs/1843961 Kernel lock down isn't initalized in common but in arch code. So initialize it for s390 as well. Signed-off-by: Philipp Rudo Signed-off-by: Dimitri John Ledkov --- arch/s390/kernel/setup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index 253177900950..2ba122f1dd4f 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c @@ -49,6 +49,7 @@ #include #include #include +#include #include #include @@ -1107,6 +1108,7 @@ void __init setup_arch(char **cmdline_p) pr_info("Linux is running as a guest in 64-bit mode\n"); log_component_list(); + init_lockdown(); /* Have one command line that is parsed and saved in /proc/cmdline */ /* boot_command_line has been already set up in early.c */