Re: [btrfs] WARNING: CPU: 0 PID: 6379 at fs/direct-io.c:293 dio_complete+0x1d4/0x220

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 13, 2017 at 11:16 AM, Jens Axboe <axboe@xxxxxxxxx> wrote:
>
> I would tend to agree with you, it's annoying to dump a full stack trace
> for an expected (even for a rare situation) condition. But it's not the
> first one, there's also one in XFS that always triggers for test runs. I
> complained about that one in the past.

Yeah, we should always consider a WARN_ON() that is triggerable from
user space to be a kernel bug.

If it's a "cannot happen", then the bug should be fixed.

If it's a "can happen, but I want to see the trace", then you just got
the trace and you're done, and the WARN_ON() should be removed.

It could possibly be replaced with a "pr_warn()" or something, so that
it still shows up as a "the user did something dodgy", but honestly,
even that is questionable. We do that for things like "we just removed
support for this, we want to see if somebody is using it"

So in no case is "let's just keep things as is" the right answer.

               Linus



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux