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: <20200929063815.GB1839@lst.de>
Date:   Tue, 29 Sep 2020 08:38:15 +0200
From:   Christoph Hellwig <hch@....de>
To:     Eric Biggers <ebiggers@...nel.org>
Cc:     Christoph Hellwig <hch@....de>,
        David Laight <David.Laight@...lab.com>,
        syzbot+51177e4144d764827c45@...kaller.appspotmail.com,
        linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
        syzkaller-bugs@...glegroups.com, viro@...iv.linux.org.uk
Subject: Re: WARNING in __kernel_read (2)

On Mon, Sep 28, 2020 at 03:14:41PM -0700, Eric Biggers wrote:
> On Sat, Sep 26, 2020 at 01:17:04PM +0000, David Laight wrote:
> > From: David Laight
> > > Sent: 26 September 2020 12:16
> > > To: 'syzbot' <syzbot+51177e4144d764827c45@...kaller.appspotmail.com>; linux-fsdevel@...r.kernel.org;
> > > linux-kernel@...r.kernel.org; syzkaller-bugs@...glegroups.com; viro@...iv.linux.org.uk
> > > Subject: RE: WARNING in __kernel_read (2)
> > > 
> > > > From: syzbot <syzbot+51177e4144d764827c45@...kaller.appspotmail.com>
> > > > Sent: 26 September 2020 03:58
> > > > To: linux-fsdevel@...r.kernel.org; linux-kernel@...r.kernel.org; syzkaller-bugs@...glegroups.com;
> > > > viro@...iv.linux.org.uk
> > > > Subject: WARNING in __kernel_read (2)
> > > 
> > > I suspect this is calling finit_module() on an fd
> > > that doesn't have read permissions.
> > 
> > Code inspection also seems to imply that the check means
> > the exec() also requires read permissions on the file.
> > 
> > This isn't traditionally true.
> > suid #! scripts are particularly odd without 'owner read'
> > (everyone except the owner can run them!).
> 
> Christoph, any thoughts here?  You added this WARN_ON_ONCE in:
> 
> 	commit 61a707c543e2afe3aa7e88f87267c5dafa4b5afa
> 	Author: Christoph Hellwig <hch@....de>
> 	Date:   Fri May 8 08:54:16 2020 +0200
> 
> 	    fs: add a __kernel_read helper

Linus asked for it.  What is the call chain that we hit it with?

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ