Re: [LKP] [mtd] c4dfa25ab3: kernel_BUG_at_fs/sysfs/file.c
From: Rafael J. Wysocki
Date: Wed Jan 02 2019 - 16:45:05 EST
On Wed, Jan 2, 2019 at 8:53 PM Linus Torvalds
> 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..
This isn't a good enough reason to crash the kernel IMO.