Received: by 10.223.176.5 with SMTP id f5csp517874wra; Tue, 6 Feb 2018 03:00:25 -0800 (PST) X-Google-Smtp-Source: AH8x226tHgBtI7uMSjKtRFdY+rMT6l6m0HQ4coxkPgGZb5GL2E7hdYUBCju0vUh2Fc5Latjlh7wx X-Received: by 10.99.116.19 with SMTP id p19mr1659815pgc.49.1517914825700; Tue, 06 Feb 2018 03:00:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517914825; cv=none; d=google.com; s=arc-20160816; b=hwTg6IeTGkyGNHimvH0QiLvYc16FXZXJ3QjQFLQjJFT00pebrysbB5eN2tUSpQpdVf xmi5lwWskaTyvSL/4A7GQ2lZVynbc32UxI1I4artYQXleMzhaLiLV9VcbhEU1jG+FR67 f3FF32EgF6RJEE2x9N15crEZcmGHsVmU+cLekBXfbjGzp+iPj8MQa+bUftls5is76iYK pDilc1LY5g7rkL6jSZR/3yjjZ1SOgDmHfeVNjbf4PlqXbNi4HKc5yLIkVyB4ytuMAwaG 658epVy0vytPDkRVzUf6EPytRH88Oy4XKAOFXYOL8wHywoqwxKnJV36LCEGTTv5y0E/t NBZQ== 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-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=wcMuKi2N/kvrHNIdUPIaN2kYjxSIkSBrwdAk5xzrafM=; b=lQ/jFOJxqnwbOrbbjJRASUeSOQLg8B4cL4Fzc0awrAaTc9HnZEV+K5jNDK44m21e4S tkphr4m0X854g8di47NtL8LE+A5IAhuwsMYs5gKbsodElXPWMgLTgZ+DlS7gvNPMPbp2 M2BxH+wMOOxGO2NH/28yW1Cg/JZFG1so2adugxg9+QYYlTdExi77/pLl+mr+k8vL2ZWA UBXTFZPgGrezxkdZzhgPLLWa/UG10XfpzWLbM91xmCD1G1y9LD/tBYhXGQHiWAMqEzP3 n/Ep9mYN40p+NqpsiENgirabTVVSfsGt/hQKSxB8STz2qNxRmKc92qpxmK/pN38iaI75 lXbA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 v8si1183369pgs.639.2018.02.06.03.00.11; Tue, 06 Feb 2018 03:00:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752689AbeBFK7X (ORCPT + 99 others); Tue, 6 Feb 2018 05:59:23 -0500 Received: from smtp-out6.electric.net ([192.162.217.181]:57978 "EHLO smtp-out6.electric.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752183AbeBFK7R (ORCPT ); Tue, 6 Feb 2018 05:59:17 -0500 Received: from 1ej0y0-0004Fg-UC by out6a.electric.net with emc1-ok (Exim 4.87) (envelope-from ) id 1ej0y2-0004T4-Vy; Tue, 06 Feb 2018 02:59:14 -0800 Received: by emcmailer; Tue, 06 Feb 2018 02:59:14 -0800 Received: from [156.67.243.126] (helo=AcuMS.aculab.com) by out6a.electric.net with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) (Exim 4.87) (envelope-from ) id 1ej0y0-0004Fg-UC; Tue, 06 Feb 2018 02:59:12 -0800 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) by AcuMS.aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 6 Feb 2018 11:00:04 +0000 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Tue, 6 Feb 2018 11:00:04 +0000 From: David Laight To: 'Xin Long' CC: Sasha Levin , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , "David S . Miller" Subject: RE: [PATCH AUTOSEL for 4.14 019/110] sctp: fix the issue that a __u16 variable may overflow in sctp_ulpq_renege Thread-Topic: [PATCH AUTOSEL for 4.14 019/110] sctp: fix the issue that a __u16 variable may overflow in sctp_ulpq_renege Thread-Index: AQHTnRjkYeYOzvAZ1EalFmrzR8HiFaOVsB5ggAGEEACAAASuAA== Date: Tue, 6 Feb 2018 11:00:04 +0000 Message-ID: <0e6f6c848c3340579c6ee99ba46c4df1@AcuMS.aculab.com> References: <20180203180015.29073-1-alexander.levin@microsoft.com> <20180203180015.29073-19-alexander.levin@microsoft.com> <4eedae3f4cb14e178c073c183ef134c6@AcuMS.aculab.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.33] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Outbound-IP: 156.67.243.126 X-Env-From: David.Laight@ACULAB.COM X-Proto: esmtps X-Revdns: X-HELO: AcuMS.aculab.com X-TLS: TLSv1.2:ECDHE-RSA-AES256-SHA384:256 X-Authenticated_ID: X-PolicySMART: 3396946, 3397078 X-Virus-Status: Scanned by VirusSMART (c) X-Virus-Status: Scanned by VirusSMART (s) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogWGluIExvbmcNCj4gU2VudDogMDYgRmVicnVhcnkgMjAxOCAxMDo0Mw0KPiBUbzogRGF2 aWQgTGFpZ2h0DQo+IA0KPiBPbi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