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 EF827C54EBD for ; Fri, 13 Jan 2023 02:17:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230443AbjAMCRb (ORCPT ); Thu, 12 Jan 2023 21:17:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232740AbjAMCR3 (ORCPT ); Thu, 12 Jan 2023 21:17:29 -0500 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2374B574F4 for ; Thu, 12 Jan 2023 18:17:28 -0800 (PST) Received: by mail-pj1-x102e.google.com with SMTP id bj3so17807409pjb.0 for ; Thu, 12 Jan 2023 18:17:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=KGsajtc8LjifpVlmrbfb46/HblCKY9fCLhYkMZn0JJQ=; b=0ix5FnJEXNLiyOhb1MaYPziavhG5nMD4qS4uGxrVD2k8yuq+y9bGcWzL9S+7JzRN9i 8qjOT3pa6PV4Gd+OEa1VzwLvd0x8iJa2zDRBM2FDbpsd6RoIgx9dtBhkCmI8CH5Vz4BE VW0kGtenH0X1y2xckf/hAgAXG0BccZIohTAPtmHJwIzyCZ1Mxg1tYVdmavKxm6apjk3/ xp0kCBKLNfKDs/pPUId/UeRsOHpvx+e2IHbxQi7kbJZe3tsKRIDp7F0u3CgP7uhbLx06 MiZzJ45TGvpzaQ3rFsUbM/phDVfgNz2N6Z1OT+Yr4hggV/L+i8TwGowj0p0fEibyNYSi 6CVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KGsajtc8LjifpVlmrbfb46/HblCKY9fCLhYkMZn0JJQ=; b=aGkECv3Qb4KbFttuZix2sWbfSk5spys4dE26h76z42ipK8QKHcFiNbz/9b0Mel4XrW vv4H6kJGJrS+JdSMUTiH1h0pGSV0Aq7J6iR90MdtgwdeiMm62KwdAejwzNYXFfOJbMPl 04XD0tNq5YQEMRmieuDBJrkfYq1y85Ewz16s3HUedAKYakpo7z3SWf4DqC/jEutWJMG/ H7Le4PFkIY3TJ11vKxnxrPFUbqneyjAhhLv3XuyT9Ftvtql8TizNEbLMaVSkirduKZ21 Uu5nyRt78xE1a9Zrd1G1GfDsIsnc2QhZlNyzt/RVavm8ZOr7e7E6Dt7MAsxfc8Q4WIHU sbPA== X-Gm-Message-State: AFqh2kp8GaPzL/1QnyZUEZq8nMpiegathck3WWU646Mg6quaK7hXRnRj GRfKtpYWfXmPXiYt0bPh6s2vaw== X-Google-Smtp-Source: AMrXdXu+ZvxmOytwGQRUuYBnHGM3r17omZOu3Cl5IO25l4f4zEcdS3LbISm0cPYbkXFYVT99montqA== X-Received: by 2002:a17:902:b48e:b0:18b:cea3:645 with SMTP id y14-20020a170902b48e00b0018bcea30645mr19782541plr.0.1673576247557; Thu, 12 Jan 2023 18:17:27 -0800 (PST) Received: from [192.168.1.136] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id c6-20020a170903234600b00189b2b8dbedsm12830011plh.228.2023.01.12.18.17.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Jan 2023 18:17:27 -0800 (PST) Message-ID: <9d8339cf-5b66-959a-254d-839c0de92ec8@kernel.dk> Date: Thu, 12 Jan 2023 19:17:25 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [io_uring] KASAN: use-after-free Read in signalfd_cleanup Content-Language: en-US To: Eric Biggers , Pavel Begunkov , io-uring@vger.kernel.org Cc: 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 References: <000000000000f4b96605f20e5e2f@google.com> <000000000000651be505f218ce8b@google.com> From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org 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. -- Jens Axboe