Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3812470imu; Mon, 12 Nov 2018 00:30:04 -0800 (PST) X-Google-Smtp-Source: AJdET5fO8gxLsiDiVwJdsIJjdudIkOP6LwlMB9WTtdVnCyBi/clADyzYGEMq1ZeZCHQld1lM1CFQ X-Received: by 2002:a63:a441:: with SMTP id c1-v6mr23061pgp.49.1542011404368; Mon, 12 Nov 2018 00:30:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542011404; cv=none; d=google.com; s=arc-20160816; b=uuiezaV9o/KoL2UT5GLzQ3Z8G5pBiXJEDe8E1rMK/kQNql/DBXnvYmDQRBdO1SucGD AC5VNapv0+XAXM2kt/bunYJozTkwFBXId0SdcMtkEUECc2Cfl0KZAwd/WTj2RwCvNRWQ hUdlYAmYdoM9nxvFu24ltcJLg+pgv81N1JfA0wl0xUYvhgxtRse+pCI3jfamkj4nifdM /0J5oEGob/DwaDzev2EX3YV6/AZ90SELZBuRlc/714ykys/PDwpX4nn5y0s+3jMFYCZN YliKxptiIi4iDxSmd5dkzBVWEU8vR3L3JuIG1/WjQAZt8MMJ07uuif9ihNkJLjLcONi3 9dzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=yksNGX7nLeO6NmE8K6Knt4MtqvcVtH6IUL+T7p6GuSg=; b=VHaka/IzDRqecboDuZ6wIJgL9Clc6ZHFXGlWJ1VrBXwXdvqpp7+vWXsTS765ZPu5zq IERvZUxgwNcud/pZEqfP2GdJtTGGCnCVaanc0rXQvW3z+v5gThYmI8nendmJGNcsKevS VjpP6MrdZXZlo2H93gEPqWp1ZIV8lMuW2xNmv6EQzbSLji6paWvD6/kT/U5q3oba9whG Mh/ASX19vFeguTgLlVeoVa31gtsayHRl7NrXWkqsCzDtr5jFXnI+2jHzekCGW+XwoVzV TuqwYTBiPCwJN5LpHvFgN8EOk7rCLlvKWMUobuyQ2yCfZbe4+YPHHnW1I+4KifLR0Nlb 0CcQ== 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; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12si6081554pgj.56.2018.11.12.00.29.48; Mon, 12 Nov 2018 00:30:04 -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; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728109AbeKLSUn (ORCPT + 99 others); Mon, 12 Nov 2018 13:20:43 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:36916 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726221AbeKLSUn (ORCPT ); Mon, 12 Nov 2018 13:20:43 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id wAC8SMrU096674; Mon, 12 Nov 2018 02:28:22 -0600 Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wAC8SMUH003160 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 12 Nov 2018 02:28:22 -0600 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Mon, 12 Nov 2018 02:28:22 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Mon, 12 Nov 2018 02:28:22 -0600 Received: from [172.24.190.233] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id wAC8SKSx017328; Mon, 12 Nov 2018 02:28:21 -0600 Subject: Re: [PATCH 2/2] phy: ocelot-serdes: fix out-of-bounds read To: "Gustavo A. R. Silva" , Quentin Schulz CC: "David S. Miller" , References: <30c1dcb4a8d3707238fcf0a996b9e0bf0a4a7bbc.1539036280.git.gustavo@embeddedor.com> <20181009072808.5eynmktmkgjpi2ho@qschulz> <93008479-9e81-1d27-bd31-0cff75c4dd12@ti.com> From: Kishon Vijay Abraham I Message-ID: Date: Mon, 12 Nov 2018 13:57:48 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 17/10/18 9:07 PM, Gustavo A. R. Silva wrote: > Hi Kishon, > > On 10/16/18 10:48 AM, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Tuesday 16 October 2018 02:16 PM, Gustavo A. R. Silva wrote: >>> Hi, >>> >>> On 10/9/18 9:28 AM, Quentin Schulz wrote: >>>> Hi Gustavo, >>>> >>>> On Tue, Oct 09, 2018 at 12:22:33AM +0200, Gustavo A. R. Silva wrote: >>>>> Currently, there is an out-of-bounds read on array ctrl->phys, >>>>> once variable i reaches the maximum array size of SERDES_MAX >>>>> in the for loop. >>>>> >>>>> Fix this by changing the condition in the for loop from >>>>> i <= SERDES_MAX to i < SERDES_MAX. >>>>> >>>> >>>> Reviewed-by: Quentin Schulz >>>> >>> >>> Friendly ping. Who can you take this? >> >> This can go during the 4.20 -rc cycle. >> > > Should I resend the following patch to you, so the whole series is > applied to your phy tree? > > https://lore.kernel.org/patchwork/patch/997326/ This is merged by David Miller. Thanks Kishon