Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp794602imm; Mon, 21 May 2018 14:36:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq5CYDYOTu2+MV8cJfvpsrFperfqC4dpr2NY8pxjvMKZ9iMRIJksRw8azZtXbOyDVoFDWjF X-Received: by 2002:a17:902:7b97:: with SMTP id w23-v6mr22289644pll.116.1526938567822; Mon, 21 May 2018 14:36:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526938567; cv=none; d=google.com; s=arc-20160816; b=0mlcq0lLj4enfTVdj317sfEUinLHDMYm5247DkuNKmOfytDz6GKomkuD+ETBq6mcGB 6wtasdy11YmzRrCmSXRwpoP77aG3PSvhoTgSVS6ncSL/GYeZuqyEKcr201h03r/6/ncb g3UZEj3/CMnHnUqrqK8I2Xd3ofVIB/nQHwLhdiugRocHajDYrndwkCwNnQU8pTwQLPTC gP75VpbXzdK7JSMQG8Mar+nDTrgurEtjbtMD7qmKIsFjn2gbPRVJnR3MM4eOn7gR30Do Vx1Qfbkfqu5SodVW60sFtYOtMcrEw1pavLMQNRnvLGplAlnZG2SxZj9SRYe/v9zitouH 5Qsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=g+YtajbKzoIwyXVZE2W7/0tNaktCTsuXv6GrBjAVYeU=; b=PhOk8Qen7j41x2G95kR4DOgse9fyJRYM6cahbLX/A+mOD/g4igvdmcJhzJWKSBkd0H sQXhuZk9Z80evyhe2lmlIWO9SDstn+/KMA1mEuxhUTF5doaCIcQp17lQ9y4/XgcZpLGm diXpF5wT0GqkZM7quPDC/b8EyxcBDmmjhqOCR+hw3L9x+m70SVnklWjTYib/1jjyVHX9 7VSP2MQub9WLf0OaB0C1HbI8t5UI4X8NuXYaH8BkbzTZHbZxGKjQfkFlStOhlC19KsOx JZ9UeXCTgNpN5JjTK2M/1UKaiBZG3RG/HEnt0hkJuS+hLsAO60mwOfVxjrW2N9LqglEg pLQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=W0+GOpMC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l2-v6si11530709pgc.438.2018.05.21.14.35.53; Mon, 21 May 2018 14:36:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=W0+GOpMC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754579AbeEUVfp (ORCPT + 99 others); Mon, 21 May 2018 17:35:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:40580 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754422AbeEUVZp (ORCPT ); Mon, 21 May 2018 17:25:45 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D7B1720875; Mon, 21 May 2018 21:25:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526937945; bh=2gxI1rBmOSSfPQz34dPo5SuyfgP98Zg+XWk5YUi1EcM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W0+GOpMCA6R0n6UGSDw+jFRNFmGaGXb2WLGndG29g+rzKF2GGcGV5jExMcgf7wkwh GD3nGcIA8F+TUBVhTvbS93oQ7xQyYH8OSiSUqPZ95k/HeVj1KtfiIqCipPVqMCFBvF 9BM811SX1p4hajBkqs1iU2HKU+MGY/g70cUoYVHk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Gleixner Subject: [PATCH 4.16 083/110] seccomp: Use PR_SPEC_FORCE_DISABLE Date: Mon, 21 May 2018 23:12:20 +0200 Message-Id: <20180521210513.573183959@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180521210503.823249477@linuxfoundation.org> References: <20180521210503.823249477@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Gleixner commit b849a812f7eb92e96d1c8239b06581b2cfd8b275 upstream Use PR_SPEC_FORCE_DISABLE in seccomp() because seccomp does not allow to widen restrictions. Signed-off-by: Thomas Gleixner Signed-off-by: Greg Kroah-Hartman --- kernel/seccomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/kernel/seccomp.c +++ b/kernel/seccomp.c @@ -239,7 +239,7 @@ static inline void spec_mitigate(struct int state = arch_prctl_spec_ctrl_get(task, which); if (state > 0 && (state & PR_SPEC_PRCTL)) - arch_prctl_spec_ctrl_set(task, which, PR_SPEC_DISABLE); + arch_prctl_spec_ctrl_set(task, which, PR_SPEC_FORCE_DISABLE); } static inline void seccomp_assign_mode(struct task_struct *task,