Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5770273imm; Mon, 23 Jul 2018 05:54:33 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeZyMUimClbwOE6pq2UUOvRgWf0z4kiyx4qTZt3RFlScV1lcCCp3gEja9aVIZzxng1371YW X-Received: by 2002:a63:9619:: with SMTP id c25-v6mr12043838pge.75.1532350473562; Mon, 23 Jul 2018 05:54:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532350473; cv=none; d=google.com; s=arc-20160816; b=kzpEkZKlGsjJ8aCwiwJN3hL1FKwrU/mHOZheXlyQ1pG+CxuDIQkGuMKQcMxGiMDxY1 Z5a9wRXRU5uz1d2iCXbgJjgslLtSzqpxrNLIO8IscmI/QblZbOox38a2polK1pNlq7J0 U7vWiJTHX3n1CP+tfy74KlqIl2hdp/j+ASPCtP8LbfE2IAWSEMQ2QK4asW670+wWWNJG VlMYUjrYD+EZ4obz0u5d2cYYdJHgaJYFBdBBOpZ50QCiodggLsqdZVXPvWbI0F0DfNbK XZOH9G6w3/PPPQlKsAz1vlJkuvpsUHqzowl3TUazOpVEfeDduoFr2OsT+oX7RDyHHSix eIMA== 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 :arc-authentication-results; bh=76aRAeqOP4scCZBiJCr+J2mkz92eO7f1YCqmZ9zaKZs=; b=n44xUCFh0wdSdiRcshByplF0gKDtiiTw2hZdi4HriL5499IN/+G12ZRUYWwo+GxgE8 rQnydTDv+fW1JvqR95oY5S5ZDIuNRD64PdezqbGAy097bUz2ojtDYD/mE63SgEyUkSAD HI7qPZlbJgy2vtvdfneOrj+VQu9a5Z/JmK5QxtsnlYiHhKGLsakOFun8HtzyFHq1TdeU 5SWA0QShz27a2/2bf4LWsH+IvDRalMx4aG33eYOdBSH3our622Aw0IZ5ULkuHAERQuxV MAKOkPgigqv37jbGD4FX38+ny2yGdndO/VC9l5ahwf3ZQ0xLyoZjJOpcs3XCHY6LaNe1 sLow== ARC-Authentication-Results: i=1; mx.google.com; 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 c3-v6si8149091pld.457.2018.07.23.05.54.18; Mon, 23 Jul 2018 05:54:33 -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; 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 S2389429AbeGWNrw (ORCPT + 99 others); Mon, 23 Jul 2018 09:47:52 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51200 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388385AbeGWNrv (ORCPT ); Mon, 23 Jul 2018 09:47:51 -0400 Received: from localhost (LFbn-1-12238-233.w90-92.abo.wanadoo.fr [90.92.53.233]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 213D5CB6; Mon, 23 Jul 2018 12:45:43 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Gleixner , David Woodhouse , "Srivatsa S. Bhat" , "Matt Helsley (VMware)" , Alexey Makhalov , Bo Gan Subject: [PATCH 4.4 072/107] seccomp: Use PR_SPEC_FORCE_DISABLE Date: Mon, 23 Jul 2018 14:42:06 +0200 Message-Id: <20180723122416.992688179@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180723122413.003644357@linuxfoundation.org> References: <20180723122413.003644357@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.4-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: David Woodhouse Signed-off-by: Greg Kroah-Hartman Signed-off-by: Srivatsa S. Bhat Reviewed-by: Matt Helsley (VMware) Reviewed-by: Alexey Makhalov Reviewed-by: Bo Gan 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 @@ -226,7 +226,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,