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 X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5FED2C433E3 for ; Thu, 13 Aug 2020 18:43:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4312F2078B for ; Thu, 13 Aug 2020 18:43:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20150623.gappssmtp.com header.i=@kernel-dk.20150623.gappssmtp.com header.b="bwNfn8z8" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726526AbgHMSnz (ORCPT ); Thu, 13 Aug 2020 14:43:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726244AbgHMSny (ORCPT ); Thu, 13 Aug 2020 14:43:54 -0400 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B925C061383 for ; Thu, 13 Aug 2020 11:43:53 -0700 (PDT) Received: by mail-il1-x143.google.com with SMTP id k4so6403813ilr.12 for ; Thu, 13 Aug 2020 11:43:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=qXipwEBN2Iz4fq1yjNq98iQvWOe5oSb3TwyPypfMNUc=; b=bwNfn8z89yMMgws2NUQpBbcixw4kIhb1FMB5u8AC2FUvX9o+Xgl532AWbjVVlO7gik /w8NRLA31JDA9JOy6SQAlyaJ6awX/TuZiBBSeEu66ji3lHC01ClFtIubX7080ZZ3pARL bdRN2/4MRMuNZ/waHaQjO5UWWfrd51LDiDFolKA0D/3VlBA4NyCNdj9hIHplwm6UM2Qk a+QlNvDpmpoeaPNLDQVoDpRs7i1kO6snz44Gg0pLd/7v/v3BM9OvFFT2N6jGcTAUm113 dpBScb1eYaI5LDf3mFn9y6RDcqlUClryYva6PHhLb1FpJHj3+XwU3Zb4WSRVF8BkQ9z9 TTDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=qXipwEBN2Iz4fq1yjNq98iQvWOe5oSb3TwyPypfMNUc=; b=QFYv5wVX6YbV8Al6FiMkqxouFTd+yRDQXQnj7izpp9WTEpG4KN0MTzZ0ZrcQk4CFD2 M309Nv2EKkt+zVVzSH0wla2Qdp4T7HXgiFz8VjEB5JDqeBV05seurVBqspavNJp4+Wwh ztpk0ujVgKCgs4hkFYQ3AVkQkJLGAa+RjoIjfzN/AvFZ/xtbiPt3MwFAOYYNB5DSCDYd y7efiUOJS8M8DxBxdDl/BJve6oHJnwH0N2h9IrNdOlIIgC0SGjMHaMIy5Wf3V5V21YMh /0e37J8xyrr66QTcz/RS1vwzEhrvU3FIce5UX2Thel5XhZ5fwmWV1DxWc/xWXskg/xdE Hzkw== X-Gm-Message-State: AOAM533VDX8cXO/AeyiSr3sn80quaEkV3qLsZUdC87ZYCwJVKN4Worke He1sNzyJv6XnLTL4OokMWfS/7g== X-Google-Smtp-Source: ABdhPJxCVR0MCPzTXSciVQ2VgWYBklfxQCGn8azURYmwBBV2jRA//hVqc0OkDR9om36sUE4SAMl2jQ== X-Received: by 2002:a92:1b85:: with SMTP id f5mr5753195ill.308.1597344232236; Thu, 13 Aug 2020 11:43:52 -0700 (PDT) Received: from [192.168.1.58] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id n3sm3118997ilj.29.2020.08.13.11.43.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Aug 2020 11:43:51 -0700 (PDT) Subject: Re: KASAN: use-after-free Read in idr_for_each To: syzbot , io-uring@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, viro@zeniv.linux.org.uk References: <00000000000093837f05acc5a11f@google.com> From: Jens Axboe Message-ID: <45954f2a-bd4a-7188-0013-a48efb2a3a50@kernel.dk> Date: Thu, 13 Aug 2020 12:43:50 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <00000000000093837f05acc5a11f@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: io-uring-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On 8/13/20 11:28 AM, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: fb893de3 Merge tag 'tag-chrome-platform-for-v5.9' of git:/.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=167ed216900000 > kernel config: https://syzkaller.appspot.com/x/.config?x=f1fedc63022bf07e > dashboard link: https://syzkaller.appspot.com/bug?extid=25d82ed5cc4b474f1df8 > compiler: gcc (GCC) 10.1.0-syz 20200507 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=107bc222900000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17a09d06900000 > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+25d82ed5cc4b474f1df8@syzkaller.appspotmail.com > > ================================================================== > BUG: KASAN: use-after-free in radix_tree_next_slot include/linux/radix-tree.h:421 [inline] > BUG: KASAN: use-after-free in idr_for_each+0x206/0x220 lib/idr.c:202 > Read of size 8 at addr ffff888082058c78 by task syz-executor999/3765 Should already be fixed by: commit 6d816e088c359866f9867057e04f244c608c42fe Author: Jens Axboe Date: Tue Aug 11 08:04:14 2020 -0600 io_uring: hold 'ctx' reference around task_work queue + execute which is going upstream soon. #syz dup: KASAN: use-after-free Read in io_async_task_func -- Jens Axboe