Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2632586rwb; Thu, 17 Nov 2022 13:45:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf7BHJRJXYTvL2i3i8YnUzwCV0FL/GvUZjDjqkejKBHqwXersbCJT6UGBUqwI8Jp0EBJ/kRJ X-Received: by 2002:a05:6402:1507:b0:467:6c56:df3e with SMTP id f7-20020a056402150700b004676c56df3emr3674135edw.270.1668721523446; Thu, 17 Nov 2022 13:45:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668721523; cv=none; d=google.com; s=arc-20160816; b=YyyNpjrqjmue7lZrXnh7v57V8mAtvG8oHYXuqfUw2KJbXsoq7bi4gKnrYNfpgvGBlx WSpzHRp8bA2F6eDAAvRa/nF0DOloNeItfyEtkS8gxjlWzd4m0lsPIYqu2ocwoc9X2V18 5AjEcglYEAy5AOg8+eWSCB3vj0lkTEAEvrHV0XlSqhPUeTKhK3emN7R4cn2pFejBqR9a TG0jvZaOeaIHnNpR0wICfN2ECveUs1Yc5QOhzXMF2K8WWbigvXYzqhtD6CHmMkPbmDHh MiwDOUMTvDClgF+UiE356CJ5LzMG7Vb95xsHWSOHnmyxIaeAU1tD6jX2ii9vP8kV8Mpp 9fAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=P8TTugNZHLWC9Qncfa1343u+Jv0frYz+A5xvg4AkUbg=; b=JSCqXuKLa7mE3fnzOrt0iW/WBYPgIgz7/4/JaFR6/WuZS93Hc1PvuKa+X/8RLaomSg 9DX4+va8qedshhqwsG6At1rgM5WesFwLImVDQmKs21cZ48Mrk7SVjDnF/OguarQpC/NE pD1+YI4iuaOMypQvj02MoQcqKAb8JhR9omprxTU0VHNd0i1ZrKx/wutEka4lbfZzKHbV dEjBA8dqDLmvsME1UwFAmpMQ9QBQt5/qvxG+S4HtC+ZrUwW0Lm5uXr43Mrai8Wtb+c51 wfru6BW5eKuFzvbrpcx+IGRMsNOB7GaqiQc7K0U2QcVNbIDvr0TAptKVmFcvZsghQ0J0 mUBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KlsyntQa; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m14-20020a056402510e00b004615b657cbcsi1978337edd.190.2022.11.17.13.45.00; Thu, 17 Nov 2022 13:45:23 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=KlsyntQa; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240770AbiKQVGV (ORCPT + 92 others); Thu, 17 Nov 2022 16:06:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240490AbiKQVFa (ORCPT ); Thu, 17 Nov 2022 16:05:30 -0500 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59F4F91C0E for ; Thu, 17 Nov 2022 13:04:30 -0800 (PST) Received: by mail-lj1-x229.google.com with SMTP id x21so4306280ljg.10 for ; Thu, 17 Nov 2022 13:04:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=P8TTugNZHLWC9Qncfa1343u+Jv0frYz+A5xvg4AkUbg=; b=KlsyntQaCuqyPTkx2otFzLmxKaSUmMcVeEQAkafWmqIL3H5j7A8ey6ywEP9aEGE/er yeR6adPlyUNlYS6mNFOLZqNHa9iXxQIpTPvrPDlW26nKw4uc8FDbgH8sJM0QlLRTWBMS etBo21wSz8D3WSEZ1jl8NltBnX6HPPMeRFdpja5Ma2l6vhoBIxPsaJ4O8deBFGWj0D5y BQQbZngEQoI8jUTjlAGERKG1fCAGfWSUs5LKJ+MIP9Q+Wjxy9TmycckJG204vfowLcc1 7YR8AJmnDQcnw6IsNCbToxS1PWVIsNog6yd9M+H03oXyDv41WYJT3C/Fs/RpITmsirFy FkrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=P8TTugNZHLWC9Qncfa1343u+Jv0frYz+A5xvg4AkUbg=; b=8DrSnxs49oZ4e8SsREvXNtI7LTSunHWGUkUq48O0jE3US/AbqXvmklPnPN9Vr5QX/m 1Z9LMzxS2Bk9e6hiSJI+2WuUd7avaAmTH3O0fxe60sjHtIC8jiwLeW3ZHKYHa8evN0Qu Mb85iR4N3al+Op4b8n13S6cYyNZb6I6/9+jvh84CXnqULn4nweM0eVcnrpE6EjkooGlw X5C3pXuVdpPv1Ud5DAorEQVVjQ1oDDhNMChjD3l+NE1BzCwdn2uJVBy92ioJDejH8Rsc SbzISrmmqS8JryFEgRSolXx6j4lFF9cPITNgoZmOnasYiTEaXa3BAd/hedlWTCF/3sC6 RNpA== X-Gm-Message-State: ANoB5pmHkuW50tQiWy7+KBjIw/DvJNe1hnGQHvZ9sXvwEk+PIYS27Vv+ PanWdldZiXV7T2MyBRliGsX4Azc+5x8TXIQMYq0= X-Received: by 2002:a05:651c:389:b0:278:f5de:8478 with SMTP id e9-20020a05651c038900b00278f5de8478mr1503035ljp.65.1668719064359; Thu, 17 Nov 2022 13:04:24 -0800 (PST) MIME-Version: 1.0 References: <0000000000009d5daa05ed9815fa@google.com> <20221117024511.3606-1-hdanton@sina.com> <20221117125523.3783-1-hdanton@sina.com> <87wn7tlg4n.ffs@tglx> In-Reply-To: <87wn7tlg4n.ffs@tglx> From: Luiz Augusto von Dentz Date: Thu, 17 Nov 2022 13:04:12 -0800 Message-ID: Subject: Re: [syzbot] WARNING in call_timer_fn To: Thomas Gleixner Cc: Hillf Danton , syzbot , linux-kernel@vger.kernel.org, pbonzini@redhat.com, syzkaller-bugs@googlegroups.com, Steven Rostedt , Marcel Holtmann Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Hi Thomas, On Thu, Nov 17, 2022 at 8:06 AM Thomas Gleixner wrote: > > On Thu, Nov 17 2022 at 20:55, Hillf Danton wrote: > > On 17 Nov 2022 12:54:28 +0100 Thomas Gleixner > >> > >> The work has been canceled already before in the same function and there > >> are some more delayed works which can trigger this. > >> > >> So no, this whole close_sync() function is prone to teardown races and > >> just slapping a single cancel here without deeper analysis does not cut > >> it. > > > > Agree. > > > > A set of sync cancelations can do the job, given what is defined in struct > > hci_dev wrt workqueue. > > It's only part of the solution because you also have to prevent that > work is queued from other parts of the code.... I thought we would have something similar to shutdown_timer (e.g. shutdown_delayed_work) so we can safely free its object/struct, at least that was the impression I got when discussing with Steven. -- Luiz Augusto von Dentz