Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1736439ybg; Sat, 19 Oct 2019 01:23:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxiQWpy5AaZPk2Ch6zbpnjppB0lRtXzq/wad37xikSXBOUIuhoGKgTCcMhdqbslramG3X+O X-Received: by 2002:a17:906:f2c1:: with SMTP id gz1mr12472915ejb.51.1571473412352; Sat, 19 Oct 2019 01:23:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571473412; cv=none; d=google.com; s=arc-20160816; b=aWRc96PE21KPMZQB1ggWzVUNnZBE10d57SfwQtuxaHr/4XSZvvFlVxPMlczRNnStrD wzATnjZf6wKo2/A5ayaYX1xiEWsSLSwI1ZWY1XRPl/CIS5c5M4DvLK5KX+e2kYq2Twas WIRhol3oHMV/bYxyf//D+zwR6egyF00uGLrXU2Bs50ERc9iiiFDtrC9yHu3D2FR+GP8Z 9ndAzDiIKCs5b44DF+AYuyYYOMF52dB062LgFThhUfwKWzmzj7wjIwaKNN05dvTEot09 j7dQfyJ90X5w8TdgZv30xX0gMFrN5LHdmldgf5oHtM2ZMvhYt3j3iefVWbnPspAR++mk WTqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :authenticated-by; bh=NrgvEVJm83IW37geY9Ojy5RCbbF5if1c/XZV11h9DfY=; b=NetvrpYasaLlwXsDxfQLzjPOSOgGdoNOmtpfq+ADTSvgJHb0/CfomQFWhaV8YatYXt 1zskn+FPIUa/rm3L4r877gcYdhlbdiZVoGBjBRXtgOWrQJ6mYBkSzEOdsFiyOu2fojtA qA8YV7txuYlRv4mKut8F3iUh8PbPJ55qBnkNACqfXjxmsN7S2wfpv2WNAg6TANv3dv8c qffBoy9XlXyb5JX4Atj+B2q9bjfN5sar5NruKBn1wphsdIFnja+AI2N4nf58rBWFx+i3 OO2P+bUB67y+7qtfWsqJbMvgKhCWSC8OHWp785sRG1J6ySGAzQEH2W1ZHQ861p7zTUjc w7aA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10si5607849edc.419.2019.10.19.01.23.07; Sat, 19 Oct 2019 01:23:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2438968AbfJRMgD (ORCPT + 99 others); Fri, 18 Oct 2019 08:36:03 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:55119 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403808AbfJRMgC (ORCPT ); Fri, 18 Oct 2019 08:36:02 -0400 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID x9ICZi57020888, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (RTITCAS11.realtek.com.tw[172.21.6.12]) by rtits2.realtek.com.tw (8.15.2/2.57/5.78) with ESMTPS id x9ICZi57020888 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Oct 2019 20:35:44 +0800 Received: from RTITMBSVM04.realtek.com.tw ([fe80::e404:880:2ef1:1aa1]) by RTITCAS11.realtek.com.tw ([fe80::7c6d:ced5:c4ff:8297%15]) with mapi id 14.03.0468.000; Fri, 18 Oct 2019 20:35:43 +0800 From: Pkshih To: "labbott@redhat.com" , "kvalo@codeaurora.org" CC: "linux-wireless@vger.kernel.org" , "davem@davemloft.net" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "nico@semmle.com" Subject: Re: [PATCH v2] rtlwifi: Fix potential overflow on P2P code Thread-Topic: [PATCH v2] rtlwifi: Fix potential overflow on P2P code Thread-Index: AQHVhalClczxzfC5skeU3Go3kf32jKdfz60A Date: Fri, 18 Oct 2019 12:35:43 +0000 Message-ID: <1571402142.1994.6.camel@realtek.com> References: <20191018114321.13131-1-labbott@redhat.com> In-Reply-To: <20191018114321.13131-1-labbott@redhat.com> Accept-Language: en-US, zh-TW Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.6.62] Content-Type: text/plain; charset="utf-8" Content-ID: <9E6FC9AFA9152045A93C210744C36458@realtek.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org T24gRnJpLCAyMDE5LTEwLTE4IGF0IDA3OjQzIC0wNDAwLCBMYXVyYSBBYmJvdHQgd3JvdGU6DQo+ IE5pY29sYXMgV2Fpc21hbiBub3RpY2VkIHRoYXQgZXZlbiB0aG91Z2ggbm9hX2xlbiBpcyBjaGVj a2VkIGZvcg0KPiBhIGNvbXBhdGlibGUgbGVuZ3RoIGl0J3Mgc3RpbGwgcG9zc2libGUgdG8gb3Zl cnJ1biB0aGUgYnVmZmVycw0KPiBvZiBwMnBpbmZvIHNpbmNlIHRoZXJlJ3Mgbm8gY2hlY2sgb24g dGhlIHVwcGVyIGJvdW5kIG9mIG5vYV9udW0uDQo+IEJvdW5kIG5vYV9udW0gYWdhaW5zdCBQMlBf TUFYX05PQV9OVU0uDQo+IA0KPiBSZXBvcnRlZC1ieTogTmljb2xhcyBXYWlzbWFuIDxuaWNvQHNl bW1sZS5jb20+DQo+IFNpZ25lZC1vZmYtYnk6IExhdX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