Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9230060pxu; Mon, 28 Dec 2020 09:55:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJy7ziONhMKf6Iiuex4VxWQN99cFxOaHcZC595ALjNpHIMyS7GC9ITaMUPLg5okpWT+UGpyx X-Received: by 2002:a05:6402:1765:: with SMTP id da5mr43991853edb.27.1609178135126; Mon, 28 Dec 2020 09:55:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609178135; cv=none; d=google.com; s=arc-20160816; b=S31sDs3+RPPxfcV1iNY/YeI5/sY6yoy4+XiU02D8d9LRBBFXthxOrdy84Nbq2U1fPP rALfq5MJjwqK0D+AC4xLmhHTc+hkfhWSkQMf2V2VXp2sambH3qGh8HsrtgdPpPwu8kbR 9f+5UNlUdUEq4AYpSkvL/10J2+3UzYXO5ueXgpzl1xdMS2KMf+i4yqLlTNJpQW2KmR8K T4OCqNwLqYl2j74SYCzz0bmgAxumMDxBoU5K1RFiOI+sT5Ba0a+qehqd0RMM2FsdefQK V1leKCzodIXsKtjgC6xQY6P9aM/24HUPri0f35UAaUzLPixSV8HxS+o+xXm7mrtwJgOR JNtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LCE/mq1xqTG8v7kNHRYezLrrtOe82EYqSI7qi3gjqf8=; b=yEJcVhxVl4+8FbZgBwOgspUmhOtebhw9v7RVEWAGworNEFEm6xeZiEPM+y/SAZqA71 SFsrsXKvpqZEGow7eNPmq6RtrmEctEFqHnqgTVzbLxcBj8iA8UeRINfFK57lwmnrUcZ5 +RY2Xe0E0OnfrNBmblYyzVPCs4h3W6bdxf3K1ufLWqkWI/KjQ1xh5B2uH9cGA+EIhICp 43xUyS2iF5ZyF7ZakXDocsAQ4TmUMhuw/Mj7a+c9tDpp4cFnYe0RPWnf84B1yReHvQ7b 0Rqm8YaNQNwdEAaSOjndtvUeRIfzKYTJYoSG/kSngiEkVtBT9EAsDL0d4NsvulaWQ0xG gMTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=H0VscWeW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qu25si19021456ejb.146.2020.12.28.09.55.13; Mon, 28 Dec 2020 09:55:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=H0VscWeW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731603AbgL1NRq (ORCPT + 99 others); Mon, 28 Dec 2020 08:17:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:45006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731554AbgL1NR2 (ORCPT ); Mon, 28 Dec 2020 08:17:28 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 56A5820728; Mon, 28 Dec 2020 13:17:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609161433; bh=InEEN5TLcf6aB59Y6YcfDqtxH4ByJKED1/yu9sBITZ8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H0VscWeWvj5hX0BS46hRvrawO4XHFKI+WSNI6em3UuEVYjaSQ2JlzFR+/coWmVS10 yzR5C5OaHPINnyt3JqcOO3sYzZ5rDQHMK/Cca+z1t/H0ooXcexdcNi2oUHnjCUdoRr g8qIBFZSQPJjAHPLxxFJOsJOOmoa2bXHCuce1uxM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tyrel Datwyler , Michael Ellerman Subject: [PATCH 4.14 212/242] powerpc/rtas: Fix typo of ibm,open-errinjct in RTAS filter Date: Mon, 28 Dec 2020 13:50:17 +0100 Message-Id: <20201228124915.107833640@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124904.654293249@linuxfoundation.org> References: <20201228124904.654293249@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tyrel Datwyler commit f10881a46f8914428110d110140a455c66bdf27b upstream. Commit bd59380c5ba4 ("powerpc/rtas: Restrict RTAS requests from userspace") introduced the following error when invoking the errinjct userspace tool: [root@ltcalpine2-lp5 librtas]# errinjct open [327884.071171] sys_rtas: RTAS call blocked - exploit attempt? [327884.071186] sys_rtas: token=0x26, nargs=0 (called by errinjct) errinjct: Could not open RTAS error injection facility errinjct: librtas: open: Unexpected I/O error The entry for ibm,open-errinjct in rtas_filter array has a typo where the "j" is omitted in the rtas call name. After fixing this typo the errinjct tool functions again as expected. [root@ltcalpine2-lp5 linux]# errinjct open RTAS error injection facility open, token = 1 Fixes: bd59380c5ba4 ("powerpc/rtas: Restrict RTAS requests from userspace") Cc: stable@vger.kernel.org Signed-off-by: Tyrel Datwyler Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20201208195434.8289-1-tyreld@linux.ibm.com Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/kernel/rtas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/powerpc/kernel/rtas.c +++ b/arch/powerpc/kernel/rtas.c @@ -1094,7 +1094,7 @@ static struct rtas_filter rtas_filters[] { "ibm,display-message", -1, 0, -1, -1, -1 }, { "ibm,errinjct", -1, 2, -1, -1, -1, 1024 }, { "ibm,close-errinjct", -1, -1, -1, -1, -1 }, - { "ibm,open-errinct", -1, -1, -1, -1, -1 }, + { "ibm,open-errinjct", -1, -1, -1, -1, -1 }, { "ibm,get-config-addr-info2", -1, -1, -1, -1, -1 }, { "ibm,get-dynamic-sensor-state", -1, 1, -1, -1, -1 }, { "ibm,get-indices", -1, 2, 3, -1, -1 },