Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1155360pxa; Sat, 22 Aug 2020 13:23:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1ySdmGmj+zbzwZM7SwpE2RYXasEvMV6sRprmAQ8T8x6Ja2LVEDUscyH8z//RN+Cho+Bw8 X-Received: by 2002:a17:906:fa15:: with SMTP id lo21mr8902558ejb.42.1598127815361; Sat, 22 Aug 2020 13:23:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598127815; cv=none; d=google.com; s=arc-20160816; b=Pfhsptow601UpOmppiyB1r3wcbKlmACh5PnExBx4efvc0DtR21PzmFxIGTNqYR5Mzq fH9CiIBrhbAgY83Zt5H/+15+1J0xY/Y5/dLAWnQ5unc/QNx/Vmk/gEsir0sElJ3skzpb xMA/NS+hB0iS9kXPTzvzum+5iDuduP+0m7aVNHiuWmpQ9l8EWJiQIRok4WNqJ2TvYYeA dc48bt1K2hAw6I81tQuNQqaqUY76eSw05/sHkzPdXzTmfsETNZpwWC7mQ0+51pr1kdAN XaGShADEzowFt+g7Xbs4N+zVHNnljRwbPSHRA/EgT8iO6T3CY0wKHYRjgJ7MvUEAzupT AyYA== 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:dkim-signature; bh=mN1iKDEyC3rA1Z74FeKTAwvaB/0bfpLiv8xA+/THcfE=; b=N+QIcPHbdkB2L+h8FLmUXAd7kchi2ZfFOj7FOxAP0T57N6HQ39ZYtpCK8O7EcamzeK vxwNXw6u3Rjv4ev9CCVeQo0OyCIVWWVLd1WMzXOI0N3ku0N+y3DZ5KWkrJ3EatCo96g/ p6l9OeCTds6wii3rnyFTN9f+CHqL33+VQmPHeoJGpwqyBBC0+CPsSE8hF9QTvVbkm251 05jjzbDOH0wPaksDvcqEoFzhyShNbm1BgQQDoR4o/D6UgFudyGQJkolFIGd9DCWtEQZs PCd3jGaZjWKDZjRP6zcnaEnmuKtoPNDmi4zO3DyxFlL8iHLehuArpRvoATSr1J2qsNDp EPkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=buUI7cTE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e15si3884431ejz.137.2020.08.22.13.23.11; Sat, 22 Aug 2020 13:23:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=buUI7cTE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727782AbgHVUVy (ORCPT + 99 others); Sat, 22 Aug 2020 16:21:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726704AbgHVUVv (ORCPT ); Sat, 22 Aug 2020 16:21:51 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E99EC061573 for ; Sat, 22 Aug 2020 13:21:51 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id y6so2399530plk.10 for ; Sat, 22 Aug 2020 13:21:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=mN1iKDEyC3rA1Z74FeKTAwvaB/0bfpLiv8xA+/THcfE=; b=buUI7cTEXw0CqhjGusziy1qvMeUQnMbxSuk9u8oBhEVXDy2JpbTGHiz09OghHAtnfb MjyORiYBD8o3ITVKf0Wq0sN+HZZ0cc/wVawGT/LaMwH/62+zKuIwgZwStWoYDZxNCRm5 vHxZWuuZZaPPUeIx90594xZARn15u1VfZAyc9VjVI4yI8VtqGIWTc9wgvWDM9aeKIth0 vy1gt+NOUgcLOQ7iJco/fte1JhcP7QWZ7vdq+pTfzXC07SGTMj6duIVa5QC9Qx+BRXDg yjImBPiGxVO6589k8xFsVZ6349XQ3noBvELpS4OJ9stZgM1q+Poqc50FOOSIH5H3wRiw YsIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=mN1iKDEyC3rA1Z74FeKTAwvaB/0bfpLiv8xA+/THcfE=; b=lDRxgF7DY05KnCq7R6JYgwFAiu86T3joeMjsmsy5hiEDzVFAyDkkmrpnzEKoF2lf3O aSb/gvSW76NmEgbQqgz+gzEhKfz1G6O8Ga+n832VJfjR6W2XruYth5bUn5ygbeptsa56 He3+XVpew7/WVlCCka/qHxisnRnh3dOgKOXhhb3ln8sryafWVKeWzNRWYlzOU5uNi3zF 0miNmOJ3FOZP6U7e341OzfcGrRbQilqXnCHnhtNOkLwf8RZZsDlT21WYegBcHsO205R1 Xw6Nm5Lx1np2GMqJE03bYnZzeQ8u7Oeic4cu21UIDyrghCnSEHUHyjeIuepSr/2QKQ71 yP7g== X-Gm-Message-State: AOAM5305tOtOWXm8BecA8OD9C8aa9LSkZS1q6+tmTBmYJ6eg6OtPQLra KWqXvHFt7jKbuO+ROWDQYma0Z/W4Xos= X-Received: by 2002:a17:90a:a4ca:: with SMTP id l10mr5606289pjw.207.1598127710231; Sat, 22 Aug 2020 13:21:50 -0700 (PDT) Received: from [192.168.1.3] (ip68-111-84-250.oc.oc.cox.net. [68.111.84.250]) by smtp.gmail.com with ESMTPSA id a2sm6591393pfh.152.2020.08.22.13.21.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 22 Aug 2020 13:21:48 -0700 (PDT) Subject: Re: [PATCH v2] memory: brcmstb_dpfe: fix array index out of bounds To: Markus Mayer , Krzysztof Kozlowski Cc: Florian Fainelli , Colin Ian King , BCM Kernel Feedback , Linux ARM Kernel , Linux Kernel References: <20200821165221.32267-1-mmayer@broadcom.com> <20200822115636.GA19975@kozik-lap> <20200822164619.GA24669@kozik-lap> From: Florian Fainelli Message-ID: <81b2ad54-d4ef-cf98-886c-61c79e4cac62@gmail.com> Date: Sat, 22 Aug 2020 13:21:47 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/22/2020 1:14 PM, Markus Mayer wrote: > On Sat, 22 Aug 2020 at 09:46, Krzysztof Kozlowski wrote: >> >> On Sat, Aug 22, 2020 at 09:40:59AM -0700, Markus Mayer wrote: >>> On Sat, 22 Aug 2020 at 04:56, Krzysztof Kozlowski wrote: >>>> >>>> On Fri, Aug 21, 2020 at 09:52:21AM -0700, Markus Mayer wrote: >>>>> We would overrun the error_text array if we hit a TIMEOUT condition, >>>>> because we were using the error code "ETIMEDOUT" (which is 110) as an >>>>> array index. >>>>> >>>>> We fix the problem by correcting the array index and by providing a >>>>> function to retrieve error messages rather than accessing the array >>>>> directly. The function includes a bounds check that prevents the array >>>>> from being overrun. >>>>> >>>>> This patch was prepared in response to >>>>> https://lkml.org/lkml/2020/8/18/505. >>>>> >>>>> Signed-off-by: Markus Mayer >>>> >>>> Your Signed-off-by does not match From field. Please run >>>> scripts/checkpatch on every patch you send. >>>> >>>> I fixed it up, assuming markus.mayer@broadcom.com is the valid email >>>> address. >>> >>> No. I have always been using mmayer@broadcom.com since it is shorter. >>> That's also what's in the MAINTAINERS file. Please change it back. I >>> accidentally used the long form for one of my e-mail replies which is >>> where the confusion must have originated. >> >> I'll drop the patch then. You need to resend with SoB matching email. > > Oh, I am starting to see what's happening here. This is new and > apparently due to some changes with the mail server setup on our end. > > I have this in my patch file: > > $ head 0001-memory-brcmstb_dpfe-fix-array-index-out-of-bounds.patch > From 6b424772d4c84fa56474b2522d0d3ed6b2b2b360 Mon Sep 17 00:00:00 2001 > From: Markus Mayer > Date: Fri, 21 Aug 2020 08:56:52 -0700 > > Sending patches like this used to work. Clearly our SMTP server has > now taken it upon itself to rewrite the sender e-mail address. I > wasn't expecting that. Let me look into it. Sorry for the hassle. It > was not intentional. Yes, if you used to use the SMTP relay server which did not require authentication for internal hosts, and now you use smtp.gmail.com with your broadcom.com username, the SMTP server will rewrite the From: to match the username used to authenticate with the server. -- Florian