From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.66.46 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796217790; b=MWVuxa84ErQBrxC/D+hIcEdvpfBpSCI/sgj1qZ9g2y1pjmVmDnsrsbmjmVorcjRW93Mc S/oprpbJfD6PCkmnkvvzjpdQyagjV6qrAxEc3KAtZOfP/bkOA9hDwo1E/qM4su0rCBdvQ MZ8bJBF0LCO1jSvoKdGCRsdPO5zni9xlUvM4OEHKYU8E5DNNN0VEWAo6YwRCiCoZD7xnR +wJKTSF3Tsk2DazAdgSCTQeNEFqo4zoIvKAIj0JDgOAjDhxcxDsruCnxceCIwEPf+pyJp nlF5MIESa+94f/3S730ZQmoIukgiQpCKEi/IjOyZwfWce9uKG4jxEc7zCvKzRO58/rg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796217790; h=DMARC-Filter:DKIM-Signature:Received:Received:Message-ID:Date: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding:X-ClientProxiedBy:MIME-Version: X-MS-TrafficTypeDiagnostic:X-MS-PublicTrafficType:client-request-id: request-id:X-MS-Office365-Filtering-Correlation-Id:X-LD-Processed: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-MailboxType: X-MS-Exchange-CrossTenant-UserPrincipalName: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=r2Az1mcI3g5fum9Sv0Cmnlgg5eYUxMv+hRC/dwXX7S4=; b=ChbWaTNJ/FANtiosA8ds23tDzvPmB+iTKoaQN6vySvAnmpGKO2Jciit1Pn133DgLr1e5 ipXZZy7/3t/5mh11H8av6nXxEfCRDHgu3KGoNgGdGK7lrotSV0M+Dm7psEHsGtKRCxlDj N6V/wqm14bVRqSmzxfGB+EhqLKTaGzxDQRauibZq1QSRchCP6U/6PU2LPyid9UQPiiW6H E5UKOtlvB/JXhg1+57Re86QipZK5HhTuB+6hMCjIfqUy8vTHN3YZx4gSYJtwi1RgbZgLl FblkpOtYgr34A5Q3EWMmQi8RjWYGIFoFcIcBM3P81pE4azHPWVDgbFot201tZyZ9JjA== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=est.tech; spf=pass smtp.mailfrom=est.tech; dkim=pass header.d=est.tech header.i=@est.tech header.a=rsa-sha256 header.s=selector1 header.b=GNkymAsf; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.66.46 Received: from DUZPR83CU001.outbound.protection.outlook.com (mail-northeuropeazon11012046.outbound.protection.outlook.com [52.101.66.46]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 997A3606A323; Wed, 2 Dec 2026 13:23:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 997A3606A323 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=est.tech Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=est.tech Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=est.tech header.i=@est.tech header.a=rsa-sha256 header.s=selector1 header.b=GNkymAsf ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=RIx4yfcUbM1LXeHOVrugCZ4zpEXGjN/Qtq5wJGZo9zNoZ6+m6wmdDaJjuXXaSM/+YC0DZjnKwWjWSRvEanrou7Zfj5UCjYbTys9hxNZ3ye0iFMDLGXpHuKnN58qxu28APYJRtWPpq/EeMgMoVpf7E2EHq2NPgjIBLldS1IYhqOZTspLBcReKDMFSjUWQE/EtN/d6hmTJYw4S/c2GGfgbsCRFslaNRd+39PcvvXNnrChMgH7qsYZRTvGDLfNnLZa0zMQCX3HRYSoeI5ITyS3XcLrBIIJorpsHem1u0P5mqQE5yzTHx9M2RDd7xjaH2L95/kQsFGZ62Fjih/uV2TSt0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=r2Az1mcI3g5fum9Sv0Cmnlgg5eYUxMv+hRC/dwXX7S4=; b=iS2r6W0xlKCEMZJ8o3rYderYstFaRcNUXblflZuffa2g7bUV6rUt2/2W4JQyPnSeTiRqwc7wiInOhvDwxKIl7sXYYlDUoSDWH5kpkgGFUiaHBCWMbwo91vtg3qrs+cliFqtiHvzUIMgkxwU8lJ+ousiL1frJLpycdDduK5faDx8a9UOBoXmLgefJU0kRfkp0Ay3iZeouen07LXbsk7lcOt9tz1N2Tn2FZUDoMIV2Bt6c8E7xrSnn/Z0t3T5OwxZXg4M2Mg+trTeltX741fFaqwsvNxQDocp+acfIxzeBHdarOt9b1+7EMP1RDAQC5sAgxAqGsWuxSAeZ94RNL02/Wg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=est.tech; dmarc=pass action=none header.from=est.tech; dkim=pass header.d=est.tech; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=est.tech; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=r2Az1mcI3g5fum9Sv0Cmnlgg5eYUxMv+hRC/dwXX7S4=; b=GNkymAsfENlW657QOX5JeL0hq6QTiYh/yaOuc6/XuL6a//MCga8az+AfBWExpg+jfneoXu1DCm69uwurZL2EMCRIt5gvpef0mDemUTqpA3tUvSD+lafy8dRWKy65E8uctYN2dEo+MBe4POFkfwTPONNdkErSF2QQe5dMLBKeIANFGznQt2u756uKu9p1k+c4uX1K/NBpU4wTFPIcJyEavNTRY3k6E9Zq0z76rOKj5m757wWx5eM9Lvq48JSgY6S8sFPRbmwFEhG5ZaPKnpeITnJ/LBAjhHrHxbV5fQq7GKFHNa3kJN2Kr1lbmD6MbPpLpcH3WYzZ3MNtLGKV4azs8g== Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=est.tech; Received: from VI1P189MB2535.EURP189.PROD.OUTLOOK.COM (2603:10a6:800:1c1::9) by BESP189MB3281.EURP189.PROD.OUTLOOK.COM with HTTP via P2P; Wed, 2 Dec 2026 13:23:00 +0000 Received: from VI1P189MB2535.EURP189.PROD.OUTLOOK.COM ([fe80::d06a:1ef8:6c04:b388]) by VI1P189MB2535.EURP189.PROD.OUTLOOK.COM ([fe80::d06a:1ef8:6c04:b388%7]) with mapi id 15.21.0688.009; Wed, 2 Dec 2026 13:23:00 +0000 Message-ID: <900acde0-9a99-46fa-b343-1356a054d774@est.tech> Date: Wed, 2 Dec 2026 14:22:57 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/3] wifi: ath11k: fix crash recovery panic and order-8 allocation failure To: Jeff Johnson , Muhammad Usama Anjum , Baochen Qiang , Maharaja Kennadyrajan , Karthikeyan Periyasamy , Vasanthakumar Thiagarajan , Shashidhar Lakkavalli , Kalle Valo Cc: Jeroen Trappers , mike Seo , 1152007@bugs.debian.org, stable@vger.kernel.org, Jeff Johnson , Sathishkumar Muruganandam , John Crispin , Venkateswara Naralasetty , Sriram R , linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, linux-kernel@vger.kernel.org, Yunseong Kim References: <20261102-ath11k-oom-v1-0-f3c391bd63f3@est.tech> Content-Language: en-US From: Yunseong Kim In-Reply-To: <20261102-ath11k-oom-v1-0-f3c391bd63f3@est.tech> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PR3P193CA0042.EURP193.PROD.OUTLOOK.COM (2603:10a6:102:51::17) To VI1P189MB2535.EURP189.PROD.OUTLOOK.COM (2603:10a6:800:1c1::9) 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 X-MS-TrafficTypeDiagnostic: VI1P189MB2535:EE_|BESP189MB3281:EE_ X-MS-PublicTrafficType: Email client-request-id: 80211f71-cf53-4c00-b511-31b163c9622f request-id: 9fab008d-a95b-4bf7-24d5-08df507762af X-MS-Office365-Filtering-Correlation-Id: 9fab008d-a95b-4bf7-24d5-08df507762af X-LD-Processed: d2585e63-66b9-44b6-a76e-4f4b217d97fd,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|7416014|23010399003|366016|13003099007|18002099003|6133799003|22082099003|11063799006|261021130227099003|56012099006|10067099003|5023799004|261026130827099003|261102123227099003|261028144727099003|261026140227099003|261026121527099003|261022075727099003|261021123027099003|261022115727099003|261021133027099003|261021135927099003|261026135527099003|261021121427099003|261022113327099003|261009223027099003|261022105027099003; X-Microsoft-Antispam-Message-Info: d2dV5w8xB2C003U07BZPQvRjJAESd6fKW9OwEnXlM6C/xKx9N5T3HoN20OQAv1BG6VucByjoXnFagIA3T6+EtRYPQxmAoGFbC7F6A6D3Ah2rVtTReisW9MPfqo8ms78wTaKwmykPX2KfTKsOEcIe4J/AhsLxVil3Vyu0f1rUOWPboOpLazRYABZpeiq1kU3rT6h2Pm6Z7IqRQ99MALZaEV4r5xG417yn4l2njk8+M8mz3QXwb8we5O/iH3cXP/OFXYxev+g/FOMUi5piytlzeeOX86SEQWyOTrtixgRoIZqUIiFtFXXE7LMTHNqPpdlCiGiUfZ5qfzyWr9GsDymFmPQliONPVboicCT4yPUfitCXKXnbaWhRsfNXDkMzwwKlb9mSx8LSpboMeU6Lae89+4oEg+Y4C/XO+MdaEPNNv/hapLhXm0lf4BIz1/zF5K4CWghuZUxCuflF/sQtvCT3AgNKxAyBfJ/wtolbKxMdHCSdKIKI4rMsnuqQVgN4Q5Bpk0CZoFQxidh/Q8kRrksK1nA7LIzHjOsNJ1QRZ/JqwPsy4xov4jo964BnPE5vGkCXZ9kPpFyNm1+1T6OC+AROL3gziA8IFEstuDBWmaCSDoMsRh309TTayBgfwkgxaZty X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(7416014)(23010399003)(366016)(13003099007)(18002099003)(6133799003)(22082099003)(11063799006)(261021130227099003)(56012099006)(10067099003)(5023799004)(261026130827099003)(261102123227099003)(261028144727099003)(261026140227099003)(261026121527099003)(261022075727099003)(261021123027099003)(261022115727099003)(261021133027099003)(261021135927099003)(261026135527099003)(261021121427099003)(261022113327099003)(261009223027099003)(261022105027099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?YUk5dmN1d29UR013TXBOTDZvb2xWZEtkVU5FcHFuVTZwL0NjMGFLYk9GNlJh?= =?utf-8?B?Zm1BVEw4cWJlRUNzV29Jd0gxa2QweXpwYnR5WVVkMmNLYmM4TWJlWG8yOSsw?= =?utf-8?B?enNOODhoMFBLSGVlTnFYdDFWWlVIM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lvNXY5TzZ6eFMxOWl1SXRsTHVvaERhS0ZTOVNWQU5TM1NLNjlt?= =?utf-8?B?ZlQwSis1Zlc0cjE3cUdWYkNaSmVMcXgrdURUd2xwSWFVYnhyKzBMN0Q5QVlw?= =?utf-8?B?NTRjdUdCVExiOHRFTVRTZ1BSSEtDVHRySEhXeG9CR2dxODhuY3BaVkExeDVy?= =?utf-8?B?TkJxSkdCTVdPbFBxYVdPVjdranhUOGd2Y2VmcndUSWFCL0Nmc2ZpUEhxL1NR?= =?utf-8?B?SXZzNE5wOVB0ZFg4MTVJTUtUcDB0aTZPcGJLYmtiWitBL3pmRDNkT0NFS202?= =?utf-8?B?MXRxeUhGS1VHMXJFNC9zUGtVZlJDcUsxM21LdlFveWlVU1BlZmFjdm9Zbk42?= =?utf-8?B?cG1ZRldOVFdjdzF3ZzZEeDYwcWJoVFhVaEdQUnZvZEE0TlkybnJwdz09?= X-OriginatorOrg: est.tech X-MS-Exchange-CrossTenant-Network-Message-Id: 9fab008d-a95b-4bf7-24d5-08df507762af X-MS-Exchange-CrossTenant-AuthSource: VI1P189MB2535.EURP189.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2026 13:22:59.8969 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d2585e63-66b9-44b6-a76e-4f4b217d97fd X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: JG0fqDlZjoqqHk6AcNeUIjapA+k7Y0XJFKmpFbGYM5lj0BikzPMcaF21lu/x8lyush5uoI4Po9UIj3HtR0pKjA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BESP189MB3281 Hi, Just a gentle ping on this patch. Please let me know if any changes are needed, or if you'd like me to resend it rebased on the latest tree. On 02/11/2026 12:59 pm, Yunseong Kim wrote: > Reported in Debian bug #1152007 on a ThinkPad P16v Gen 1 using Qualcomm > WCN6855 (ath11k_pci), When resuming from suspend, the driver may enter > the firmware crash recovery path: > > ath11k_core_restart() -> ath11k_core_reconfigure_on_crash() > > In this path, ath11k_dp_alloc() reallocates data path buffers, including > the tx_status completion buffer: > > size = sizeof(struct hal_wbm_release_ring) * DP_TX_COMP_RING_SIZE; > dp->tx_ring[i].tx_status = kmalloc(size, GFP_KERNEL); > > With DP_TX_COMP_RING_SIZE = 32768 and 32 bytes per descriptor, this > requires exactly 1,048,576 bytes (1 MiB), which corresponds to an order-8 > contiguous allocation from the buddy allocator. > > During system suspend and resume, the PM subsystem restricts memory > allocation flags by removing __GFP_IO and __GFP_FS from gfp_allowed_mask > via pm_restrict_gfp_mask(). Under GFP_NOIO: > > 1. Direct memory compaction is prohibited because > gfp_compaction_allowed() returns false without __GFP_IO. > 2. Page reclaim cannot perform I/O to swap out anonymous pages or > write out dirty pages to backing storage. > > If physical memory has become fragmented over uptime, the buddy > allocator cannot assemble a 1 MiB contiguous block, and the order-8 > allocation fails with -ENOMEM despite ample total free memory. > > When ath11k_dp_alloc() failed with -ENOMEM, > ath11k_core_reconfigure_on_crash() branched to its error exit path and > executed: > > err_hal_srng_deinit: > ath11k_hal_srng_deinit(ab); > return ret; > > This was fatal for two reasons: > > 1. HAL SRNG memory is allocated once at driver probe via > ath11k_hal_srng_init() and freed at driver remove via > ath11k_hal_srng_deinit(). Freeing it during crash recovery left > previously initialized CE and DP rings with dangling pointers into > unmapped coherent DMA memory (ab->hal.rdp). > 2. ATH11K_FLAG_CRASH_FLUSH was cleared at the start of > ath11k_core_reconfigure_on_crash() and was not restored upon failure. > > When the PM subsystem proceeded to resume subordinate devices, mac80211 > invoked drv_start() (via wiphy_resume() -> ath11k_mac_op_start()), > queueing a command via ath11k_ce_send(). Because ATH11K_FLAG_CRASH_FLUSH > was clear, ath11k_ce_send() attempted to access CE ring 3 and called > ath11k_hal_srng_access_begin(), which dereferenced > srng->u.src_ring.tp_addr (pointing into the freed rdp buffer). Under an > IOMMU, this triggered an unhandled page fault in interrupt context, > panicking the kernel. > > Attached decoded stacktrace with references of debian 7.2.9+deb13-amd64 > vmlinux/source code: > > https://gist.github.com/yskzalloc/9c3d1980a5ea0fbe0cd119042e09c54f > > Patch 1: > wifi: ath11k: don't free HAL SRNG memory when crash recovery fails > - Preserves HAL SRNG memory across failed crash recovery (retaining its > probe-to-remove lifecycle). > - Restores ATH11K_FLAG_CRASH_FLUSH on failure so subsequent CE, WMI, > and DP operations immediately bail out with -ESHUTDOWN instead of > touching hardware rings or unmapped memory. > > Patch 2: > wifi: ath11k: use kvmalloc() for the TX completion status buffer > - Confirms that dp->tx_ring[i].tx_status is a purely host CPU software > circular buffer used only for memcpy in > ath11k_dp_tx_completion_handler(); it is never mapped to DMA or > passed to hardware registers. > - Replaces kmalloc() with kvmalloc() (and kvfree()) to allow fallback to > virtually contiguous allocations when physical memory is fragmented > under GFP_NOIO. > - Fixes the error unwind path in ath11k_dp_alloc() to destroy IDRs and > free tx_status if an allocation failure occurs. > > Patch 3: > wifi: ath11k: add KUnit tests for crash recovery and TX status allocation > - Adds hardware-independent KUnit tests exercising production recovery > and cleanup logic without hardware emulation: > * ath11k_test_recovery_success: normal recovery flow. > * ath11k_test_recovery_tx_status_alloc_fail: verifies -ENOMEM > handling, ATH11K_FLAG_CRASH_FLUSH restoration, and HAL SRNG > preservation. > * ath11k_test_recovery_subsequent_send_prevented: verifies > -ESHUTDOWN rejection on subsequent ath11k_ce_send() and > ath11k_dp_tx_send_reo_cmd(). > * ath11k_test_recovery_resource_cleanup_and_teardown: verifies > recovery retry and full teardown without leaks or double-free. > * ath11k_test_dp_tx_status_kvmalloc: validates 1 MiB sizing and > kvmalloc/kvfree lifecycle. > > Testing > ======= > - Ran the full KUnit test suite under User Mode Linux (UML): > Ran 5 tests: passed: 5, failed: 0. > - Verified build cleanliness with CONFIG_KUNIT=n and > CONFIG_ATH11K_KUNIT_TEST=n. > > Reported-by: Jeroen Trappers > Closes: https://bugs.debian.org/1152007 > Link: https://bugs.debian.org/1152007 > Signed-off-by: Yunseong Kim > --- > Yunseong Kim (3): > wifi: ath11k: don't free HAL SRNG memory when crash recovery fails > wifi: ath11k: use kvmalloc() for the TX completion status buffer > wifi: ath11k: add KUnit tests for crash recovery and TX status allocation > > drivers/net/wireless/ath/ath11k/.kunitconfig | 14 ++ > drivers/net/wireless/ath/ath11k/Kconfig | 11 + > drivers/net/wireless/ath/ath11k/Makefile | 1 + > drivers/net/wireless/ath/ath11k/core.c | 50 +++- > drivers/net/wireless/ath/ath11k/core.h | 17 ++ > drivers/net/wireless/ath/ath11k/dp.c | 22 +- > drivers/net/wireless/ath/ath11k/test.c | 330 +++++++++++++++++++++++++++ > 7 files changed, 434 insertions(+), 11 deletions(-) > --- > base-commit: d89e1d186ec9271bf78e62771779e9fc03bf0fc3 > change-id: 20261102-ath11k-oom-ed1cb6f5d114 > > Best regards, > -- > Yunseong Kim Thanks, Yunseong