Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1582339pxa; Thu, 13 Aug 2020 11:45:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCMjy7aYJQirp5XkY+HeU5WdzaRsWgAVHjeZUviU38TqQSmySlK2oSgnMTzYgMw9FWIl1g X-Received: by 2002:a05:6402:3113:: with SMTP id dc19mr5735473edb.280.1597344302475; Thu, 13 Aug 2020 11:45:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597344302; cv=none; d=google.com; s=arc-20160816; b=SlqTuElqvlkbIE0BrtdNsC2tTnvRWC+F5J9Fw+90G1Vr5LxZEVugem9gzyouXCSJyI CgRR1us8WrLB98TwJ8bsVvLT0xFxwH1rqS5vHqiw1BzHUgxcyTsdcX1qvKlqYKxHaMM8 V+WdeSvi7ed2BlYMOrPsq/Br+jknWn5IKdgPGn7ngLTUldTSBhHcbvbzBSV0WZix/ot2 YyeAnfg/uTJwAk26wb0kOBDf3QSxfhoJIZAYuSbLX7u3W5xIqWN7kQHY4NtPT33WMM4G 50sdSgAKsumzWDXW8Wza6zGdG3e9vltEaeSxgCv+aRInCYhM569J9vGoGGhGvtdosB6U LEoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=qXipwEBN2Iz4fq1yjNq98iQvWOe5oSb3TwyPypfMNUc=; b=Mgu9dcGb+likG2k/T/Xi79dLgVZh8QZwvC3W5dw9G3nUMUetiZnY+Qyz/bqI5zwgvW 1gB6mF0RGmTiCj7bxpYMGvrYbeCCWapTGAlgksA0h3KO25nVzip6bnzb6xq2I7qayXqj 9/zd9IbkuzUl+iEpZIIpiFmfw76u9cG3aHDej1XkRE3CcJuCZxR8Pb8B/B8yPQVYUILA W00tuH8225A+8s45tmeMC9T/iU0D6fV27dqI+c8zWuh2I6okIybNa0Q3Ey3I1hFve+X/ 3ZEPcRIUql54bIb7Jr0p5QI2UJRJEEWi9Ng1bEypETgenymqZyMofW4K5nUp5jpetdEx /bXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=bwNfn8z8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id by9si3776752edb.241.2020.08.13.11.44.39; Thu, 13 Aug 2020 11:45:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=bwNfn8z8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726518AbgHMSnz (ORCPT + 99 others); Thu, 13 Aug 2020 14:43:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726174AbgHMSnx (ORCPT ); Thu, 13 Aug 2020 14:43:53 -0400 Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 674E0C061757 for ; Thu, 13 Aug 2020 11:43:53 -0700 (PDT) Received: by mail-il1-x141.google.com with SMTP id 77so6412111ilc.5 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=mptUIW6V+8kIYIUluuJmlPgHmx7Lsc6xAbVVrSnOn+fYfjAS+In43BWC/nZDYX3YCp H2HHMD7IVDQuKla3jqhyElWNWIBcRsDJzz+nnU8UYpSM3WCTNM3vG01wgF5Vuao06NGo OvF9J/NiBr5E4jKDA9YqylFvSJx1UMgTb3yy6Lb3gWakRKjqAaeFI4SmBtXdE0/DSY5K Ba7Yz4eX4MZECSeASNueiJjSgLe/yS/pIoX+30K6hI6oL+eHQxQ+I+vGQjD69u5kDySt XbR4evRNkxBjHfcnL/LIuGWbTtsvjGoDSP0f+/PDcvAjryly/iaAI4IZwGFZbG5dDezg KePQ== X-Gm-Message-State: AOAM5335M+82jruvEjHYPSghaxzVW44TFE1V/DaTDSyR5oNLskllG4Ty UgTDtA5i6h2LUpb9T+4bW4/pYw== 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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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