Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp472832rdb; Sat, 19 Aug 2023 09:02:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFCHG1FxwPJ0bqVp6bd7zzFh4OEh1U5qFYzT3iz9mWQ0SrIPb2anjyTEJ2Ij4uJrflI1ogy X-Received: by 2002:a05:6808:221e:b0:3a7:48f8:f02d with SMTP id bd30-20020a056808221e00b003a748f8f02dmr4114517oib.14.1692460976202; Sat, 19 Aug 2023 09:02:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692460976; cv=none; d=google.com; s=arc-20160816; b=05v66jZ28g+QzZ0uvWwLHXcURDWkV2LWDBsHwKKfeb7ytBXslyugVC5FPQcIludPdE RBCCL2yX+O0csK3NbNBEB7KmpgRZqtxxRJfl021VytrhoCq83CcgjXgolKFHdCy/hA05 nFzJoY/0X4pYZueoh46IHgrq/6GCN/BYNoaxZd8fDxL2VheQehhOwL4fwU+S+opFjFvS rh7mLRHJyu/ylbMcqQ/I9XDEi2sgwFop95kT3spUrPWQcOYukhWDb15CvLA3A/K11nbF Vl5whC90GbbrfJHFzsEETyhWNxvOSYmUIkDFLshJi2HVNzdEH7BeKrGDxhYK8CzkpSOW u0lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:authenticated-by; bh=r/Y5a0ky81/nOJLgHWymplreqpVm3fV/ei7TWLH1x9A=; fh=DUa2bNim9OIqoOAdGvygNMRuYADNrZ5glI8zmB+N6Uw=; b=ElskW5KiQpNUnAcbYGyphB0YSBP6Sx4lHTj8I5hNLn27zrCGY5WTSweJezloHxwi+T mtQkr48WkwmNdO11TBpXxyhZijLuIusUQgrFuWhy8ciaOgvEghaYHNtkvTqvYsP8Otut XXKy2F2X5kHoAvUWoK/Hqfd1n2eMFx9gMAT8ewMszMedGaaMvTrYahusonSKsT2d1Bta Xhrl1k/4bL2ZcoyNIHMC0Tjpk6bx3eV2DPMyV5Jx4GtC99vtbPmDch4pJsNX7ZtOPc+x UH+P9TkZlUPctSqUkeLqjhkx7Fl6ZApd40FmWGZ7a//8yqsmPQr7/V3edO4EyNLkN6ka Tc5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id be3-20020a656e43000000b00563a0bacbb4si3627401pgb.694.2023.08.19.09.02.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Aug 2023 09:02:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 253CBFCC9D; Sat, 19 Aug 2023 01:49:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240031AbjHQMGu (ORCPT + 54 others); Thu, 17 Aug 2023 08:06:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350745AbjHQMGp (ORCPT ); Thu, 17 Aug 2023 08:06:45 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E12622136 for ; Thu, 17 Aug 2023 05:06:43 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 37HC65Xa8022953, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 37HC65Xa8022953 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 17 Aug 2023 20:06:05 +0800 Received: from RTEXDAG01.realtek.com.tw (172.21.6.100) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Thu, 17 Aug 2023 20:06:25 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXDAG01.realtek.com.tw (172.21.6.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Thu, 17 Aug 2023 20:06:24 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d]) by RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d%5]) with mapi id 15.01.2375.007; Thu, 17 Aug 2023 20:06:24 +0800 From: Ping-Ke Shih To: "johannes@sipsolutions.net" CC: "linux-wireless@vger.kernel.org" , "gregory.greenman@intel.com" Subject: Re: [RFC] wifi: mac80211: fix UBSAN warning caused by reorder_buf_filtered bits shift-out-of-bounds Thread-Topic: [RFC] wifi: mac80211: fix UBSAN warning caused by reorder_buf_filtered bits shift-out-of-bounds Thread-Index: AQHZ0Mx0fntfUGBm7E6lIBAm7nSdWa/tigWAgABUmIA= Date: Thu, 17 Aug 2023 12:06:24 +0000 Message-ID: <408e1ca10cb4daabdad0e2760f69a9b03fbeedd3.camel@realtek.com> References: <20230817053215.51636-1-pkshih@realtek.com> In-Reply-To: Accept-Language: en-US, zh-TW Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.36.1-2 x-originating-ip: [125.224.88.175] x-kse-serverinfo: RTEXDAG01.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 T24gVGh1LCAyMDIzLTA4LTE3IGF0IDA5OjAzICswMjAwLCBKb2hhbm5lcyBCZXJnIHdyb3RlOg0K PiANCj4gPiANCj4gPiBJZiBub3QsIHdlIGNhbiBqdXN0DQo+ID4gYWRkIHNvbWUgY29uZGl0aW9u cyB0byBhdm9pZCBVQlNBTiB3YXJuaW5nIGxpa2UgdGhpcyBwYXRjaC4gT3RoZXJ3aXNlLA0KPiA+ IHRoaXMgUkZDIGNhbid0IGVudGlyZWx5IHJlc29sdmUgdGhlIHByb2JsZW0uDQo+IA0KPiBTZWVt cyBmaW5lLiBJJ2Qga2luZCBvZiBwcm9iYWJseSBub3Qgd29yZCBpdCBhcyAiZml4IFVCU0FOIiBz aW5jZSByZWFsbHkNCj4gaXQncyBqdXN0IG1vcmUgYWxvbmcgdGhlIGxpbmVzIG9mICJ3YXJuIGlm IEFQSSBpcyBtaXN1c2VkIj8gOikNCg0KTWF5YmUsIGNvbWJpbmUgdHdvPyBCZWNhdXNlI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