Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1004101ybf; Fri, 28 Feb 2020 11:54:26 -0800 (PST) X-Google-Smtp-Source: APXvYqwD3WbLRdWN/on+d81ilmPJMQ88OACNySg7MIp2OIvSIeUMImw97lpFF7jaxr6bSOIzKvGd X-Received: by 2002:a05:6830:210d:: with SMTP id i13mr4658298otc.192.1582919666186; Fri, 28 Feb 2020 11:54:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582919666; cv=none; d=google.com; s=arc-20160816; b=fUHCI5llqxkouNNCCtnJljKVU4YZEtKDOHoiOk60afRZ1PHtRMlT/pEL3rqoKb76xN yy6i5sdUaX16FpJGhAcQxr5qeKS736vHcMpJM+pODT35yMj3gocDs00r1BAl1yOht1tD tF8xeAmzg+XUPgbF5JyuxLFRHe60xba/2mbH0jJaJ7tw5IKL1Aj1+hg/mGMEX/obn2ip XXtvxPjMvtjQvF/yCZlkLY7nxyCB1r0lfIDGtAyUjmshAL0n0yW33EumKIB7yr4Acg6b sHqEA1u93/5kya8aNErovC1c7wLVi3qQrSCkXCv70M6wbIih9T882UIa5hCSBMUYqzBq WRug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=5bykkbcQGwzqN03OV4JJRbYAQgOYVAEO2aDhHY+P1FU=; b=X4PCYLd2krEaEQou8zyjyOJyzhxjknmL3l4oDi1VSEu1VUQOpywVceNqeP5Lx6M78E 4sUxT6UAGjkR4pNmcwYWykx8Zxr45oLnT+Qb4zlmDU8KVXjafclzTEZtOWyTdJaoj8I3 9WvB4YJeqs9StaO6CqhL8bF04DCecMeW8LGB9odO8nz4ngxAuICsMckmWz+0iwHhdhe0 NzKpArDM9Ffu8Pe4gHujaFV8DiXK4FW4dIFUsoHcjTGaRauI0cdr3vat0QyMh6zNKJpY cFfUATjxaDeoIz2+a56fGLFlo+Gs1afsaP830VK7wbTO3z3dqNc/JYSSax0EtJ8ecd10 3HbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="B7Z/yodH"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z14si2287717oih.89.2020.02.28.11.54.13; Fri, 28 Feb 2020 11:54:26 -0800 (PST) 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="B7Z/yodH"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726892AbgB1TyH (ORCPT + 99 others); Fri, 28 Feb 2020 14:54:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:59750 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726838AbgB1TyG (ORCPT ); Fri, 28 Feb 2020 14:54:06 -0500 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (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 57062246A3; Fri, 28 Feb 2020 19:54:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582919646; bh=yFa9GTusWGP9MI5rVwDvWIvMEuL11F9VB9eTfxoriBM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=B7Z/yodHUB8jE1bVpRXAyJta0eKioEPjfCw0GF3NCMjGhDN1gn5BpcyeV84YQmLg2 PswXKPBgjSBEMksGGcEuSgtvpKJQgXX5ALZt+ywZjnvujiZTKUxDG8tYkw3UkRQYXx kzjfo8K+yVPrQsMIwDCyCNsChFGVJ1In0k2PcIrg= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j7li0-008qC3-Io; Fri, 28 Feb 2020 19:54:04 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 28 Feb 2020 19:54:04 +0000 From: Marc Zyngier To: Joe Jin Cc: Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH] genirq/debugfs: add new config option for trigger interrupt from userspace In-Reply-To: References: <44a7007d-9624-8ac7-e0ab-fab8bdd39848@oracle.com> <006a08b8bfb991853ede8c9d1e29d6a7@kernel.org> Message-ID: X-Sender: maz@kernel.org User-Agent: Roundcube Webmail/1.3.10 X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: joe.jin@oracle.com, tglx@linutronix.de, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-02-28 19:13, Joe Jin wrote: > Hi Marc, > > Thanks for your reply. > > On 2/28/20 8:37 AM, Marc Zyngier wrote: >> On 2020-02-28 05:42, Joe Jin wrote: >>> commit 536e2e34bd00 ("genirq/debugfs: Triggering of interrupts from >>> userspace") is allowed developer inject interrupts via irq debugfs, >>> which >>> is very useful during development phase, but on a production system, >>> this >>> is very dangerous, add new config option, developers can enable it as >>> needed instead of enabling it by default when irq debugfs is enabled. >> >> I don't really mind the patch (although it could be more elegant), but >> in >> general I object to most debugfs options being set on a production >> kernel. >> There is way too much information in most debugfs backends to be >> comfortable >> with it, and you can find things like page table dumps, for example... > > We should not enable any debug option on production system, actual > customer > want to resize their BM or VM, cpu offline may lead system not works > properly, > and if we knew more details of IRQ info it will be very help to > identify > if it caused by IRQ/vectors, this is the motivation of we want to > enable it > on production kernel. If something doesn't work properly, then you are still debugging, AFAICT. M. -- Jazz is not dead. It just smells funny...