Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp465191ybg; Thu, 19 Mar 2020 03:05:58 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsJZgHAIzaAxfkbX09hKaofK9FtgPStHzycxhXV2J28+GJH1mrMxtdFpIqeoBYprCujKbT5 X-Received: by 2002:a9d:62c2:: with SMTP id z2mr1643675otk.65.1584612358674; Thu, 19 Mar 2020 03:05:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584612358; cv=none; d=google.com; s=arc-20160816; b=x5FWXCy59Rr7thqG6GbNNfe0yjdEIeGqeoO4Mkkn55zTfvWa3IeRt9cTn/0YFTIZgE WTMLpITtjJVv1Db3h1w/SjqpcRR4NtzM26FGFpvd4hBOZkwG7SmK8nhY+jOLgwzAbqV8 JquV9suB4UdsEzsS2p3oJ0vAXpAnU9ERLqEokaCFNa7Cl3nwFspmfEjOUuNItjrTHPzB DlBdzQLhQBI9PBg0b4ph/XSUk58Mv4go1BmziaD9GfOYQcOMTt+HYsyQpB6dbgPSpzlO sPiDVfRX9mEvZBCy3xP78+6JVTYZ812r0n/niS326KtmLfnz/pvDFD+dMKjWI37fbBcU ciRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=OcPUh06jLYZYTaFrlfWU9RKgFMgKAUlnHuuEZQay458=; b=STpKYE0QclkSbp1aD2cWVgCnHWp498Esj3TH64LGDagLUGKxtJjlCusuQ0uNVzjhGE DO/9BNWZKN5giepYJy7iZDP/3vWXuXyIJwtS+faqWo/oB0KeCryqnnc4DGct3t5piVGl 6V1S+iuYHGrkZVlFAsSYSgbMpvkMhlvQTwm8HHTmJk2kFQUu0BcefR9UbviOJKLspkMR 1sGlZ+PhVUpBX8MF26500nUlX5deiOhV/3n4BLL4QtZT6+WC209toU1Yj42QnZ445L4o 7SHuYWFsk7u8AsOn0F5rWT7QzuyJHZjSfE2B8AMW/sJHiMnrgznaDbvNa29SKbJOixZI pNFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JOktONSw; 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 p6si939133oth.259.2020.03.19.03.05.46; Thu, 19 Mar 2020 03:05:58 -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=JOktONSw; 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 S1726976AbgCSKEI (ORCPT + 99 others); Thu, 19 Mar 2020 06:04:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:36724 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725601AbgCSKEI (ORCPT ); Thu, 19 Mar 2020 06:04:08 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 963AA20732; Thu, 19 Mar 2020 10:04:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584612248; bh=+goVqRbZc/x72YFYtm/vQYIyeZrE8cv3tu6hC/wj+7Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JOktONSwAEwD1JkYbHyBBeO6ef114Ck6PsJtSfgagysSsm56x566xk37mID+w4oLE 8iSdkcZIti4dNKrrstbu/xmC7YpLSXIEB8bsGL9vlGB67CgkeVaGrGN1rVp5SLLz41 mebVQmzAo/CEyReAq13Rk49lOvE6vynSrlitLe6Q= Date: Thu, 19 Mar 2020 11:04:05 +0100 From: Greg Kroah-Hartman To: Chris Wilson Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Bhupesh Sharma , Matt Fleming , Sai Praneeth Prakhya , Ard Biesheuvel , Wen Yang , Caspar Zhang Subject: Re: [PATCH 4.19 64/89] efi: Make efi_rts_work accessible to efi page fault handler Message-ID: <20200319100405.GB3514624@kroah.com> References: <20200317103259.744774526@linuxfoundation.org> <20200317103307.316400146@linuxfoundation.org> <158461093093.6873.1396457313254708957@build.alporthouse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <158461093093.6873.1396457313254708957@build.alporthouse.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 19, 2020 at 09:42:10AM +0000, Chris Wilson wrote: > Quoting Greg Kroah-Hartman (2020-03-17 10:55:13) > > From: Sai Praneeth > > > > commit 9dbbedaa6171247c4c7c40b83f05b200a117c2e0 upstream. > > > > After the kernel has booted, if any accesses by firmware causes a page > > fault, the efi page fault handler would freeze efi_rts_wq and schedules > > a new process. To do this, the efi page fault handler needs > > efi_rts_work. Hence, make it accessible. > > > > There will be no race conditions in accessing this structure, because > > all the calls to efi runtime services are already serialized. > > > > Tested-by: Bhupesh Sharma > > Suggested-by: Matt Fleming > > Based-on-code-from: Ricardo Neri > > Signed-off-by: Sai Praneeth Prakhya > > Signed-off-by: Ard Biesheuvel > > Fixes: 3eb420e70d87 (“efi: Use a work queue to invoke EFI Runtime Services”) > > Signed-off-by: Wen Yang > > Cc: Caspar Zhang > > Signed-off-by: Greg Kroah-Hartman > > This requires the fix from > > commit ef1491e791308317bb9851a0ad380c4a68b58d54 > Author: Waiman Long > Date: Wed Nov 14 09:55:40 2018 -0800 > > efi: Fix debugobjects warning on 'efi_rts_work' > > The following commit: > > 9dbbedaa6171 ("efi: Make efi_rts_work accessible to efi page fault handler") > > converted 'efi_rts_work' from an auto variable to a global variable. > However, when submitting the work, INIT_WORK_ONSTACK() was still used, > causing the following complaint from debugobjects: > > ODEBUG: object 00000000ed27b500 is NOT on stack 00000000c7d38760, but annotated. > > Change the macro to just INIT_WORK() to eliminate the warning. > > Signed-off-by: Waiman Long > Signed-off-by: Ard Biesheuvel > Acked-by: Sai Praneeth Prakhya > Cc: Linus Torvalds > Cc: Peter Zijlstra > Cc: Thomas Gleixner > Cc: linux-efi@vger.kernel.org > Fixes: 9dbbedaa6171 ("efi: Make efi_rts_work accessible to efi page fault handler") > Link: http://lkml.kernel.org/r/20181114175544.12860-2-ard.biesheuvel@linaro.org > Signed-off-by: Ingo Molnar Thanks for this, now queued up. greg k-h >