From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D5372C54EBE for ; Fri, 13 Jan 2023 02:26:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231331AbjAMC0K (ORCPT ); Thu, 12 Jan 2023 21:26:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232777AbjAMC0J (ORCPT ); Thu, 12 Jan 2023 21:26:09 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0C40A469; Thu, 12 Jan 2023 18:26:08 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 95D7DB8201F; Fri, 13 Jan 2023 02:26:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC02FC433D2; Fri, 13 Jan 2023 02:26:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673576766; bh=IP2gv1lTVyvsOnZCZLK4oCIKQqjrH8jP6S6HKbMvK+M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YWlQxI+haamKaSA4y73abmE68G+07SlfaDFORGIyKKcfmyMJNq9qC2UyKF08c8jv5 eMYw/7Rd98qwIxFP+qECBAQTmuID8FLkLc5Jl9iro9eB8RtgVRjT5hkyJ32f4zzyDf 1dZjlArfXlIbS2OFbAg1JbfFzvSelHFBIsYrKm06IdRGk7qHKs6jmrTkxkuymPobVt HA8S997AtuHFQMuOX2+WRQatC+4hYmGw0i0AAbM4gc9dmNWokA4otw6HPh6n3FSPHs x/viqyVHsuxDL6ckuJwh9xv3w0DjJcikxRF5SnujxI7dshe4uqXhqug+yb4dJB0YDF rXlCP+dazW2kA== Date: Thu, 12 Jan 2023 18:26:04 -0800 From: Eric Biggers To: Jens Axboe Cc: Pavel Begunkov , io-uring@vger.kernel.org, syzbot , adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, nathan@kernel.org, ndesaulniers@google.com, syzkaller-bugs@googlegroups.com, trix@redhat.com, tytso@mit.edu, viro@zeniv.linux.org.uk Subject: Re: [io_uring] KASAN: use-after-free Read in signalfd_cleanup Message-ID: References: <000000000000f4b96605f20e5e2f@google.com> <000000000000651be505f218ce8b@google.com> <9d8339cf-5b66-959a-254d-839c0de92ec8@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9d8339cf-5b66-959a-254d-839c0de92ec8@kernel.dk> Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On Thu, Jan 12, 2023 at 07:17:25PM -0700, Jens Axboe wrote: > On 1/12/23 7:12 PM, Eric Biggers wrote: > > Over to the io_uring maintainers and list, based on the reproducer...: > > > > r0 = signalfd4(0xffffffffffffffff, &(0x7f00000000c0), 0x8, 0x0) > > r1 = syz_io_uring_setup(0x87, &(0x7f0000000180), &(0x7f0000ffc000/0x3000)=nil, &(0x7f00006d4000/0x1000)=nil, &(0x7f0000000000)=0x0, &(0x7f0000000040)=0x0) > > pipe(&(0x7f0000000080)={0xffffffffffffffff, 0xffffffffffffffff}) > > write$binfmt_misc(r4, &(0x7f0000000000)=ANY=[], 0xfffffecc) > > syz_io_uring_submit(r2, r3, &(0x7f0000002240)=@IORING_OP_POLL_ADD={0x6, 0x0, 0x0, @fd=r0}, 0x0) > > io_uring_enter(r1, 0x450c, 0x0, 0x0, 0x0, 0x0) > > This was a buggy patch in a branch, already updated and can be discarded. > Then let's do: #syz invalid