Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3793532pxu; Mon, 30 Nov 2020 10:20:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPOAhk1KRQ/lFTc2uO7Igx1qWQGiItVGfKVDd2hN+5C5GRcqrOnnbVpJKN+LlTb5lnm+XE X-Received: by 2002:a50:f303:: with SMTP id p3mr15424302edm.297.1606760433527; Mon, 30 Nov 2020 10:20:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606760433; cv=none; d=google.com; s=arc-20160816; b=P9y7+5rlFGQLASYIcPkkYhBQuUgaPvf3UcfRFW5aE0oWW3G/kf4rhE8T5GQVIl1IqR MEqNb9ejepDZV+ozV/zz7jCQXgNcF0fvvPEXKCI43qEhBF4M7CdzgayXaWtk417La/VZ 7KEt0FoZrgIoJjNSrOkRZiUUM2EfwS4j7O/aYZLbk8v7vmgzh/fqErfxi61G14BExYQ1 J/N6socy6Q4Mufh9mLB+0Jsvo24d/EoelOBPJB8rIcUVs7YCtlQ4kI07Hx7sddQ2kNiJ tLeASgsqfdoVCjtCtEPM+LcFdDapyjXoPWYEuBtlTQDHJ7p2xETilPoWiqwEtRqYZxh3 hy3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=zNPV/E/GVDzH5U+Ow7xgO0eNGeZXdhdQWf1tOSwgd2w=; b=BacR0HURnrSiNyOS7b8GVeSNrIabDCAX4Rz/wCMZlL5X/ssNkKszhRSCMS27Y4SQWz z20BnN5OFMlNHadTf4HyGucjU9L57aFxQ6lRWSawBw1b/zJOMZpkgjtGjwlkFu94kONJ +uY8wOwQiF8ZVrKa/hBcYycQ9RRt7TD78jiujwyehYuczGVJkGBhmV9YFOnMwn6czGn6 ifPjkHcSfgaLuV6CH8p9S1jvkdu4G3Xk2WQp1b1hfkEm5+u+tm4plPJQEUHQrBKi+/Ic dknxupLXKVIFLQPxcRxZEPr7RbjU2BxS29nDE+LgCImbGlesamzuUFm4SqW7c2A9552a c8YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=LXkCbQiH; 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 w10si9489989edv.243.2020.11.30.10.20.09; Mon, 30 Nov 2020 10:20:33 -0800 (PST) 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=LXkCbQiH; 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 S2388080AbgK3SRx (ORCPT + 99 others); Mon, 30 Nov 2020 13:17:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388074AbgK3SRw (ORCPT ); Mon, 30 Nov 2020 13:17:52 -0500 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D008CC061A48 for ; Mon, 30 Nov 2020 10:16:50 -0800 (PST) Received: by mail-pg1-x529.google.com with SMTP id o4so8294739pgj.0 for ; Mon, 30 Nov 2020 10:16:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=zNPV/E/GVDzH5U+Ow7xgO0eNGeZXdhdQWf1tOSwgd2w=; b=LXkCbQiHy9b9FLU75B9bwVbtlkgp70lmRg7LgcZjq1q3HONk2XsBEHtwpj6x0UbVSd tOQt3L5Ms24SfzhJUD2Hh4Hq8ZVbM9tanve70zbm+CZX89/m/wIX2yVJiA9+BucUpm3C 9RqSEvRyygmwChyFeIbDQGSN7ns3wCXqSMeXzr0gR+VrIdMp25r2rvN2Pbi+L+JW+0ia 2T5/3SerPn+Ol9W1YrVzOF/kYhFsALcob+aZki6V2Td6e9//wdMdwnOr9vlhPVlqprNq 1TYugjyeSyrA7YMKffm8wWkrnBUPF4HyAAQJKJPP6qTMzOvWBvXDn9OBBz7U/zwGswxs XQwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zNPV/E/GVDzH5U+Ow7xgO0eNGeZXdhdQWf1tOSwgd2w=; b=pZc7UNnUrjXdcV+qsxTEle5Rk7eyg/yjiKUQ3KL3jCChthzysW0Teu7buUTcWhOwPX KoK3jZSxjjsm+NB0AuBwrCqqK40I7H85KzY5qBfTR0iiS+qgDcp1TzqOjNGMzlz2dEsd 4t6J7OezEHVqn795+oprH3DzkPqsVVSRF4X7Mghf2EzHQ4kFW65NkCFItaKHxebfyZON 03qcuRI9ClHiUNCTy2u2hysSQgwhUDcC1r+pN4NCAlIGx1hPu+n6+YqFgBfFTiWLrxvC JoIPp8moXYsz+/i3Ntk3A8f7EvnW+c8UnTF3O5GcoP+9LxilNkxxT5AHleUAqe2CScfO U7bA== X-Gm-Message-State: AOAM531QIiCyI5TcKNFUGhkqF4jH5NEqV44lOCZ7eWEYb+6CwOVV76zn Fx8MHLNswG4CYxLfO7uASFE0Hw== X-Received: by 2002:aa7:91c7:0:b029:197:e389:fb26 with SMTP id z7-20020aa791c70000b0290197e389fb26mr20235917pfa.20.1606760210294; Mon, 30 Nov 2020 10:16:50 -0800 (PST) Received: from [192.168.1.134] ([66.219.217.173]) by smtp.gmail.com with ESMTPSA id a23sm81119pju.31.2020.11.30.10.16.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Nov 2020 10:16:49 -0800 (PST) Subject: Re: Lockdep warning on io_file_data_ref_zero() with 5.10-rc5 To: Pavel Begunkov , Nadav Amit Cc: linux-fsdevel@vger.kernel.org, io-uring@vger.kernel.org, LKML , Alexander Viro References: From: Jens Axboe Message-ID: <13baf2c4-a403-41fc-87ca-6f5cb7999692@kernel.dk> Date: Mon, 30 Nov 2020 11:16:48 -0700 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: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/28/20 5:13 PM, Pavel Begunkov wrote: > On 28/11/2020 23:59, Nadav Amit wrote: >> Hello Pavel, >> >> I got the following lockdep splat while rebasing my work on 5.10-rc5 on the >> kernel (based on 5.10-rc5+). >> >> I did not actually confirm that the problem is triggered without my changes, >> as my iouring workload requires some kernel changes (not iouring changes), >> yet IMHO it seems pretty clear that this is a result of your commit >> e297822b20e7f ("io_uring: order refnode recyclingā€¯), that acquires a lock in >> io_file_data_ref_zero() inside a softirq context. > > Yeah, that's true. It was already reported by syzkaller and fixed by Jens, but > queued for 5.11. Thanks for letting know anyway! > > https://lore.kernel.org/io-uring/948d2d3b-5f36-034d-28e6-7490343a5b59@kernel.dk/T/#t > > > Jens, I think it's for the best to add it for 5.10, at least so that lockdep > doesn't complain. Yeah maybe, though it's "just" a lockdep issue, it can't trigger any deadlocks. I'd rather just keep it in 5.11 and ensure it goes to stable. This isn't new in this series. -- Jens Axboe