Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6505584rwp; Tue, 18 Jul 2023 01:05:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlH/la1RHIm8o+8xUP2pjese0js6g+ab/QKNH8gEST58LyDAg5rWIhXyThChvE4SxGOGZE0D X-Received: by 2002:a05:6a20:3d92:b0:130:7803:5843 with SMTP id s18-20020a056a203d9200b0013078035843mr1671380pzi.4.1689667526967; Tue, 18 Jul 2023 01:05:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689667526; cv=none; d=google.com; s=arc-20160816; b=Fsq0YAeICTMobA9bzYZgJ/oDfYiWbclbLADI7M11saAImhEJbMcXhTJa5RkfsX2SoI KKRRYkQXSqc2JWaI8bCdyCNTb9cT3THfTiqPNwVzUrxo6Y4ojDvSX4uXREOK6LKZMmp1 YdADiCkOhjTV8DU802kXZRwAxFbH1Lj0bnM+AhMB1HfagrZaGpLLoAEEk2/H/F6YslOG Vts+PffinlhESaXJclUGJonfYeDj/LlBQzQ2MUyUj8Pk8JOO0r7QHaSJwtyxYgHx+uYG ryACChKKP6Cc4Fpa5n+9F+ChjgAmSr6hm516wDRFjDqkPB9wppvtjyw7EVN3JwOdPKKC Xb3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fnwKc/o3ISHm8NcR21OLJ9uDUCnyHyDdo8J6H/w7iTw=; fh=aVO8Bt5YzP/jbiXsJQ6V8LkficwzzoQ9WVEKg6N/yec=; b=X+fJ77xzql3LgW5E3IOhLaz3Zt6La4LrW/acp1oDpCVW98njivw7xZd5S+VW+WEoHq 760hPAkQbo6BkO82wHDJd1wpresE+k+UrbMM/BTipq+OwS2RQ9BoyRWF8a+z2eHeqag2 soS+oAP2Gh+UUfEFMRLVREy0KyXdw/tVjt07BAKJ9JpLsRzC4xwPTp5gbRLbI0QtIuRv ZkmGpZ1BVw6iBkLQANudeRwAQU4R2PzfNdaNzLgcr9pOa9GDJnZ3aEECMc5iUJRQ8cYF Uyq2LMYcxxUrEOV964aBA9vCxmFCYoXK3D+ZrAo0HJmcSEuwgi99pWZiBf1nydazoThs oczA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@heitbaum.com header.s=google header.b=YDBzoZ2Q; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e12-20020a17090301cc00b001b9e39f8e21si1300817plh.127.2023.07.18.01.05.13; Tue, 18 Jul 2023 01:05:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@heitbaum.com header.s=google header.b=YDBzoZ2Q; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231562AbjGRIDn (ORCPT + 58 others); Tue, 18 Jul 2023 04:03:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232177AbjGRIDJ (ORCPT ); Tue, 18 Jul 2023 04:03:09 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 009D51FD8 for ; Tue, 18 Jul 2023 01:02:32 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1b9cdef8619so33409235ad.0 for ; Tue, 18 Jul 2023 01:02:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heitbaum.com; s=google; t=1689667351; x=1692259351; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=fnwKc/o3ISHm8NcR21OLJ9uDUCnyHyDdo8J6H/w7iTw=; b=YDBzoZ2QJljNIlYmSvS0QS08AyWmQkA8eWYBsjFyGKN2ULcH2tKZpx2j3CTyz5zKJ1 itg3Haejzl9W/y1o8RiUcUBiZwDyI8F4M0avo9WLTpITRc+UcnRqZCEnYxvW4wgL6D8Y Z2Gz1B74iO4ilDDZM6OZhcD/m62y4/h25ry3U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689667351; x=1692259351; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=fnwKc/o3ISHm8NcR21OLJ9uDUCnyHyDdo8J6H/w7iTw=; b=GqeBq7pLNsq5O7noInH5BGqG5MyKlfotoDkwNVxQrQh46f24TibRtAr/sp75WweT/L aPiYLfJFv+7hjJ9GZPCX7lYUhOkCph1/5LaDR2973drB1OD34qf5o2VVscz9zyFnkDAU SUAU9YWT+xh1m9Nczhp+PB8nFP0XRugjC/lrQO7JfQchmlijXLY3VkOzdgLkiS2ISSDr DT7PMonBpEfjyCQjJkl6eWxdxqae0LePo+e+vsQq0tfq3mRpCAC1ALXLSO/qxJHfWnre Nqds5oSvrz5AO6orm5S/f6ZUD0YvE1bDCzIxyva5XZjOTFoJ7S4hOXOH6soxKNx0HnUU o9Vw== X-Gm-Message-State: ABy/qLZDPKwvk5RUK+/ebkyNpCDUHD+viEqtanbdu+/SDFaJptPyoc8O soNixKiuk30X7woutioJZpUN2A== X-Received: by 2002:a17:902:e743:b0:1b2:5d5b:e871 with SMTP id p3-20020a170902e74300b001b25d5be871mr1425468plf.59.1689667350665; Tue, 18 Jul 2023 01:02:30 -0700 (PDT) Received: from 503599e9be06 ([122.199.31.3]) by smtp.gmail.com with ESMTPSA id y6-20020a17090322c600b001b53953f306sm1173206plg.178.2023.07.18.01.02.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jul 2023 01:02:29 -0700 (PDT) Date: Tue, 18 Jul 2023 08:02:22 +0000 From: Rudi Heitbaum To: "Peer, Ilan" Cc: Bagas Sanjaya , Johannes Berg , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "Kirill A. Shutemov" , Michael Ellerman , Andrew Morton , Linux Kernel Mailing List , Linux Regressions , Linux Memory Management List , Linux Networking , Linux Wireless Subject: Re: mm/page_alloc.c:4453 with cfg80211_wiphy_work [cfg80211] Message-ID: References: <51e53417-cfad-542c-54ee-0fb9e26c4a38@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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-wireless@vger.kernel.org > From 5a6fcc4b2a91608917697f8446ec3e10b2ce9178 Mon Sep 17 00:00:00 2001 > From: Ilan Peer > Date: Tue, 18 Jul 2023 00:33:04 +0300 > Subject: [PATCH] wifi: cfg80211: Fix return value in scan logic > > As cfg80211_parse_colocated_ap() is not expected to return a negative > value return 0 and not a negative value if cfg80211_calc_short_ssid() > fails. > > This bug was introduced in commit c8cb5b854b40f > ('nl80211/cfg80211: support 6 GHz scanning'). > > Signed-off-by: Ilan Peer > --- > net/wireless/scan.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/net/wireless/scan.c b/net/wireless/scan.c >index 8bf00caf5d29..0cf1ce7b6934 100644 >--- a/net/wireless/scan.c >+++ b/net/wireless/scan.c >@@ -657,7 +657,7 @@ static int cfg80211_parse_colocated_ap(const struct cfg80211_bss_ies *ies, > > ret = cfg80211_calc_short_ssid(ies, &ssid_elem, &s_ssid_tmp); > if (ret) >- return ret; >+ return 0; > > for_each_element_id(elem, WLAN_EID_REDUCED_NEIGHBOR_REPORT, > ies->data, ies->len) { >-- >2.25.1 Hi Ilan, I can confirm that this fixes the error in my dmesg. Regards Rudi Tested-by: Rudi Heitbaum On Mon, Jul 17, 2023 at 01:41:43PM +0000, Peer, Ilan wrote: > Hi Sanjaya, > > Can you please check if the attached patch fixes your issue? > > Thanks in advance, > > Ilan. > > > -----Original Message----- > > From: Bagas Sanjaya > > Sent: Sunday, July 16, 2023 14:11 > > To: Rudi Heitbaum ; Johannes Berg > > ; David S. Miller ; Eric > > Dumazet ; Jakub Kicinski ; > > Paolo Abeni ; Kirill A. Shutemov > > ; Michael Ellerman > > ; Andrew Morton > > Cc: Linux Kernel Mailing List ; Linux > > Regressions ; Linux Memory Management List > > ; Linux Networking ; Linux > > Wireless > > Subject: Fwd: mm/page_alloc.c:4453 with cfg80211_wiphy_work [cfg80211] > > > > Hi, > > > > I notice a regression report on Bugzilla [1]. Quoting from it: > > > > > Linux version 6.5.0-rc1+ - up to > > > 831fe284d8275987596b7d640518dddba5735f61 > > > > > > [ 7.312665] ------------[ cut here ]------------ > > > [ 7.312671] WARNING: CPU: 8 PID: 659 at mm/page_alloc.c:4453 > > __alloc_pages+0x329/0x340 > > > [ 7.312683] Modules linked in: exfat ntfs3 bnep btusb btrtl btbcm btintel > > btmtk bluetooth ecdh_generic ecc iwlmvm mac80211 libarc4 > > snd_hda_codec_hdmi iwlwifi snd_hda_codec_realtek > > snd_hda_codec_generic ledtrig_audio cfg80211 snd_hda_intel > > snd_hda_codec snd_hwdep intel_rapl_msr x86_pkg_temp_thermal > > intel_powerclamp snd_hda_core tpm_tis intel_rapl_common > > snd_intel_dspcfg tpm_tis_core idma64 rfkill tpm_crb tpm rng_core > > pkcs8_key_parser fuse dmi_sysfs > > > [ 7.312725] CPU: 8 PID: 659 Comm: kworker/8:2 Not tainted 6.5.0-rc1 #1 > > > [ 7.312729] Hardware name: Intel(R) Client Systems > > NUC12WSKi7/NUC12WSBi7, BIOS WSADL357.0087.2023.0306.1931 03/06/2023 > > > [ 7.312731] Workqueue: events cfg80211_wiphy_work [cfg80211] > > > [ 7.312785] RIP: 0010:__alloc_pages+0x329/0x340 > > > [ 7.312791] Code: a8 44 89 e6 89 df c6 45 c8 00 4c 89 6d b0 41 89 de e8 0b ef > > ff ff 49 89 c7 e9 90 fe ff ff 80 e3 3f eb c0 c6 05 69 49 f7 09 01 <0f> 0b eb 98 e8 > > 1e ec 6d 01 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f > > > [ 7.312794] RSP: 0018:ffffad8e80defbf8 EFLAGS: 00010246 > > > [ 7.312798] RAX: 0000000000000000 RBX: 0000000000040dc0 RCX: > > 0000000000000000 > > > [ 7.312800] RDX: 0000000000000000 RSI: 0000000000000000 RDI: > > 0000000000040dc0 > > > [ 7.312802] RBP: ffffad8e80defc50 R08: 0000000000000005 R09: > > 0000000000000018 > > > [ 7.312804] R10: ffff938899d4a800 R11: ffff938891a9c800 R12: > > 0000000000000034 > > > [ 7.312806] R13: 0000000000000000 R14: ffffffffc02b150d R15: > > fffffffffffffc90 > > > [ 7.312808] FS: 0000000000000000(0000) GS:ffff938fb6600000(0000) > > knlGS:0000000000000000 > > > [ 7.312811] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > > > [ 7.312813] CR2: 00007f540c94b710 CR3: 000000059502c000 CR4: > > 0000000000f50ea0 > > > [ 7.312815] PKRU: 55555554 > > > [ 7.312817] Call Trace: > > > [ 7.312819] > > > [ 7.312822] ? show_regs+0x69/0x80 > > > [ 7.312827] ? __warn+0x89/0x140 > > > [ 7.312833] ? __alloc_pages+0x329/0x340 > > > [ 7.312837] ? report_bug+0x15d/0x180 > > > [ 7.312843] ? handle_bug+0x42/0x80 > > > [ 7.312848] ? exc_invalid_op+0x1c/0x70 > > > [ 7.312852] ? asm_exc_invalid_op+0x1f/0x30 > > > [ 7.312857] ? cfg80211_scan_6ghz+0x12d/0xcb0 [cfg80211] > > > [ 7.312911] ? __alloc_pages+0x329/0x340 > > > [ 7.312916] ? cfg80211_scan_6ghz+0x12d/0xcb0 [cfg80211] > > > [ 7.312968] __kmalloc_large_node+0x7e/0x170 > > > [ 7.312973] __kmalloc+0xb9/0x120 > > > [ 7.312976] cfg80211_scan_6ghz+0x12d/0xcb0 [cfg80211] > > > [ 7.313028] ? sched_clock_noinstr+0xd/0x20 > > > [ 7.313034] ? sched_clock_cpu+0x14/0x190 > > > [ 7.313040] ? raw_spin_rq_lock_nested+0x12/0x20 > > > [ 7.313046] ___cfg80211_scan_done+0x1e0/0x250 [cfg80211] > > > [ 7.313099] __cfg80211_scan_done+0x23/0x30 [cfg80211] > > > [ 7.313153] cfg80211_wiphy_work+0xae/0xd0 [cfg80211] > > > [ 7.313201] process_one_work+0x1f1/0x3e0 > > > [ 7.313204] worker_thread+0x51/0x3f0 > > > [ 7.313207] ? _raw_spin_unlock_irqrestore+0x26/0x30 > > > [ 7.313212] ? __pfx_worker_thread+0x10/0x10 > > > [ 7.313217] kthread+0xdb/0x110 > > > [ 7.313222] ? __pfx_kthread+0x10/0x10 > > > [ 7.313226] ret_from_fork+0x3e/0x60 > > > [ 7.313229] ? __pfx_kthread+0x10/0x10 > > > [ 7.313233] ret_from_fork_asm+0x1b/0x30 > > > [ 7.313237] > > > [ 7.313239] ---[ end trace 0000000000000000 ]--- > > > > See Bugzilla for the full thread. > > > > Anyway, I'm adding it to regzbot to make sure it doesn't fall through cracks > > unnoticed: > > > > #regzbot introduced: v6.5-rc1..831fe284d82759 > > https://bugzilla.kernel.org/show_bug.cgi?id=217675 > > > > Thanks. > > > > [1]: https://bugzilla.kernel.org/show_bug.cgi?id=217675 > > > > -- > > An old man doll... just what I always wanted! - Clara