Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp888392lqh; Sat, 1 Jun 2024 00:02:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXiyEZ8ZkDVYnOhHR926Rt1NSp+R9z5/C3z4fvwBJNUeIK/0DEeOG1jqDQz0fDD5Q+VrXrrLOK235zoPnSvbLwm8H5J3paHSwtLH9dMrg== X-Google-Smtp-Source: AGHT+IGauaKvssz2/F+j6X2u33Q6qYYCFPWrw5GumyUEzXlbM+EXdJvtLPC33aK0b7iY1tdPvZth X-Received: by 2002:a05:6a00:180d:b0:702:2d79:f4ef with SMTP id d2e1a72fcca58-702478046fcmr4734207b3a.15.1717225352673; Sat, 01 Jun 2024 00:02:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717225352; cv=pass; d=google.com; s=arc-20160816; b=ApwOvtKlXpGXopm8yJ1/HLLxUs9Lahf46iNMni0tEt5XpRraYC8KolFV2AYkcErxO/ mkOd/vuY4nDUqDXZUzZ4pTMLBTt9rAN+hOsj1KTDHU5uLbbK4mrKn3GMuA18VhCUrio/ 0RoD2zWPOBSXOHWGL37V2zhoJlVYuUNOOal3x6aACuJVFdYtjG+WRtQXJUjRakHAKiE0 9UuWDjnbiIlB4znSw3UblHA0eG1e+oXQpaCuwM6DR2jGpDJryvgXRJDNHNs21FIcUuiy dJy494Mm5FjZR+MwtDhvo+qXJJum2135mNWgdn997iir7W8U8beTsAvqic9y7qTLV0St NBfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=c3BpkIhRoAOzNnRfNu5fvib2BkCLa7zB+0p/jei9OdA=; fh=aG0mqVQsRAaTj2gp0RTIcuFwXbXa8TZCAw7/ydBQGK0=; b=Ma419BEo613f4zKm9J+OpB+GUcxCLhU95tuyXbF+oqQT9yfBcS1bGQJv/m0GoaVHmo AU8Xp9va0z9WfbDbZzJ/cdLzYlQNDU5KjpOhRytETxQWad44LNSAZMPbGBdv5oTR78GE srX9Ee5kJWG1WGcsQx+pb6ejkHAmTmwxt4cSQ4TE1yJEqFczwNjaAJvcMNUyd9JiajBK jSrXu0auxPGKeb+9djOGtp9BLx/GCJOaYS9vDJAkyhPVVC5sgF0A/XA2W0X5FFRfE95Z QQ27S7IrgfOe5gP5HHL8zo9Q8gOMwaENnHKx02AQDKBAzylmQx5Cyvtjoh9/vNViSmrh aUGA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-197745-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197745-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-70242e63484si2797248b3a.393.2024.06.01.00.02.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jun 2024 00:02:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197745-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-197745-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197745-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 035F0285E37 for ; Sat, 1 Jun 2024 07:02:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC6BE14A8F; Sat, 1 Jun 2024 07:02:17 +0000 (UTC) Received: from smtp134-32.sina.com.cn (smtp134-32.sina.com.cn [180.149.134.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C9318111AA for ; Sat, 1 Jun 2024 07:02:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=180.149.134.32 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717225337; cv=none; b=n/kmjciD53t3dUd2HHNDuoGsf/fEPRAa91TIcAWE6NmK+qAALZvyEMqyOm5hchPPQ7/391wxH6aD6N5o56KbsHBFkzbCGMgfy0ydcVvDrdxaV+zsh765TM9D1Rw8hhnEbTH8UzZ+0M0to0qJ7OW8A3WXyvlihe3+WNSMac+O3mA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717225337; c=relaxed/simple; bh=zv8eMW1Eelq4laV38IJKliGY//RaAnyGOig+D03M6C0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=aOdSuW8aKnbM4VzD3fOSwiKgVTzxiwbsuvEbE8dI7I+FIR4ULNLlg9/HppL2P/sBtLj2+NYQ7qsUhsNK5+dmXtpoimT0XKTKEG0wHdJHRiv0tMWPzCnha4JlGFN7BN+qSFeBRr4RGF6B6uwVsDl7ad7FX192NOIxhqKVAzgxX4M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; arc=none smtp.client-ip=180.149.134.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([113.118.68.165]) by sina.com (10.185.250.21) with ESMTP id 665AC74700002F9A; Sat, 1 Jun 2024 15:01:29 +0800 (CST) X-Sender: hdanton@sina.com X-Auth-ID: hdanton@sina.com Authentication-Results: sina.com; spf=none smtp.mailfrom=hdanton@sina.com; dkim=none header.i=none; dmarc=none action=none header.from=hdanton@sina.com X-SMAIL-MID: 8688393408439 X-SMAIL-UIID: 6BA0A628B0B844B49317363F6B6842EB-20240601-150129-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [mm?] INFO: rcu detected stall in kcompactd (2) Date: Sat, 1 Jun 2024 15:01:17 +0800 Message-Id: <20240601070117.3481-1-hdanton@sina.com> In-Reply-To: <0000000000002304860619cb8aa1@google.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Fri, 31 May 2024 20:17:26 -0700 > syzbot found the following issue on: > > HEAD commit: 2bfcfd584ff5 Merge tag 'pmdomain-v6.10-rc1' of git://git.k.. > git tree: upstream > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17314572980000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master --- x/net/mac80211/ieee80211_i.h +++ y/net/mac80211/ieee80211_i.h @@ -1437,6 +1437,7 @@ struct ieee80211_local { * queues increases over the limit. */ #define IEEE80211_IRQSAFE_QUEUE_LIMIT 128 struct tasklet_struct tasklet; + struct work_struct tlw; struct sk_buff_head skb_queue; struct sk_buff_head skb_queue_unreliable; --- x/net/mac80211/main.c +++ y/net/mac80211/main.c @@ -423,9 +423,9 @@ u64 ieee80211_reset_erp_info(struct ieee BSS_CHANGED_ERP_SLOT; } -static void ieee80211_tasklet_handler(struct tasklet_struct *t) +static void ieee80211_tlw_fn(struct work_struct *w) { - struct ieee80211_local *local = from_tasklet(local, t, tasklet); + struct ieee80211_local *local = container_of(w, struct ieee80211_local, tlw); struct sk_buff *skb; while ((skb = skb_dequeue(&local->skb_queue)) || @@ -450,6 +450,13 @@ static void ieee80211_tasklet_handler(st } } +static void ieee80211_tasklet_handler(struct tasklet_struct *t) +{ + struct ieee80211_local *local = from_tasklet(local, t, tasklet); + + schedule_work(&local->tlw); +} + static void ieee80211_restart_work(struct work_struct *work) { struct ieee80211_local *local = @@ -989,6 +996,7 @@ struct ieee80211_hw *ieee80211_alloc_hw_ tasklet_setup(&local->tx_pending_tasklet, ieee80211_tx_pending); tasklet_setup(&local->wake_txqs_tasklet, ieee80211_wake_txqs); tasklet_setup(&local->tasklet, ieee80211_tasklet_handler); + INIT_WORK(&local->tlw, ieee80211_tlw_fn); skb_queue_head_init(&local->skb_queue); skb_queue_head_init(&local->skb_queue_unreliable); @@ -1634,6 +1642,7 @@ void ieee80211_unregister_hw(struct ieee tasklet_kill(&local->tx_pending_tasklet); tasklet_kill(&local->tasklet); + flush_work(&local->tlw); #ifdef CONFIG_INET unregister_inetaddr_notifier(&local->ifa_notifier); --