Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp67407pxb; Tue, 5 Apr 2022 00:15:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwB/h2zbCag5KNGcACyQdWG7cz/1py4h1Ox+0PEnQYvUodV0U3o92984hfOeg1LhI2e0FJL X-Received: by 2002:a17:90b:3849:b0:1ca:95b3:599 with SMTP id nl9-20020a17090b384900b001ca95b30599mr2451426pjb.167.1649142928821; Tue, 05 Apr 2022 00:15:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649142928; cv=none; d=google.com; s=arc-20160816; b=wTScTiRWl/4fH+qO3Mvs9BnM2fLZKYx6EEcDNgyxqC2Wmt8/AdeUkyVI7rlvmO2XeS W3h5DEpJVDxwC0g5NSDe24N9z8a2TZppt6p8DE8CXFL5IzyENR6c5sO9jSmHHe9W1WUa jGbriZPFkb4fCfCk2eNcAvyVnI8bK7yNo20NFv9HAj1EVZDTvi3/5H8r2jIAdKpRiL+Q idq90go82AKfw8eYW295JBpOkmNAZV/SrSRR0kf/TI7B5CSBj4NhERHfgf47JSTVhwXc TBErcudpmuFEfjSFDEtl5a6T76pxjgueRybbuypwyQkmVGK+RKXQzUnUrrL+G3n0jHOx /0/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=aa6EnR0OODni9NkMlW60o+EQDHL2WUhXl/q4Tb5C0WA=; b=PXaTtGNskxbERTf0wFMyXuqpn8Tb/jYYPqhLn5ZfRqwyPnJ+KTDOYvVYiZjy9k1V1e dWg/fJj2qweptyZtfJ4ELWF5mqlE9fqCoPeh+1VukuHsgI3332DkHKSJ5k/yRct0gCqh hyja0YO+OE9XxI5zuSjKXmJMJZuSpR5Wv/9Nmrqk4/8KBUXUyziZUQPLk7+KNhXzRV+R 5tvi/y9XlW3yh6Zban5HEZJc1msnlx9q2Tg3zno1Dw8U0kvqkWtAN08ttLIP99ijBY9C ZCBVcqnIE+sN4l12f6LBw5NPn09Hcdc0CvI/vMwg1Mqn2LtQG53oH9FTdnELwVheMQ+g WO3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=F4LcFfuZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c8-20020a17090ab28800b001bf6913eb4bsi1130636pjr.155.2022.04.05.00.15.15; Tue, 05 Apr 2022 00:15:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=F4LcFfuZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230403AbiDEGrM (ORCPT + 99 others); Tue, 5 Apr 2022 02:47:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230434AbiDEGqY (ORCPT ); Tue, 5 Apr 2022 02:46:24 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D44BEDE94; Mon, 4 Apr 2022 23:44:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=aa6EnR0OODni9NkMlW60o+EQDHL2WUhXl/q4Tb5C0WA=; b=F4LcFfuZLWAu9MYQ1IC5TROCFf 4kSSfdcZQZRcHRWwrmPTMkTLMoGOdmP87tvso2dlbXAGh2KNp1IyI1OKuM5COVBeLftnoTDZwlCWK IIHXkxdnE0QyAAti4rFCLRYndQWHSQ1XFRwsEYXlIjoK8TlG8kum0u1pljqalf+yc98EGUJzrBuKj y1plqwEmzXxbgvyy7KCdvK5/LtJY13nGSQKh4QAxJkJ6fB1E+GCazq2xWp7aIMGzDg2NboNQhjfFi zHCLk2pVlt4AfWN5Y0e+mmBPgb/b0HZnWDbEyKEVLF3m7hNPB8NEeWDsMZ1BVdsVl+HWByHhP+jS7 ofuxnI1A==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nbcvO-00HM1T-5d; Tue, 05 Apr 2022 06:44:22 +0000 Date: Mon, 4 Apr 2022 23:44:22 -0700 From: Christoph Hellwig To: Tetsuo Handa Cc: Christoph Hellwig , syzbot , axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, Jan Kara Subject: Re: [syzbot] INFO: task can't die in blkdev_common_ioctl Message-ID: References: <0000000000007a4a2d05dba6baa6@google.com> <67179a84-8be7-4c93-e355-2ca50666f960@I-love.SAKURA.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <67179a84-8be7-4c93-e355-2ca50666f960@I-love.SAKURA.ne.jp> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 04, 2022 at 02:12:14PM +0900, Tetsuo Handa wrote: > On 2022/04/04 13:58, Christoph Hellwig wrote: > > all, as it does not come through blkdev_fallocate. > > My patch proposes filemap_invalidate_lock_killable() and converts only > blkdev_fallocate() case as a starting point. Nothing prevents us from > converting e.g. blk_ioctl_zeroout() case as well. The "not come through > blkdev_fallocate" is bogus. Sure, we could try to convert most of the > 50 instances of filemap_invalidate_lock to be killable. But that: a) isn't what your patch actuall did b) doesn't solve the underlying issue that is wasn't designed to to be held over very extremely long running operations Or to get back to what I said before - I don't think we can just hold the lock over manually zeroing potentially gigabytes of blocks. In other words: we'll need to chunk the zeroing up if we want to hold the invalidate lock, I see no ther way to properly fix this.