Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp308312pxb; Wed, 15 Sep 2021 02:32:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiflUyMXSap/+pENwFMkoWl8Fz+ViVg6A5UDnzZCChOQiB0UnZGBBaUFf3Yec0NqHUJmXL X-Received: by 2002:a02:2402:: with SMTP id f2mr18320284jaa.28.1631698340523; Wed, 15 Sep 2021 02:32:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631698340; cv=none; d=google.com; s=arc-20160816; b=lEKQHxw1AknX50uPfsfED9be3l0KhJezVeZOivPzZsM6vjewMCH9CRGw30Xg79y37k nYrYon5HeVNIKgjTl97jTecTDjmHQwWR1xDLVGAax0EcH1bzIMrV5LAKrogji66LDYU/ CdX2lh52KQuFmy24EkMqo3cWNJ7ogx8DebwLf6EQqO7v8jWFFsVh4R5Lswyr6hwKNryw BrhqVppwccQi9MDU848ofmTvUA+CM+eTdzjepFagj2e1qdQ/rmsPauHmt1LUucBz3Bp3 PgWqh2WrqCjQ/E2Y8g8PQrvd3I6xTJTlPY9u3jWXzxWTNG2VmE6GqNRFLPxffuaI00mW e1bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=WbtaLyN7bc/D5y/kWdbb4hJQoxC3BRCKmIuJD4Msv60=; b=tsramfgtLoGJ7+LXGTEkWQ89LZdNuQ8IhEGO4W+kb4KJtAnD7rdMB8hLJFn16yO036 8A5oPUsfm2zLrhaZpVeOE/jynhF/vQtQqBwgmBEe8YxsoEVBVLOZKMoGUN33Dn4CZ2FV g42WwhewaTZ5Jbie6dV4ZpjGP1zJZqaAKvkxFh4OWZ+IqMbrRx5DMRdB1Yy/cVgfHuiL f8E5RuZ0KOGxAFm7VVr/OqgEPVOso4Y1IezsT6vlqi5ZqwLMkTKe84ej+rcbBY2mvE3U RyhO52H/f56LaSx7X+fHQj4Imeb8krLgVJT20XlFezbPw/W94AxuppPcNxCsr0vriw3J MWrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=PnQrEKGe; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=9jXDKBde; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c14si11876147ild.77.2021.09.15.02.32.08; Wed, 15 Sep 2021 02:32:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@linutronix.de header.s=2020 header.b=PnQrEKGe; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=9jXDKBde; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232029AbhIOJdZ (ORCPT + 99 others); Wed, 15 Sep 2021 05:33:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229785AbhIOJdZ (ORCPT ); Wed, 15 Sep 2021 05:33:25 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B871C061574; Wed, 15 Sep 2021 02:32:06 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1631698323; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WbtaLyN7bc/D5y/kWdbb4hJQoxC3BRCKmIuJD4Msv60=; b=PnQrEKGeDM1uKX6dWFrx5doA2OvA8rNZ6xG3vlF/PXtN2qs29zJVCOSJMWfv+7Dcs2TlAk vevuwzcm4Z7UYSJuRsx5kjBLPoKNHn9IfsIe3zQfQDpLM4Nxw98n4aPgyucwmSLTgvnEqa Q5sXSRT9wY8aOBr2FIojQkDfrnvXL1ZXQDauodNubGglqAjfpGwvQKaCLxxODpCkbyuWRl tBZpYUgYR3YTYzXevs9yZuKjyfxFHS5wXgqH4TKiGVtGCBeg7SX+WYcpzrzc0PiLvxXpnc oF3zEduNfoCJ+ikq4Zs5cqT9gJRyBHlP4gcmWGnqgQMXwfH/nS8hvU/d3ABPPw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1631698323; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WbtaLyN7bc/D5y/kWdbb4hJQoxC3BRCKmIuJD4Msv60=; b=9jXDKBdeYWN3H5v3Zu/2lVd2wkzPK0jiD1YoUcfY/vX4I3fQ3JIpUMdQbDii/yBJ5UCF0R pbjudhEU5DZnLzCg== To: Dmitry Vyukov Cc: Hillf Danton , syzbot , linux-kernel@vger.kernel.org, paulmck@kernel.org, syzkaller-bugs@googlegroups.com, Peter Zijlstra , kasan-dev , Johannes Berg , Kalle Valo , linux-wireless@vger.kernel.org Subject: Re: [syzbot] INFO: rcu detected stall in syscall_exit_to_user_mode In-Reply-To: References: <000000000000eaacf005ca975d1a@google.com> <20210831074532.2255-1-hdanton@sina.com> <20210914123726.4219-1-hdanton@sina.com> <87v933b3wf.ffs@tglx> <87mtoeb4hb.ffs@tglx> Date: Wed, 15 Sep 2021 11:32:02 +0200 Message-ID: <87k0jib2wd.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Wed, Sep 15 2021 at 11:14, Dmitry Vyukov wrote: > On Wed, 15 Sept 2021 at 10:57, Thomas Gleixner wrote: >> That made me actually look at that mac80211_hwsim callback again. >> >> hrtimer_forward(&data->beacon_timer, hrtimer_get_expires(timer), >> ns_to_ktime(bcn_int * NSEC_PER_USEC)); >> >> So what this does is really wrong because it tries to schedule the timer >> on the theoretical periodic timeline. Which goes really south once the >> timer is late or the callback execution took longer than the >> period. Hypervisors scheduling out a VCPU at the wrong place will do >> that for you nicely. > > Nice! > > You mentioned that hrtimer_run_queues() may not return. Does it mean > that it can just loop executing the same re-armed callback again and > again? Maybe then the debug check condition should be that > hrtimer_run_queues() runs the same callback more than N times w/o > returning? Something like that.