Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1241538rwd; Tue, 16 May 2023 14:07:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Q81CJeCYJIdlDxvcEHYykZsz7XFPbP74SrEgHXVO4QBg4Jyq/TzUtVlhXxX1LoOpzf6Vy X-Received: by 2002:a05:6a00:807:b0:647:b071:20c4 with SMTP id m7-20020a056a00080700b00647b07120c4mr35430143pfk.1.1684271235189; Tue, 16 May 2023 14:07:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684271235; cv=none; d=google.com; s=arc-20160816; b=KWixuQzCVQ50JyQqAhYHTcLBGHfzR3pRVuxBDJK2ZK7RtrMJG94MdfJFLIgvKVt5Xo OM0xx5OmoT4aziUXFKY4XP8TklZZJNHV0FwCMSBtd4StoXnexpSLuGzX4JhwJNYZJWPC GhK+rvYrpn+HGAEJI60XZA03TxBPjpbLXAPMC42tm2TUfsfXyStIzVMBjxWLiOqyb9cj goz+AU2Bl5gCFIKD9LaC85zCkCwABUHBGHmOrkqenatYOj4URdkQrB2VTEsYIIYSzDHP UdoIcTKCYgltgZO/nhScqQvsmHcJyuOIDlQSHkB/RQIoomS8MmvLZteFpNtzw+bedwkB pjqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zQwO1AW86ZZMLv1I226cO+hnWHW8xIqRy3E2TLcdclA=; b=NjgQXN2PQoG3zky41UBWynUQvixPRcV1CxnKhbmzACjvridUGxmf2W5zTr/STODqTY ZolA9nCFL5HfEfG8Cg4L7JewnuhxXKpVrw7+AYnu1T3eftw3QC6aWW2YZqF1MxpG0kRF wFNkZh6waqQ6QBZYUUKHnibjI5LKyufD6nCvZY5/sbKH+lXoDz6AL+xhAXhQU6zeIi17 OGeEze0NjoWwRMT4PtzL6RJ04A06WndWmoJLJdi3D8bocf53/rOGzY1SKWg8KX3nrgwa lmnmAMT5KDLu2bNgMIpXc175kqpf9XIFNQKnFzMOQCAvb8kuHr4/HYdVNq88mTY18Ud3 P9Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fFhG9M9B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m21-20020a638c15000000b005038290f44csi13272846pgd.527.2023.05.16.14.07.03; Tue, 16 May 2023 14:07:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fFhG9M9B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229780AbjEPUui (ORCPT + 99 others); Tue, 16 May 2023 16:50:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229788AbjEPUuh (ORCPT ); Tue, 16 May 2023 16:50:37 -0400 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97751194 for ; Tue, 16 May 2023 13:50:35 -0700 (PDT) Received: by mail-pg1-x52e.google.com with SMTP id 41be03b00d2f7-53404873a19so2527879a12.3 for ; Tue, 16 May 2023 13:50:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1684270235; x=1686862235; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=zQwO1AW86ZZMLv1I226cO+hnWHW8xIqRy3E2TLcdclA=; b=fFhG9M9BqB2Jhhucg0HrxXSX2VDAxo8VMXPAmarNkjhKXtKNnIKwpdr5CJY72A6B3n I7Ups187ntxJFuKWvFdd4ZS3604bvLbMPjDvPhSmshRWSMvI9fNpZDE1Jzg7WhICSmZq IlXhZj1G/aY1nBpyMbqOO7qk3Nj2BP+W4FP7g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684270235; x=1686862235; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zQwO1AW86ZZMLv1I226cO+hnWHW8xIqRy3E2TLcdclA=; b=TnG4+cdAbRuASn2v4RTx2ycz27MtvFFZil9FqcAJrw2XS94J5gpNUoKlpy/Aqs3vK7 mf93leT5TuLBUyfLlEm7UAijjnO7HplEIfH/qMDhmzHwTmreUngZwVc7XwHg1oECHtdF ZwGJLbPEzerLSLczacjm0tNYzDZoOjTMWv+eQuRtijOUGJV+CgWwUW0PZd1klgYv+7x2 b6iNqfJ7E+bvEEGxh2cez2lXG3d1OuuYa1a+10wsionQ0NzOGhS9iZbcvimcE70EoS8+ DBx/zQu+zfkuLUYFsYfcy/CIgTvO5LC6uOOxaxvuJnKAmN8ge/ij4maCSf755PIfVTO/ 06lg== X-Gm-Message-State: AC+VfDy47MMmiYZgAcDDf+6RSycsSyvJk3OYjkTcY4wMtoUmard1XCRx z+DCxnNkLQYSilZUtoZ0sztgig== X-Received: by 2002:a05:6a20:7d97:b0:ff:e60c:ee93 with SMTP id v23-20020a056a207d9700b000ffe60cee93mr43232036pzj.26.1684270235098; Tue, 16 May 2023 13:50:35 -0700 (PDT) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id i13-20020aa7908d000000b0063f2e729127sm14237746pfa.144.2023.05.16.13.50.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 13:50:34 -0700 (PDT) Date: Tue, 16 May 2023 13:50:33 -0700 From: Kees Cook To: Mukesh Ojha Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, corbet@lwn.net, tony.luck@intel.com, gpiccoli@igalia.com, catalin.marinas@arm.com, will@kernel.org, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, linus.walleij@linaro.org, linux-gpio@vger.kernel.org, srinivas.kandagatla@linaro.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v3 12/18] soc: qcom: Register pstore frontend region with minidump Message-ID: <202305161349.7306F11199@keescook> References: <1683133352-10046-1-git-send-email-quic_mojha@quicinc.com> <1683133352-10046-13-git-send-email-quic_mojha@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1683133352-10046-13-git-send-email-quic_mojha@quicinc.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 03, 2023 at 10:32:26PM +0530, Mukesh Ojha wrote: > Since qcom_pstore_minidump driver creates platform device > for qualcomm devices, so it knows the physical addresses > of the frontend region now. Let's register the regions > with qcom_minidump driver. > > Signed-off-by: Mukesh Ojha > [...] > + strlcpy(md_region->name, name, sizeof(md_region->name)); nitpick throughout: Please use strscpy() https://github.com/KSPP/linux/issues/89 -Kees -- Kees Cook