lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+55aFxv4jVzoa_NpYOq=+TVpBvbSmJq++dPW5nmWNdxUEc-8Q@mail.gmail.com>
Date:   Mon, 13 Nov 2017 11:21:50 -0800
From:   Linus Torvalds <torvalds@...ux-foundation.org>
To:     Jens Axboe <axboe@...nel.dk>
Cc:     Eric Biggers <ebiggers3@...il.com>, Eryu Guan <guaneryu@...il.com>,
        Fengguang Wu <fengguang.wu@...el.com>,
        Lukas Czerner <lczerner@...hat.com>, Jan Kara <jack@...e.cz>,
        "Darrick J. Wong" <darrick.wong@...cle.com>,
        Jeff Moyer <jmoyer@...hat.com>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        linux-fsdevel <linux-fsdevel@...r.kernel.org>
Subject: Re: [btrfs] WARNING: CPU: 0 PID: 6379 at fs/direct-io.c:293 dio_complete+0x1d4/0x220

On Mon, Nov 13, 2017 at 11:16 AM, Jens Axboe <axboe@...nel.dk> 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ