Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp272168pxb; Thu, 26 Aug 2021 02:50:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBMW7FUWNdwD7MwbLZ57u6dNvZQNijXBbhvHn6kJ9WNf+OfLq05myhB730K4t7He4FRtuY X-Received: by 2002:a92:d0cc:: with SMTP id y12mr1996738ila.38.1629971411823; Thu, 26 Aug 2021 02:50:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629971411; cv=none; d=google.com; s=arc-20160816; b=wgOrDWJ1uZXWxbpwQYetlOV1SeTZ6VDrdjW72XvoGqSlyxVA5s6tA7TKCRk3tjyeOb bXaaEsR25uOHSkftHOOcqhoSnEgfpTO2NCmwLbclG3BcnoEopKcsAPIO7uvd+T2HXqZp 39VJu+CyucPwaV9Cz4iEuYjUf3W6275dw2bHbxf81t0Ln0mxN2lYDtKP9JEl+WXu7Jjh AnPnl2e/0QQCTK/nEjfJrjHiAs9GBkmvmnwbWPgB/tbzjEGVjBBFuYTpyzM5rJHJtRPn Fgodq654LV9V6x143xAkdlNQ3fBIBbr6HYvzq+HI+lT8rWOHT0MV893BAk9/Nue5/6so OkLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=FpeRzND8HoWIUc+Xvedus6zgHWpThDfcAF0QJ7ELuZA=; b=KpnuvLHcoRI4jFSiE8IF3V3IkivAOhE/AyZ5+35nSRiaLFu3RFsjxIkosylWk+AMgq EBEljBF7sQ+Aq8UeYLJB4H0kxRYUSZOgdelnbgB6knwB8HT8sYE2hFk1XFiObNzu75Pu TeJsM6aIHaFoBdSoNpgvyzfIrcOE49fH3NGebcFcJRL/xOLCpNK5fdPPkRRaF3H87L3f S47NLJnz/LMXZGh+YT0iEk14osMkYFQWqdHavgnkcvoGsvylc2nvD4P8Gi+KOOYyJZdi 24ZBgvNPoUxR4d83c+AHZSYrs7JGku+lA10sW31Gs+I5UvGb8fyayFo5UZ6AoYksCYiY fjfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VdiKDdJQ; 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 f15si2190469ilu.156.2021.08.26.02.49.53; Thu, 26 Aug 2021 02:50:11 -0700 (PDT) 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=VdiKDdJQ; 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 S234034AbhHZJt4 (ORCPT + 99 others); Thu, 26 Aug 2021 05:49:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:49214 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240642AbhHZJtz (ORCPT ); Thu, 26 Aug 2021 05:49:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BB052610C8; Thu, 26 Aug 2021 09:48:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1629971334; bh=pws6yEMx5CQmxG0eSLGORmnzzlW+g+uW697IABxaYho=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VdiKDdJQaCgiI+CuSLchYjZxNEa5AFlK4fqD9UCqMy1HSYmaTE87blVHY7l6HTO5I extVD7JjuSCJDW820nlPC1cGFaEdbMGv370LCEfvarOynGK4wb5S39qkxldtkG+dsl oadM1CysowNN7XicGgQ5u6mznotOleCtDntyr9xc= Date: Thu, 26 Aug 2021 11:48:50 +0200 From: Greg Kroah-Hartman To: Woody Lin Cc: Todd Kjos , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Martijn Coenen , Joel Fernandes , Christian Brauner , Hridya Valsaraju , Suren Baghdasaryan , linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: Re: [PATCH] ANDROID: staging: add userpanic-dev driver Message-ID: References: <20210826092854.58694-1-woodylin@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210826092854.58694-1-woodylin@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 26, 2021 at 05:28:54PM +0800, Woody Lin wrote: > Add char device driver 'userpanic-dev' that exposes an interface to > userspace processes to request a system panic with customized panic > message. > > Signed-off-by: Woody Lin > --- > drivers/staging/android/Kconfig | 12 +++ > drivers/staging/android/Makefile | 1 + > drivers/staging/android/userpanic-dev.c | 110 ++++++++++++++++++++++++ Why is this in staging? What is wrong with it that it can not just go into the real part of the kernel? A TODO file is needed explaining what needs to be done here in order for it to be accepted. But why is this really needed at all? Why would userspace want to panic the kernel in yet-another-way? thanks, greg k-h