Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1261276rdb; Fri, 16 Feb 2024 09:53:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUFUAIuCsrNb+Mstf0v1s0obYHgtFt3g+BiMV5O3eS6p7gNX1T+7X+aHK5IE0GgNKeM8yArhRE9kWaTagLj4kxVFdHaDifKJ5M/ETracQ== X-Google-Smtp-Source: AGHT+IHwxC/Zu7pQcRFwosPwG0IhwcVhTmc0feYChI2qmI8AvGhPpLkDR9NcTNkNNU7SMaOOnilz X-Received: by 2002:a05:6e02:f43:b0:365:117c:c957 with SMTP id y3-20020a056e020f4300b00365117cc957mr1700325ilj.16.1708106021360; Fri, 16 Feb 2024 09:53:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708106021; cv=pass; d=google.com; s=arc-20160816; b=PpAFcfNe0T6qinBYVkC4zhWlprrYOVhRUdUyiOajskrYPkf+JLScnKfdTqY9CWUwbP 7gFabZTLl4QBxqV7qHdKoc1WuT/wJReVCG/rh43osID5qCNy1ZXMihj3uEc61G16AmHB mfaRyDvdZhgqs+4zk/n0ZP4WUAz9kJ+5CysD2+Z3ktulwI/fJkl4GTFM5tnzHLENy1mR sVv9WJSf7phwk4cCKTjbu3PxzZG6HiyoYIWHhq0zOJPus7rxOxLxdx/FGefmmRwHViL9 IuPrgLH5pDjJyXIW06jjyW34Tqgn1cChBWFeLI9+4BBUb9PzMKXPmMIWbARBJo3Wl6Ij IOMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=dvMRUKz9ALBL0tey3xRHhjgWxW/c/AYGahvz+EtVyeg=; fh=m7OsJVWXNhdFKf7RYYV9bV7Ivhl6YGGtlrEOTAYrnDM=; b=hQpdX2zSo3uTIbUgf8Ai7Ok4DtBPFPLlg61qGae/HQiNw2vSkWb3SWw2HSsnj6pqlD ugJjnkqKkJwZFg4iM8Cq6+v02JjDqTiV+ebfMeabsH62gej+2l94rvS2vc4lKtkjSgrH l6ACX4BJB55Ixa93uJKGIAzmaq6SCclJZuE3vkW+oVcnbqhbZ4230cx4whmIJvs6FG3V S3qKq95EodrQ81U3fExAZTRU6N8JPTpJcadoicf+nhk5I+F/M6s3czhhI9/duJANvI+N BuM4/qCtqu/fU13Iac+hij2DL7mFbRlwd+9NqcB5Ppvxgv0XuPTlhpg7XH9iqAuSx83i d4zQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OJtmy1S7; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-68983-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68983-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id q21-20020a638c55000000b005d8b313de26si196824pgn.594.2024.02.16.09.53.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 09:53:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68983-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OJtmy1S7; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-68983-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68983-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id CAF49B2096B for ; Fri, 16 Feb 2024 16:50:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DABE6130AF8; Fri, 16 Feb 2024 16:50:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="OJtmy1S7" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D2BB8130ADF; Fri, 16 Feb 2024 16:50:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708102219; cv=none; b=DwW+u2GDUu2OtnKetMB8mFpns4/cjK5f5hvKNPBu8ij8HUwQGmHV1OrpkMd9fizH9W8oKmTZoBZwKDbRU7lQmkM/feOE+fIotmMJyfs1F0A0tWh+CRlOOHUbDQeIcw2Na1ZVxgGLOAlN9YUNBY34dUXCb7BORUaZ7YxMxaqbjF0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708102219; c=relaxed/simple; bh=9x0VAcgRR5iydeprnwWx5rGSU/WwGPjsi6M/40rCSuw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=V/VqzVHGVtu+wE7RGXWTMZbNoocMpZYcvsKafCIHhFFFJgIdCdwK8IngsGfEcCh87jaEUu8AzXi5sdUnhdgiV3OhzwS86LumtyJve3FAh1Oo3klMwJE2aoafp/TvvshSTmnHoGT7qI8fbyJ/wRhrPSawjwcubi5SgVlgJkVW02E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=OJtmy1S7; arc=none smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708102217; x=1739638217; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=9x0VAcgRR5iydeprnwWx5rGSU/WwGPjsi6M/40rCSuw=; b=OJtmy1S7kexNi1D4GYl3chgJvnjFjn56PK2EhvLZ/KGQQX7hxNLC4Pm+ 9TbXOJhkudOqH4cAkZVa5KNzDlGiO679A30adT9cWLZyBGdRFgmf9QF9/ uAmNiCJNOy/HrHvd7jvxzPxjjl0xK5Hjri7vp5E7FXAzdpFVoEDxr53jT qApJwN31669KNbcOnPw6B782F8uLY98lo+2KeGLjg7Nth8a7WI6ofJLb7 WYjRzIHMYHSTWjVdjUOvUt2/NzD6I16xt42di60oM/JWBVtD7UNNjUCtn AXxHSuMfZQMf3p9iN3qAyYTAhjUku1w4j3J2gcVfWFZ+uCEbiom+vGpxP A==; X-IronPort-AV: E=McAfee;i="6600,9927,10986"; a="2367363" X-IronPort-AV: E=Sophos;i="6.06,165,1705392000"; d="scan'208";a="2367363" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2024 08:50:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10986"; a="912387756" X-IronPort-AV: E=Sophos;i="6.06,165,1705392000"; d="scan'208";a="912387756" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2024 08:50:13 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rb1Pf-000000056Gt-2LJH; Fri, 16 Feb 2024 18:50:11 +0200 Date: Fri, 16 Feb 2024 18:50:11 +0200 From: Andy Shevchenko To: "Rafael J. Wysocki" Cc: Linux ACPI , LKML , Zhang Rui , Kees Cook , "shiqiang.deng" , Sebastian Grzywna , Hang Zhang Subject: Re: [PATCH v3] ACPI: Drop the custom_method debugfs interface Message-ID: References: <6029478.lOV4Wx5bFT@kreacher> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6029478.lOV4Wx5bFT@kreacher> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Fri, Feb 16, 2024 at 05:38:55PM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The ACPI custom_method debugfs interface is security-sensitive and > concurrent access to it is broken [1]. > > Moreover, the recipe for preparing a customized version of a given > control method has changed at one point due to ACPICA changes, which > has not been reflected in its documentation, so whoever used it before > has had to adapt and it had gone unnoticed for a long time. > > This interface was a bad idea to start with and its implementation is > fragile at the design level. It's been always conceptually questionable, > problematic from the security standpoint and implemented poorly. > > Patches fixing its most apparent functional issues (for example, [2]) don't > actually address much of the above. > > Granted, at the time it was introduced, there was no alternative, but > there is the AML debugger in the kernel now and there is the configfs > interface allowing custom ACPI tables to be loaded. The former can be > used for extensive AML debugging and the latter can be use for testing > new AML. [3] > > Accordingly, drop custom_method along with its (outdated anyway) > documentation. > > Link: https://lore.kernel.org/linux-acpi/20221227063335.61474-1-zh.nvgt@gmail.com/ # [1] > https://lore.kernel.org/linux-acpi/20231111132402.4142-1-shiqiang.deng213@gmail.com/ [2] > https://stackoverflow.com/questions/62849113/how-to-unload-an-overlay-loaded-using-acpi-config-sysfs # [3] I believe you missed Link: tags for 2 and 3. > Reported-by: Hang Zhang > Signed-off-by: Rafael J. Wysocki > Reviewed-by: Zhang Rui -- With Best Regards, Andy Shevchenko