Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp589626rwn; Thu, 15 Sep 2022 03:39:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR6GBXoLbNCNk1bxNoiHIcCrmIFo/gpJiPut34rQfZ/hJ8N+ZkcyoCgPeRJLGyaae+Fk+ZG8 X-Received: by 2002:a63:ee46:0:b0:434:a81e:60f4 with SMTP id n6-20020a63ee46000000b00434a81e60f4mr35410149pgk.368.1663238341848; Thu, 15 Sep 2022 03:39:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663238341; cv=pass; d=google.com; s=arc-20160816; b=cSC6tXhoxDH0Zuoh/lRwo7+uS9Yej9XDoWMxJAniswuuM9AE493d6zrip3CPBSjAnn mR6MC64xoSU9NgElDf1kJIycx4hO3RScLkUJ9qOcxiDD3GhtKTImbsAO3HYwqLUKOzcX P0j/gXJXnQbXtTCPiu624IO5WPZH7LDLI3WnpfqX6vxg8wAGpEfGLYs5bUH/0Poi2Wn/ csTFBextKis1yJYDc5dDBCbYAT0tr4rWdsufctpFGmVfpUN2Ao6ZEnhKJ0/Zp1UWAVyE P1NNMsVIROWvNd+iswE3zxzhgVb2SKYOmXrGQoj9BHI+hRWf8/A5HtH59HTKHcm1fAkP sKYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature; bh=doBmQmvl0SbbkkrR1yV9espX/cNWX4Zd9wGaORmnSdA=; b=jqdNlJs/P7O2tts/XUP//LN49yZSu9kqQ2kUtXz4w1M86We1oYzqhnUjeJzhcbl4r1 K1l8A/PmsltkgQ6wy0xK/hPUCR5D3SprjUdkifJd/f7LZdYZX28/t1akE+JePP4G7gnq F5iTLqgOFk/F7ZbKorkXMnkhJLBh3SWzYq0ja4CYhrY02oY25dw9TK4ay9TC/74/59xu mZs+v3vApKFMkuPvQbkIYhiWM0aU/YsGxsZ5oMMOHlTK/5L3z06c3sXiOwF/3KTEIW4n 8JEzrcJDIredpUHycKLq+Zrruu+Toaz3lizyS6stL0zprCl3WvEPvS8h3KDzEDMDOTsh 5Odg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@silabs.onmicrosoft.com header.s=selector2-silabs-onmicrosoft-com header.b=N16csAOH; arc=pass (i=1 spf=pass spfdomain=silabs.com dkim=pass dkdomain=silabs.com dmarc=pass fromdomain=silabs.com); 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=silabs.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b2-20020a636702000000b0042b325d85cdsi19095691pgc.215.2022.09.15.03.38.49; Thu, 15 Sep 2022 03:39:01 -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=@silabs.onmicrosoft.com header.s=selector2-silabs-onmicrosoft-com header.b=N16csAOH; arc=pass (i=1 spf=pass spfdomain=silabs.com dkim=pass dkdomain=silabs.com dmarc=pass fromdomain=silabs.com); 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=silabs.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229484AbiIOKTz (ORCPT + 64 others); Thu, 15 Sep 2022 06:19:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229678AbiIOKTw (ORCPT ); Thu, 15 Sep 2022 06:19:52 -0400 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2088.outbound.protection.outlook.com [40.107.244.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D97615A2F; Thu, 15 Sep 2022 03:19:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cx+47Gf+MNl1QDUurxNZ4NHol7hg6l15m5+UuEcMEAjQALGF34y9Bh1JYr8KI2DSt2sS6c8uPaT57dEX6GzEvOs7X5JPuYZkFvuWIKkDcz22rD0j0ZBihzjqaTrBOymXadXK4nsnqj2QO+LjM2AunwmeVZvs1tycXeAjkNzDMOQMkobnjrJBmACYjv01R1PGZ377ZMFgRs5AtoB3fakJ46EgVJT9hPUo9jKX2nUSmF1lKd+/W0vgh/sy0g619O/88r4eyrK2yr+MR7ujLDjn0gmjtGWtjglExrNrijJ0A0kt981F7bAEzmweH/rSTfuzxPuIMA+WomOkNyH2utnHhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=doBmQmvl0SbbkkrR1yV9espX/cNWX4Zd9wGaORmnSdA=; b=CR/mrBG8xZTvPGXBeNuxf6Nz/1MYsq4LWZRD34j+Vf4WKBcgquQ20QK0l4ce12wQbPbT6JCDMO2TQwlVSJx/XOG6nxppuG1ESfGeVpP3QUWtdLuSuPae6CB0uYXrusSJ8fdgAOKfmCgDgIgYgTodrMuO6wdK3W6DFReRiDJ1liLCoHT0YIEqchsKdk54H881yRTwpOw7rDpADraJDaI3Eo3GfmzZYXNl5sK1GZABhtvr5e+8RKwEbEpvwqT808lW6RyzlbLpP0o1e6tXq3yFXa2Atz6/eQmNjG474S580UQuNluZJF7ho7vvYdAlydkiZ3nN7IFmR3OS6Eu6o1FF1Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=doBmQmvl0SbbkkrR1yV9espX/cNWX4Zd9wGaORmnSdA=; b=N16csAOHmoyJ1ju8KjRO9CKhMbtlAKJLj+8vsg0KkHoY/BV6D6wVTqCvbJCt6VEIdcskyBu+Yf5e9QRfq4xxMxFBLDWwK2hJTvqQ4ParUUdJ9xaYk4NIOTUJG9PnFF5SVVPQ4yxKdXXIfIqU1dq/lYNrEv61GKNnB1ooFv+oEW4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=silabs.com; Received: from DS7PR11MB6038.namprd11.prod.outlook.com (2603:10b6:8:75::8) by BL1PR11MB5383.namprd11.prod.outlook.com (2603:10b6:208:318::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.15; Thu, 15 Sep 2022 10:19:49 +0000 Received: from DS7PR11MB6038.namprd11.prod.outlook.com ([fe80::b091:dffc:2522:afcb]) by DS7PR11MB6038.namprd11.prod.outlook.com ([fe80::b091:dffc:2522:afcb%5]) with mapi id 15.20.5612.022; Thu, 15 Sep 2022 10:19:49 +0000 From: =?ISO-8859-1?Q?J=E9r=F4me?= Pouiller To: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, =?utf-8?B?UGF3ZcWC?= Lenkow , Lech Perczak Cc: Kalle Valo , Krzysztof =?utf-8?B?RHJvYmnFhHNraQ==?= , Kirill Yatsenko Subject: Re: wfx: Memory corruption during high traffic with WFM200 on i.MX6Q platform Date: Thu, 15 Sep 2022 12:19:43 +0200 Message-ID: <2646104.mvXUDI8C0e@pc-42> Organization: Silicon Labs In-Reply-To: <8bea4eed-5b71-9fd4-c705-926bdad0ee47@camlingroup.com> References: <16b90f1d-69b4-72ac-7018-66d524f514f9@camlingroup.com> <12e5adcd-8aed-f0f7-70cc-4fb7b656b829@camlingroup.com> <8bea4eed-5b71-9fd4-c705-926bdad0ee47@camlingroup.com> Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-ClientProxiedBy: MR2P264CA0090.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:32::30) To DS7PR11MB6038.namprd11.prod.outlook.com (2603:10b6:8:75::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS7PR11MB6038:EE_|BL1PR11MB5383:EE_ X-MS-Office365-Filtering-Correlation-Id: dc75a109-bb4e-4953-eb83-08da9703d211 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fN1TV1McS6spF3Mv99w/2bPuuP+7JpuYGRr4nhuhyENLqiJaZrBGKsRvHigFvGwCvAOT9MNpiKp7ZO4QuXQ7VjzSja5ESfLNUJtPFfkP9pXjpGQnkRVxBeke0IC6xSuspH/u5pAqAEzf2Be7MkK/4BIxiDZ9p5e9VQIrBt1FrI7+ZvwhPBZq6ZI4ZWUfbnCWn6boTXjAaThfSWy7HWLVnKmJKr0PRck8y0Be7BZ671QGrrzhW8S5wuWdzAqwguwjWB+ier7dBdfOvAX2RIChuR9PvkpTTJgs6sVsR+CF/ATtBuDuzg+YiD+zLHVr5Gq/UfeBTv64BQfm7SkY3QQWESW38k1AWRj0pywSso38t1TLD5aElL2fM9o3nJaGgsz87YrfxeI0r+VoCXfIIB7eriQMOPXShGtZIKxG871kz0ZgZ0w9H7PKtV4Xu7Ch2KcUK5S65ye1AX1g+doUNX5s5vBmj7eYDoYDQPhzMGIvxBcWYEnFt8Aue9Clod3Na/IFquSpxhN1I7eGp8A1a0Fl8pbh0lY4H0e76EsySJLUlFD1bfMAznClUEPsY0SiXBZo8d6RPnmnOtdh3SIsrc8w4EBSW76uuT5w+impUILlugCXPCS2qR+sDLiGXHLqGLUhxebjcN0UkSNVsFxONTqzG3WjjKTU8eKJXrpLMK/MYZiz7amy6E+im+OxeUu0K35bD8qdjBZztxjoA0qu2Kq3EFAzuK19Xi63Lkj2JBycX7A4lzKUJ47V3qxXY4Ixxq8I1KuWG7zTH4Ce55g57TC4ZIOJ5XL1jwTFWLa97nvgBx0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR11MB6038.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(7916004)(396003)(136003)(346002)(376002)(366004)(39860400002)(451199015)(86362001)(38350700002)(38100700002)(2906002)(33716001)(4326008)(186003)(8676002)(478600001)(6486002)(8936002)(66556008)(5660300002)(66476007)(66946007)(4744005)(26005)(36916002)(52116002)(6666004)(41300700001)(6506007)(316002)(110136005)(9686003)(6512007)(54906003)(39026012);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NEVuL242ZitVbmRHZlN2bTNNaTR4L0N4b3JBSW8vODlaWHRWZWV4bEFyVnlu?= =?utf-8?B?ejFOV1NBcHZDOWJLRXE2eUFTaGJEQkIyaGt6Q3lDeFQycVpQM1VMQmtsRDRL?= =?utf-8?B?TEFBTURWRDdra3NCU3Y2NGc5ekhheFg5VExudk9BaWZKM2l4cEJHeEYwQ0J3?= =?utf-8?B?b1BPYk4wWnBPSFViMXNVSE13dW9ZdmJYWGVQU2dsb3FNZU03c1dpYzIxNXpS?= =?utf-8?B?SEJRT1JDV0p2K3VhN1NNSDlZWVlQandtWlRQSURxZ2xiN2dsMmFTQUdkdzN6?= =?utf-8?B?bTRMbVlHWjJaWTVaYUprUkdP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lS?= =?utf-8?Q?myUArWgTRcZlHRAHs53P0LBmK?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: dc75a109-bb4e-4953-eb83-08da9703d211 X-MS-Exchange-CrossTenant-AuthSource: DS7PR11MB6038.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2022 10:19:49.3150 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: K1wjTb7FvplHYPu/mHc07LzPe3YXH9V/3staCQz7nCSanNWh4hkjrmPoG/D+53d0dMtw3RI6GDhhue2UWp3ZRw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR11MB5383 X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FORGED_SPF_HELO,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_NONE autolearn=no 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 On Thursday 15 September 2022 11:56:24 CEST Lech Perczak wrote: > Hi J=C3=A9r=C3=B4me, >=20 > Just a quick note, so you don't have to redo our work - Pawe=C5=82 found = the root cause, > patch is coming very shortly. >=20 > TL;DR is that hw->max_rates in wfx_init_common was set to 8 initially, > which is over the maximum of 4 specified by mac80211, > causing out-of-bounds writes all over the place. Wow, thank you. I was about to jump deep in your traces. You saved my day. --=20 J=C3=A9r=C3=B4me Pouiller