Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp119311rdh; Tue, 6 Feb 2024 22:28:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IElluvOrRxfey0F8q7oCTajR1JNgLsYvaUaG/QVP73laytjE4EKDq/rHZEtLm27gGeYjBLd X-Received: by 2002:a05:6402:4019:b0:560:dc04:be54 with SMTP id d25-20020a056402401900b00560dc04be54mr960728eda.3.1707287329481; Tue, 06 Feb 2024 22:28:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707287329; cv=pass; d=google.com; s=arc-20160816; b=KZJLB3znKzjFJyA0MJV4KLmCM3oIuuMTUiVL0djU/y1zFog7cL3Zb9b3BgsUJBSEtt jzU7U3OB1NYlK3dyAmljMcZc5zSdEb3roC+eu7dmVcSVWk7Lr8AW6/AcF6Ml3l2/N7os 5gJdnbF6EV5IuFn2ih8WRPPuCITiPX1NdFcrIo030ZfSjinhC5DoTlhtOACx8uJYkFRh RB3Hgs6Q1uUN9SFneGiBzpc6mMPwhkGAtEoIhX8hu2wqwGdtPGtMvluaq3FKRBu1d8Cg D5mX27BLBcDw4bTdx32LcfRlUbzO3cicMpIQmNXkfh9wNYcOw5knaD574JNlJdvs3Spj LZQw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BxaDxbPEbqbFEvE0uLfz6x32H3bqouLbXBeCEmolz2E=; fh=1nORxcyx9jcdKjNtapQ4Ec1b/ajcTnDWBFabiENllhg=; b=pgPWYYCTamdbOJ557+s8SR/CGhrie0AiXMzZIsq5JTMsxueZiJs5Tz81FsiTCT3Dn4 kK5ZIDzr+o5RncUvQTuZxaQ3duOUs/AobfBFUNWXQR5q3TSFwSMNBfageVaz+EnUL19M P7v9QKaZdGrvLxwKfEDG2Sn6ItrOtdCe3DDTcSvyHQAtMlZ7eKE+cxQ1Dow6RfKZH8zd NzZK18S52ibEV6GoZI9n843HNygtO2mMYg8Ny4EulncW8OBWtOnThm4rauYt76WMrzMk zoaPEZdHkZJ8M8v/GazL/ldIx24WE8f89B7c0AIc1nXRGmGlCU2U4SEafjlFEtyH8ech AcoA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eJGn5p+i; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-wireless+bounces-3272-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3272-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCX8CyXDy26Tfqit/kcZzS8N7wsVrB6gq4CDMR6Ume8Zxe0Uo4UgtabTGMFddwKuKcvJdwFv8+kxyuUfcoSqrHmZA8WCkuEDrXCxU2l+wg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m22-20020aa7c496000000b00560095315a8si433361edq.386.2024.02.06.22.28.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 22:28:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3272-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eJGn5p+i; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-wireless+bounces-3272-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3272-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 149AE1F239C0 for ; Wed, 7 Feb 2024 06:28:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BAD111CAB3; Wed, 7 Feb 2024 06:28:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="eJGn5p+i" X-Original-To: linux-wireless@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (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 191831CD19 for ; Wed, 7 Feb 2024 06:28:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707287325; cv=none; b=KUKsQ4ikfcj+z8bKnGVRyjsDDUQMo3c+/qSoEfQ2s79JeZLSskcV0rGoSIR1w40MiytJQp8chUOlnWSjAyUtEWqtMsNvTjK14UUFtQIUqY3jnmPSO+SLzde2RI2AM5fJXgFjxc1WMq5XNtYSLA/6LMgNwcZPtVgZ7M4pz3LIb7c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707287325; c=relaxed/simple; bh=SeHhhh1vd2IFYPJdsSz4EaCMMZ4l6fwUyEmeD1OnhH8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kDdRlD3/sc3k/47XcKxH+fyZrWWZeV0QgAOBsK2oXmjQdUGKXAA6DUp0Y5Lev9Yrom0FGq55AIWaZc26xR7mhpcdcK8PN+hyQaeEXpHUQsn9nruBcbyBIZtNldeoz8pEcGKJTFNWmxEpEyE3UvyES7tTaJN5vBqR+EfjyiIJ2ls= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=eJGn5p+i; arc=none smtp.client-ip=192.198.163.7 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707287323; x=1738823323; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=SeHhhh1vd2IFYPJdsSz4EaCMMZ4l6fwUyEmeD1OnhH8=; b=eJGn5p+iGku/j3zeA2bbfqOSvuDUZXeSO1d2RhK7vT8zwxR0tmoDJ1lA JnVKiwHK1MWBJjTqvHYJzmb2dcyfDCFOuSt9oR4uoiRy8ci3QF7hlD7Uq PUz4MeaXui33tb0LFUUxjFKmnySeRd3IdlxTqhzGBXsBkscoy5HZnBfK0 ZYh04ZiBa9LQEsapsdGOi7yN8YgB/DWkrlUF3YS5YhF4nSfZ1vl7JDc4l XgueKcxgBecOhMhvT7/PPyU8e37aT9L6rzvXXwN2FHmcaoQBN8GLhnVi2 UfWt1UziVNkmbOae9+4khH1j9j/D0tHjeEXeBQFaF+LbTjSDcmXGY+VFv w==; X-IronPort-AV: E=McAfee;i="6600,9927,10976"; a="26363926" X-IronPort-AV: E=Sophos;i="6.05,250,1701158400"; d="scan'208";a="26363926" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Feb 2024 22:28:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10976"; a="909895397" X-IronPort-AV: E=Sophos;i="6.05,250,1701158400"; d="scan'208";a="909895397" Received: from lkp-server01.sh.intel.com (HELO 01f0647817ea) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 06 Feb 2024 22:28:40 -0800 Received: from kbuild by 01f0647817ea with local (Exim 4.96) (envelope-from ) id 1rXbQE-0002H0-1V; Wed, 07 Feb 2024 06:28:38 +0000 Date: Wed, 7 Feb 2024 14:27:41 +0800 From: kernel test robot To: Miri Korenblit , johannes@sipsolutions.net Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-wireless@vger.kernel.org, Shaul Triebitz Subject: Re: [PATCH 09/11] wifi: iwlwifi: iwlmvm: handle unprotected deauth/disassoc in d3 Message-ID: <202402071449.LObxtopc-lkp@intel.com> References: <20240206175739.fde438a22e3f.I3c8497520aaa95a22febff727b0ad08146965d47@changeid> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240206175739.fde438a22e3f.I3c8497520aaa95a22febff727b0ad08146965d47@changeid> Hi Miri, kernel test robot noticed the following build errors: [auto build test ERROR on wireless-next/main] [also build test ERROR on next-20240206] [cannot apply to wireless/main linus/master v6.8-rc3] [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/Miri-Korenblit/wifi-iwlwifi-mvm-fix-a-crash-when-we-run-out-of-stations/20240207-000459 base: https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git main patch link: https://lore.kernel.org/r/20240206175739.fde438a22e3f.I3c8497520aaa95a22febff727b0ad08146965d47%40changeid patch subject: [PATCH 09/11] wifi: iwlwifi: iwlmvm: handle unprotected deauth/disassoc in d3 config: powerpc-randconfig-001-20240207 (https://download.01.org/0day-ci/archive/20240207/202402071449.LObxtopc-lkp@intel.com/config) compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 7dd790db8b77c4a833c06632e903dc4f13877a64) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240207/202402071449.LObxtopc-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/202402071449.LObxtopc-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/net/wireless/intel/iwlwifi/mvm/d3.c:1518:10: error: no member named 'unprot_deauth_disassoc' in 'struct cfg80211_wowlan_wakeup' 1518 | wakeup.unprot_deauth_disassoc = true; | ~~~~~~ ^ 1 error generated. vim +1518 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 1465 1466 static void iwl_mvm_report_wakeup_reasons(struct iwl_mvm *mvm, 1467 struct ieee80211_vif *vif, 1468 struct iwl_wowlan_status_data *status) 1469 { 1470 struct sk_buff *pkt = NULL; 1471 struct cfg80211_wowlan_wakeup wakeup = { 1472 .pattern_idx = -1, 1473 }; 1474 struct cfg80211_wowlan_wakeup *wakeup_report = &wakeup; 1475 u32 reasons = status->wakeup_reasons; 1476 1477 if (reasons == IWL_WOWLAN_WAKEUP_BY_NON_WIRELESS) { 1478 wakeup_report = NULL; 1479 goto report; 1480 } 1481 1482 pm_wakeup_event(mvm->dev, 0); 1483 1484 if (reasons & IWL_WOWLAN_WAKEUP_BY_MAGIC_PACKET) 1485 wakeup.magic_pkt = true; 1486 1487 if (reasons & IWL_WOWLAN_WAKEUP_BY_PATTERN) 1488 wakeup.pattern_idx = 1489 status->pattern_number; 1490 1491 if (reasons & (IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_MISSED_BEACON | 1492 IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_DEAUTH | 1493 IWL_WOWLAN_WAKEUP_BY_GTK_REKEY_FAILURE)) 1494 wakeup.disconnect = true; 1495 1496 if (reasons & IWL_WOWLAN_WAKEUP_BY_GTK_REKEY_FAILURE) 1497 wakeup.gtk_rekey_failure = true; 1498 1499 if (reasons & IWL_WOWLAN_WAKEUP_BY_RFKILL_DEASSERTED) 1500 wakeup.rfkill_release = true; 1501 1502 if (reasons & IWL_WOWLAN_WAKEUP_BY_EAPOL_REQUEST) 1503 wakeup.eap_identity_req = true; 1504 1505 if (reasons & IWL_WOWLAN_WAKEUP_BY_FOUR_WAY_HANDSHAKE) 1506 wakeup.four_way_handshake = true; 1507 1508 if (reasons & IWL_WOWLAN_WAKEUP_BY_REM_WAKE_LINK_LOSS) 1509 wakeup.tcp_connlost = true; 1510 1511 if (reasons & IWL_WOWLAN_WAKEUP_BY_REM_WAKE_SIGNATURE_TABLE) 1512 wakeup.tcp_nomoretokens = true; 1513 1514 if (reasons & IWL_WOWLAN_WAKEUP_BY_REM_WAKE_WAKEUP_PACKET) 1515 wakeup.tcp_match = true; 1516 1517 if (reasons & IWL_WAKEUP_BY_11W_UNPROTECTED_DEAUTH_OR_DISASSOC) > 1518 wakeup.unprot_deauth_disassoc = true; 1519 1520 if (status->wake_packet) { 1521 int pktsize = status->wake_packet_bufsize; 1522 int pktlen = status->wake_packet_length; 1523 const u8 *pktdata = status->wake_packet; 1524 const struct ieee80211_hdr *hdr = (const void *)pktdata; 1525 int truncated = pktlen - pktsize; 1526 1527 /* this would be a firmware bug */ 1528 if (WARN_ON_ONCE(truncated < 0)) 1529 truncated = 0; 1530 1531 if (ieee80211_is_data(hdr->frame_control)) { 1532 int hdrlen = ieee80211_hdrlen(hdr->frame_control); 1533 int ivlen = 0, icvlen = 4; /* also FCS */ 1534 1535 pkt = alloc_skb(pktsize, GFP_KERNEL); 1536 if (!pkt) 1537 goto report; 1538 1539 skb_put_data(pkt, pktdata, hdrlen); 1540 pktdata += hdrlen; 1541 pktsize -= hdrlen; 1542 1543 if (ieee80211_has_protected(hdr->frame_control)) { 1544 /* 1545 * This is unlocked and using gtk_i(c)vlen, 1546 * but since everything is under RTNL still 1547 * that's not really a problem - changing 1548 * it would be difficult. 1549 */ 1550 if (is_multicast_ether_addr(hdr->addr1)) { 1551 ivlen = mvm->gtk_ivlen; 1552 icvlen += mvm->gtk_icvlen; 1553 } else { 1554 ivlen = mvm->ptk_ivlen; 1555 icvlen += mvm->ptk_icvlen; 1556 } 1557 } 1558 1559 /* if truncated, FCS/ICV is (partially) gone */ 1560 if (truncated >= icvlen) { 1561 icvlen = 0; 1562 truncated -= icvlen; 1563 } else { 1564 icvlen -= truncated; 1565 truncated = 0; 1566 } 1567 1568 pktsize -= ivlen + icvlen; 1569 pktdata += ivlen; 1570 1571 skb_put_data(pkt, pktdata, pktsize); 1572 1573 if (ieee80211_data_to_8023(pkt, vif->addr, vif->type)) 1574 goto report; 1575 wakeup.packet = pkt->data; 1576 wakeup.packet_present_len = pkt->len; 1577 wakeup.packet_len = pkt->len - truncated; 1578 wakeup.packet_80211 = false; 1579 } else { 1580 int fcslen = 4; 1581 1582 if (truncated >= 4) { 1583 truncated -= 4; 1584 fcslen = 0; 1585 } else { 1586 fcslen -= truncated; 1587 truncated = 0; 1588 } 1589 pktsize -= fcslen; 1590 wakeup.packet = status->wake_packet; 1591 wakeup.packet_present_len = pktsize; 1592 wakeup.packet_len = pktlen - truncated; 1593 wakeup.packet_80211 = true; 1594 } 1595 } 1596 1597 report: 1598 ieee80211_report_wowlan_wakeup(vif, wakeup_report, GFP_KERNEL); 1599 kfree_skb(pkt); 1600 } 1601 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki