Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9094967pxu; Mon, 28 Dec 2020 06:31:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYXp39dfo+K2KZovWxttBF/24yFy47JZTRMJ440GMbN8AusMmfpI/zrcA58LshbdDN+98b X-Received: by 2002:a17:906:2d42:: with SMTP id e2mr42943652eji.292.1609165868465; Mon, 28 Dec 2020 06:31:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609165868; cv=none; d=google.com; s=arc-20160816; b=PZsqsT3SlYddH7xlOajYj8WSlX5rlRlmxjzqHgLPiGGw96JoNqjzTivDacSwbAY6OW QWJSJinDg3ZvPZ5248Aff3C1FpdlaIqrc2/4ktJjAbMAXU5MSmT26HcH4kgOEPBg2TLD RVEm8ldVFeffMD2BSLY1XoP9GUVe2/KOChTvX3weWV4pvnae2gPi5LiO+hTq0Dxmg233 W/5fL8QRam1Ol8OuwW8QAOJ+Gv9gRskPUP0umaznSE2vcdY3P020WpdTz3LWg3AcpPsg 0jqUFNYXTYdd6BYrnlElbwcGjIQ1xOfugPTdLp51sQBQBSHLqFXnYGsW/1XeDNRAfRmH T7Fw== 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=PtYx1WktNWLfUNm7noTPmpxVm4/oYBAbvYYN0zzYckg=; b=H38nuHGHX9Q+0Co55jnOnt6S3JVnKz00lLHCx1YmcemMaZBHJfXlDII8gCkLrI3F1w /F5wD0QbPYE5H0m6nmECwv9eeOZUkQqYuqxwrnJ8J/e69lIOlnZU+t5LD1Rp548UGicS VwjcvwhofyBNkK9lmngzovWKSHJOm3sbiQ15oOuexkpIcVVlvuJALaIlJB1V7xCf+mjL AmuTbxUXqhXl5pdnHnrIVmYGlAhQameS9AEpcEP5qy/Tn0ZkxkMC4mM5CT150wcoktb9 MJIcBM4JajQjeiNDJn+I2JT6kHoyHG+C7r9OdxH9lzdObgusK47uf/H6FQ3duQV1T9Xs vQTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=U2qLlFcz; 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 c8si22352794edq.432.2020.12.28.06.30.46; Mon, 28 Dec 2020 06:31:08 -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=U2qLlFcz; 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 S2502517AbgL1O2n (ORCPT + 99 others); Mon, 28 Dec 2020 09:28:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:36450 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502506AbgL1O2j (ORCPT ); Mon, 28 Dec 2020 09:28:39 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 808512063A; Mon, 28 Dec 2020 14:27:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609165679; bh=HGMd/h8nbLcP8Sto8/VobMHZGzRZ2knmuCq3giUb4Cg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U2qLlFczPzDcUT41O+DU3h+B2yeml3H0V0wQm2wDrKG2Jp2mWWEHjVB10rB02aLax V1XNAE1nO03De9On7cxDZ7cBaTVYLfdNcTATFIxkg9Qk+0octH+83pMBufrilK+THf /0Cujot7znEPfjZ9qDklfrfY56+1n9PYfB07dfZI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tyrel Datwyler , Michael Ellerman Subject: [PATCH 5.10 609/717] powerpc/rtas: Fix typo of ibm,open-errinjct in RTAS filter Date: Mon, 28 Dec 2020 13:50:07 +0100 Message-Id: <20201228125050.095419182@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@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 @@ -1030,7 +1030,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 },