Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp164836pxb; Mon, 16 Aug 2021 02:35:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzm1SrHHn/atPAe8VaBkNxc81TfOAQ+5fDFO/1HooWiZHKP2cgUVlkqsIZjUoTPa1cQibJi X-Received: by 2002:a17:906:199b:: with SMTP id g27mr15237550ejd.517.1629106547560; Mon, 16 Aug 2021 02:35:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629106547; cv=none; d=google.com; s=arc-20160816; b=AZEUnW8e2leMR9UdM0+SUAlltw3iEQoKPj9qEkwcsJHGc44zKBM+vuH/6pZXyASuMt 5GLqjRzF2W5QAmF099WiAYNEI96fqyF36LpGWSPyDJu1KnyLckSoLoi4Om8YuRJdLKor c24ja+IIScq4KmCZZXPn5RZdMnw0oW8/8dMRDSO+g9cdr8aAqvQV29Wp+t5wuvcm/R9b DJYkO7GjowiLEiBjs6AZjiD4eP0dS8+Jki5tn7AXKC6ghjiQTjcCng9RgK6Iv1FRlOKP rkVpZxhQaGixdb7jvdfwmflEiV6Eo6cFL4Zv2s8ZF+ndsifhXh9HsEkbTGkmdGC/EiJg ++CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=/H/L97EBqNxS7DruKuniB1v92MZUcwYpxLmYe/STWE4=; b=Al+9sU6i62S1TfMtbjY2+a9Junmk2RTNbezUX/UqBt0W4vGZaGD6xD0loiehrTEJ64 MVdWw28XgwU52SONRxCD3ZTOyJwUaRJ1u/jwOVhAG/xaz8Ej20CeiqMp723AHhwYAgf4 oaWCyUvbUWf+Pn9EuiwBkCMBNfAev0L+pyvRYvkqS2/tXTLYrAR5HVEhX1jill2VBRmF ym+Ksf87y4v7Nry7u2VgINq75ShxuCkoG4GI4LdOi97pbk2ONaADqXAPzBLLoJTsCSQW ki8v1018ZD1ee6RWVUvsoViaXxKg9/ouIR7hVaMKG3oRP2SSifmxCrOqoXEMBhsaISDC YTdw== ARC-Authentication-Results: i=1; mx.google.com; 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 fl2si8805027ejc.34.2021.08.16.02.35.23; Mon, 16 Aug 2021 02:35:47 -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; 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 S234878AbhHPJeK (ORCPT + 99 others); Mon, 16 Aug 2021 05:34:10 -0400 Received: from verein.lst.de ([213.95.11.211]:53673 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230506AbhHPJeK (ORCPT ); Mon, 16 Aug 2021 05:34:10 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 69EB467373; Mon, 16 Aug 2021 11:33:36 +0200 (CEST) Date: Mon, 16 Aug 2021 11:33:36 +0200 From: Christoph Hellwig To: Hillf Danton Cc: syzbot , axboe@kernel.dk, Christoph Hellwig , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] general protection fault in wb_timer_fn Message-ID: <20210816093336.GA3950@lst.de> References: <00000000000072e53a05c983ab22@google.com> <20210816091041.3313-1-hdanton@sina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210816091041.3313-1-hdanton@sina.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 16, 2021 at 05:10:41PM +0800, Hillf Danton wrote: > Remove and free all qos callbacks added, with cb->timer deleted in > blk_stat_remove_callback(). > > only for thoughts. > > +++ x/block/blk-sysfs.c > @@ -800,9 +800,7 @@ static void blk_release_queue(struct kob > > might_sleep(); > > - if (test_bit(QUEUE_FLAG_POLL_STATS, &q->queue_flags)) > - blk_stat_remove_callback(q, q->poll_cb); > - blk_stat_free_callback(q->poll_cb); > + rq_qos_exit(q); rq_qos_exit is already called in blk_cleanup_queue, and the blk-mq pollig doesn't even use the qos framework. So I'm not sure what this is supposed to help.