From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752933AbdK3NSl (ORCPT ); Thu, 30 Nov 2017 08:18:41 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:39239 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752054AbdK3NSj (ORCPT ); Thu, 30 Nov 2017 08:18:39 -0500 Date: Thu, 30 Nov 2017 05:18:33 -0800 From: Christoph Hellwig To: Al Viro Cc: Linus Torvalds , Cong Wang , syzbot , David Miller , LKML , Linux Kernel Network Developers , syzkaller-bugs@googlegroups.com, linux-fsdevel Subject: Re: KASAN: use-after-free Read in sock_release Message-ID: <20171130131833.GA28908@infradead.org> References: <94eb2c19e756c0119b055f1afbd0@google.com> <20171130020719.GE21978@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171130020719.GE21978@ZenIV.linux.org.uk> User-Agent: Mutt/1.9.1 (2017-09-22) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 30, 2017 at 02:07:19AM +0000, Al Viro wrote: > Incidentally, grepping for sys_close() shows another piece of fun in > net/netfilter/xt_bpf.c. Folks, ONCE DESCRIPTOR IS INSTALLED, THAT'S > IT; THERE'S NO REMOVING IT ON FAILURE EXITS. sys_close() should > never, ever be used that way. Sigh... Would be great do unexport the thing. Except that we also have binfmt_misc (which looks legit) and autofs4, which on crack decided that close() isn't a fun syscall, they'd much rather have an ioctl that does exactly the same..