Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1152323pxa; Sat, 22 Aug 2020 13:15:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzB1daxwQlNxGBnAtxJjknSzIqf9INh8Ucc0zXZoepeiCVrsqpndbT4gjIzHadXetLwrmR7 X-Received: by 2002:a17:906:8050:: with SMTP id x16mr8301550ejw.441.1598127336747; Sat, 22 Aug 2020 13:15:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598127336; cv=none; d=google.com; s=arc-20160816; b=nDQtGR8jU2wU/tZTMQIhOsnOkY6hisqCvLIEvTzIeJ0kD6Amm7oFWDPEytp7QMUwAv aLQCURV6BosVN32eLegtnGx8AnzusLq2CGUA1nC030R/7p+2fWLljhsAL25hzh4B47Zb UjaR8+xYvXdIWr3C+HGvLogxRwf0ppeD4CXyT7VzMFfueCQ2Ub21KjYAHY4Lzk2NwKKG 4LdqwCM4MoIB1fV0SG7uX1Z0B6Ae/VKYfPOoWg1+Ps9/Y3vaP0d/QR2KYgYFsT9Bs6Fv tspd3vxPiMSIi49S6a+ltTGRdrBAeztFwGIwTtF7tZVOo+FZYPFRFfgmyp0beoJG1p0Q XVEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=b3S7oC1Twn6qwXgk96qofdNf+3p8VebwTcX/dFv2iHs=; b=W62eEDC9fzFKKEsxxowaRFhrYhce7Q0khsox7t2Zcj2ygIrb8Gt42dBgjawVrq/PVq 0uvub7EcsKnhCY04qf5TZaGq1f4s8efLvH2ua35zeTPmbzOGVyuji/xBCpuw2c/qCJr2 XeEi0aQgOye2hljdfJx9igza+gGz0jYh1SR8lcYEX9NfEIA5ycvrdUZkuXbHngLlEV6J fHa6R6ObUZhFbmw9TjTyTAZNiBce373fws6szJ3xpQsLhZOw4sqxlPATLM06iPWEaz/W dmQoSr1w3diz9cw/v+oXLCHvoyMfrcr/pWLVNmfT5r6Eypa9bJB51WHPG+znXWMQCqCs XjZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=Up+yuEpB; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ju9si3679287ejb.266.2020.08.22.13.15.14; Sat, 22 Aug 2020 13:15:36 -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=@broadcom.com header.s=google header.b=Up+yuEpB; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727780AbgHVUOd (ORCPT + 99 others); Sat, 22 Aug 2020 16:14:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726440AbgHVUOc (ORCPT ); Sat, 22 Aug 2020 16:14:32 -0400 Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCA8CC061573 for ; Sat, 22 Aug 2020 13:14:31 -0700 (PDT) Received: by mail-ed1-x544.google.com with SMTP id i26so4629483edv.4 for ; Sat, 22 Aug 2020 13:14:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=b3S7oC1Twn6qwXgk96qofdNf+3p8VebwTcX/dFv2iHs=; b=Up+yuEpB5QPjIBwhbe0qEEQdm96yXGMJbLrdrnzZVujZKXwYvFMimR8SX2Td6P+sgt GXXFaap6/SIv66pClr8Pc+K96hTjWJNDFJyRvo6cywkgs6VwsUYNS7WSXwXLtaVHlhgF GaX2Pmt0DZLdzipOlcItCADOL5abG5A0FhgYE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=b3S7oC1Twn6qwXgk96qofdNf+3p8VebwTcX/dFv2iHs=; b=TLu/C3+Ptz40naXSbd4fc4ym11K/LjBCEvXXRJl2bk4CnHGDhOOj4zBizYabFQbMed QZdMhRqa789PEmQLwz1+lVO2atl4PluH2IaImtFXrh/Gt6Gf2KjolICoGabsiEVOMylZ qRQs2PpRUXFEvCSA5k94Na7LU0/zIcpD8BRZVoT0SfrHaOByRW4ZZ1Wnwhp3jYEWlMnD AcVWoKVLdI13fwTzrEb0H+dRUZqQXTmpSX/FfhaopK01+lBs+MhX2m397z77MpNunhT3 HfAobKtGICjWUmRf9HgmAxqXxYVkLMsri1QVPCGjjzGglmab+PSkSXsZHADQUTYo9lpz ABBQ== X-Gm-Message-State: AOAM530AU1LNjNmSzge5Uf7hD8oDPOvenDCJfnF1OK+RY4B/kRumH59k 2e6b5rW/sEop4GT85x/YGpQOLoHCe8BZhOKVS3zdeA== X-Received: by 2002:a50:e809:: with SMTP id e9mr8625270edn.133.1598127270246; Sat, 22 Aug 2020 13:14:30 -0700 (PDT) MIME-Version: 1.0 References: <20200821165221.32267-1-mmayer@broadcom.com> <20200822115636.GA19975@kozik-lap> <20200822164619.GA24669@kozik-lap> In-Reply-To: <20200822164619.GA24669@kozik-lap> From: Markus Mayer Date: Sat, 22 Aug 2020 13:14:19 -0700 Message-ID: Subject: Re: [PATCH v2] memory: brcmstb_dpfe: fix array index out of bounds To: Krzysztof Kozlowski Cc: Florian Fainelli , Colin Ian King , BCM Kernel Feedback , Linux ARM Kernel , Linux Kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Regards, -Markus > Best regards, > Krzysztof