Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp220975imu; Wed, 2 Jan 2019 18:14:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Zr8rynD8NedP62wb0YFr1fdE7MoLwGiPt7B/7yL5yk+AgbK9NvwpLhhYlFZIsa6R8eq0f X-Received: by 2002:a65:43c5:: with SMTP id n5mr15913047pgp.250.1546481681994; Wed, 02 Jan 2019 18:14:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546481681; cv=none; d=google.com; s=arc-20160816; b=1BZou/K9R8X4P+Yphp4YXjvAiI4AbENMpYq/MWjsQ3d+rx7BG3ZxhmRGNzl5GE5OsS 0uvtvvZo9joKM75F/9HLNJY5kap75VtKeCwitDA23PS+PZk+bGp2jjSczsEMPUkfEvq0 47u7noshQIo/9OmPcGWZchEAZG/HjIWVLeEoM+w0A3Dog7ZLVdzCAeG4VF9zLG5VsiRd AuvwhJMJ8sTvDGlaPZsbzsBXh2nDRzEwkAqd8ujiO+VXmGw8CVDapeXNBu4nPMnfeaEu 7qlPvWr5MHVcZKkQ+07ItC3J1INhsy3a1whzIXRC1UaPl4vVhXfBxE23BzasjBsThEqe NXTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=8rwziIHzw53tWysSUl6JTfhi0XVsEkPMvbKTwIciO5w=; b=t068DseVpT5xkDeo+bBnsTjSZP6jKFPSGPBs2DViIZ4ReuX9tcuQQ3kfifPAxSHc/7 LEwt+8T0vfkToqPgxWfxmf/fn5IRdssPjW2tHYcFmGMvTHdN07yo+OJtHSv7jKiM0Ymq OJ5rFuxndZDyj0Cr4J7JCV2mXRCiWgke0Iq0vSa/KX4UmeA5OBi05YeB/l9WmJTz9Tj/ 9TAw95TQhOFgPsrQQgRIYDdTIcQ00t+nOCBVx6YBjg0MdNSjEsEj4lmlw2B5bDBa39zg j/ERZvyYFaFJ7ajIS8ZeA0yyUoEtQSaBkAp5WWsKPnjq948KKtdc8jukp96D1/nhw4p9 3Lcg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 12si10825120pfx.102.2019.01.02.18.14.26; Wed, 02 Jan 2019 18:14:41 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728515AbfABVpD (ORCPT + 99 others); Wed, 2 Jan 2019 16:45:03 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:45766 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728047AbfABVpC (ORCPT ); Wed, 2 Jan 2019 16:45:02 -0500 Received: by mail-oi1-f194.google.com with SMTP id y1so26226418oie.12 for ; Wed, 02 Jan 2019 13:45:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8rwziIHzw53tWysSUl6JTfhi0XVsEkPMvbKTwIciO5w=; b=RcSZ8wN5aMAscVwhwWsSEFvif/MNR9I+sVXL+UY0TgSMdB8wBghr2CMbu3sB249a6O c5XGFzGVuks9dUBGDov8KIdbmfMHd26/kZzdGlHcDhjGsP8bzfo/eIxcmkjMHFPHii/9 ccOZlpYv9w8EY2ysPAiLG7UQa1oLbE+dc75Hs4sj9DgVoESfxJBLlEwi3wec8fYKNwpc w95DtyBm5uCj+IGIsNGVEZ8bfAgoDfZRaNB6oM96/ImZ9sWviA3vBNvGqWXjN0LQnXbR QhIt1vAJD/mdgT/GQ0wRftCSXNN4llCKkXVlxR6qvx+ZvGt/T8b31c38XnrB9x6n0hyp pABg== X-Gm-Message-State: AA+aEWYStctNbWAdQ5TRco/TDzHMz3eCgnNbuVgT4hgBR0DdegUWeS2+ kbqPD2E43jd6t5jweYnkiUg+d4wVQpMQzgSSG/A= X-Received: by 2002:aca:b642:: with SMTP id g63mr28702206oif.195.1546465501890; Wed, 02 Jan 2019 13:45:01 -0800 (PST) MIME-Version: 1.0 References: <20190102005704.GC17624@shao2-debian> In-Reply-To: From: "Rafael J. Wysocki" Date: Wed, 2 Jan 2019 22:44:50 +0100 Message-ID: Subject: Re: [LKP] [mtd] c4dfa25ab3: kernel_BUG_at_fs/sysfs/file.c To: Linus Torvalds Cc: kernel test robot , David Woodhouse , Brian Norris , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Richard Weinberger , "Rafael J. Wysocki" , Alban Bedel , Greg Kroah-Hartman , Bartosz Golaszewski , Boris Brezillon , LKML , LKP Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 2, 2019 at 8:53 PM Linus Torvalds wrote: [cut] > Greg, Rafael: it does strike me that the "BUG_ON()" in > sysfs_create_file_ns() could easily have been a > > if (WARN_ON(..)) > return -EINVAL; > > which would have made the machine boot and probably make things easier > for normal users to report. The kernel test robot doesn't care, but > non-booting kernels are usually not nice to debug or report for normal > human beings.. I agree. This isn't a good enough reason to crash the kernel IMO. Cheers, Rafael