From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.13 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795992451; b=YeHXJRO79Fxy+yrY9FiQ69kjbgnrCZRkW/TwJangSzDr+dEVqUMV2QSQCONJYMfptv3/ OX3iddTSG/LR4ylxqZ70gxEzCkKDqvRISn1jzgFaS5by9gPfJBiCAQM0M6XvTQu8QJh6B 2L3agRsIuHpJXkpXARh7YHzU0xUgwQT6Ds3vk2PnY4nncAwjYqkjpvtjbjHih4NncEXy3 1UGIrG1wO1agGNl+72ixuIStqh0V0dFD9qB8qhbR2FYGjJca//XHPPev7n/lRuZExl1/u CEy452AqUKv+P6aKCovL2iJeXJGqLwnFxDTTJXDI7h3TuX3iWvDRMLGcG6BOVBwVKwA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795992451; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=6MUSzN7bW/+m51gX5UIh/Ic8Tf23VGpN+4X+t5LewOE=; b=Jp2wyKLSX27VYY7YUjVvClfN+SxCwVcYOQRMJRQ2tJC3Z2ZmRxIw8xOmZ3HkkwBV3ohM 1cmkd/uPbpF+iTfGnhqJyNoBQWP9dI6iQtuTE6punY1KMOkh4q6e2vNzyToghzhQ61hSe KkaUJuOoJsU2J+q+OQh2kMSUKqyvjrHEtizQUpgBgYGoxbqbUC91CjNIb9Ds6yvlnXqXY YV+DG1mc9trzwCXBpg1BJsrsLObIbBmac5xVh8vf6FoPSY1EQlZPdBswegEJZrLqRr3Cg F7OzkxaQVrRJ5IT/HayEJZIuAqbgt0HU+Topi57ULhaftOO9JM5D7LLAo6+7+uE424Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=lQte9H+d; arc=none smtp.remote-ip=198.175.65.13 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4E2DB606A329 for ; Sun, 29 Nov 2026 22:47:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4E2DB606A329 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=lQte9H+d DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795992452; x=1827528452; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=SX+Tl5t7uFzDpToc4YeOmlAJwHfArBjLmk27DaHnR6U=; b=lQte9H+dG2UTWFTEsg8Wkfauda0O3/ApOhYTxxaxrlAth+41MBhzNntf 07Ew9GNXB2A3x4bY+oH0aPoOi8591q//LGKWXU2T3olBu2uJRUvsYXRKv 0bl/6FT9tUE0CSpS4x1AOE1QBTnTbvesUkc0MNKaPGAd9LZbwXoCL2B1B 4rw9Qw3qH27prGmkL6r4f47cYoWudSpN2YvPl9TtTOtVriku2ux9YyK68 /JEcLwfWPav8qtS52cxww63jgWgQWVensp6MrVUxY6Q3cndFNtGTl6J5M cyiPYSIrR2etwYhyPIMdv/yTafbSCTciwWIZVyvfWs314ZHpQVAU+yCaY g==; X-CSE-ConnectionGUID: zJNaGs+SQVm5S7w2grTHPQ== X-CSE-MsgGUID: TCdQWfyAQ+uBqznmVI54gg== X-IronPort-AV: E=McAfee;i="6800,10657,11981"; a="4719858" X-IronPort-AV: E=Sophos;i="6.27,241,1787036400"; d="scan'208";a="4719858" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2026 14:47:31 -0800 X-CSE-ConnectionGUID: asDnD7sSRH6EfprR5DS1QA== X-CSE-MsgGUID: YS6juX0zT/qjB5PCCFytIQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,241,1787036400"; d="scan'208";a="12792793" Received: from igk-lkp-server01.igk.intel.com (HELO 146cf1e082f1) ([10.211.93.152]) by fmviesa004.fm.intel.com with ESMTP; 29 Nov 2026 14:47:29 -0800 Received: from kbuild by 146cf1e082f1 with local (Exim 4.98.2) (envelope-from ) id 1xXng6-0000000019C-3Mxn; Sun, 29 Nov 2026 22:47:26 +0000 Date: Sun, 29 Nov 2026 23:46:27 +0100 From: kernel test robot To: Edward Adam Davis , syzbot+97fde463a8ffb9e839d2@syzkaller.appspotmail.com Cc: oe-kbuild-all@lists.linux.dev, tj@kernel.org, jiangshanlai@gmail.com, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [PATCH] workqueue: Avoid noise generated by real-time tasks Message-ID: <20261129234130.on7LtRsQ-lkp@intel.com> References: <20261126102530.37205-1-eadavis@sina.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261126102530.37205-1-eadavis@sina.com> Hi Edward, kernel test robot noticed the following build warnings: [auto build test WARNING on tj-wq/for-next] [also build test WARNING on linus/master v7.4-rc4 next-20261127] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Edward-Adam-Davis/workqueue-Avoid-noise-generated-by-real-time-tasks/20261126-182530 base: https://git.kernel.org/pub/scm/linux/kernel/git/tj/wq.git for-next patch link: https://lore.kernel.org/r/20261126102530.37205-1-eadavis%40sina.com patch subject: [PATCH] workqueue: Avoid noise generated by real-time tasks config: powerpc64-randconfig-r2301-20261129 (https://download.01.org/0day-ci/archive/20261129/20261129234130.on7LtRsQ-lkp@intel.com/config) compiler: powerpc64-linux-gcc (GCC) 10.5.0 sparse: v0.6.5-rc1-21-g84ec0658 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261129/20261129234130.on7LtRsQ-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/20261129234130.on7LtRsQ-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> kernel/workqueue.c:8319:27: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu * @@ kernel/workqueue.c:8319:27: sparse: expected struct task_struct *p kernel/workqueue.c:8319:27: sparse: got struct task_struct [noderef] __rcu * vim +8319 kernel/workqueue.c 8254 8255 static void wq_watchdog_timer_fn(struct timer_list *unused) 8256 { 8257 unsigned long thresh = READ_ONCE(wq_watchdog_thresh) * HZ; 8258 unsigned int max_stall_time = 0; 8259 bool lockup_detected = false; 8260 bool cpu_pool_stall = false; 8261 unsigned long now = jiffies; 8262 struct worker_pool *pool; 8263 unsigned int stall_time; 8264 int pi; 8265 8266 if (!thresh) 8267 return; 8268 8269 for_each_pool(pool, pi) { 8270 unsigned long pool_ts, touched, ts; 8271 8272 pool->cpu_stall = false; 8273 if (list_empty(&pool->worklist)) 8274 continue; 8275 8276 /* 8277 * If a virtual machine is stopped by the host it can look to 8278 * the watchdog like a stall. 8279 */ 8280 kvm_check_and_clear_guest_paused(); 8281 8282 /* get the latest of pool and touched timestamps */ 8283 if (pool->cpu >= 0) 8284 touched = READ_ONCE(per_cpu(wq_watchdog_touched_cpu, pool->cpu)); 8285 else 8286 touched = READ_ONCE(wq_watchdog_touched); 8287 pool_ts = READ_ONCE(pool->last_progress_ts); 8288 8289 if (time_after(pool_ts, touched)) 8290 ts = pool_ts; 8291 else 8292 ts = touched; 8293 8294 /* 8295 * Did we stall? 8296 * 8297 * Do a lockless check first to do not disturb the system. 8298 * 8299 * Prevent false positives by double checking the timestamp 8300 * under pool->lock. The lock makes sure that the check reads 8301 * an updated pool->last_progress_ts when this CPU saw 8302 * an already updated pool->worklist above. It seems better 8303 * than adding another barrier into __queue_work() which 8304 * is a hotter path. 8305 */ 8306 if (time_after(now, ts + thresh)) { 8307 struct task_struct *p; 8308 8309 scoped_guard(raw_spinlock_irqsave, &pool->lock) { 8310 pool_ts = pool->last_progress_ts; 8311 if (time_after(pool_ts, touched)) 8312 ts = pool_ts; 8313 else 8314 ts = touched; 8315 } 8316 if (!time_after(now, ts + thresh)) 8317 continue; 8318 > 8319 p = pool->cpu >= 0 ? cpu_curr(pool->cpu) : NULL; 8320 if (p && (p->policy == SCHED_FIFO || 8321 p->policy == SCHED_RR)) 8322 continue; 8323 8324 lockup_detected = true; 8325 stall_time = jiffies_to_msecs(now - pool_ts) / 1000; 8326 max_stall_time = max(max_stall_time, stall_time); 8327 if (is_percpu_pool(pool) && !(pool->flags & POOL_BH)) { 8328 pool->cpu_stall = true; 8329 cpu_pool_stall = true; 8330 } 8331 pr_emerg("BUG: workqueue lockup - pool"); 8332 pr_cont_pool_info(pool); 8333 pr_cont(" stuck for %us!\n", stall_time); 8334 } 8335 } 8336 8337 if (lockup_detected) 8338 show_all_workqueues(); 8339 8340 if (cpu_pool_stall) 8341 show_cpu_pools_busy_workers(); 8342 8343 if (lockup_detected) 8344 panic_on_wq_watchdog(max_stall_time); 8345 8346 wq_watchdog_reset_touched(); 8347 mod_timer(&wq_watchdog_timer, jiffies + thresh); 8348 } 8349 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki