Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2592489rwi; Fri, 28 Oct 2022 08:50:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM68UyMirDLquZBL/ljG/xF4MZt8zhwAf0WjJznL9s6iiPKdUxPEtWQs+xchENQ7xv+MmGNc X-Received: by 2002:a17:906:ee86:b0:741:89bc:27a1 with SMTP id wt6-20020a170906ee8600b0074189bc27a1mr48446350ejb.725.1666972218304; Fri, 28 Oct 2022 08:50:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666972218; cv=none; d=google.com; s=arc-20160816; b=BGW+60K0VTgNCccMuHs4kNeqLDJoFIz64rwxtFmjiml6ObSXMMySATUVI3lgE2xKpA t/FLiZqsGE9wShTlhEN2bVsBFgSbCzIXqomroS40eUfnn7p35gNVrI+0dG58+wl1pgTt AMojjlh4nrkiEBzrjwjLX5E08qnlnFMs93/5Pm2sJOPWY8ITj17OLusTmSte6dtjSmYp 6zNd49Vguj+nL58Eu9kp8KZ15wfr3x1yTVsnfZdxzp+SiHjtXuh9tSCPlSqoiSmuCahf yCom4eTkew7PRUfldPI3wK46Q64drcNz8nAvD/i0ahBITOW1iN1G6sXf/rA4a9Yro+cT glUQ== 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; bh=ehpj5SHSr2+ugzLl9o/OYmAELDqxbVzdgbgzmrWD+mc=; b=aDc5nKTCv4U/V9Qe7yJ1lS3rT60gmoEZdtmdZ8R8YGhzoQ3Ef/klPl/OBrycXOFJtL IqApdFAlmcP62vFquBlFtLFcFSZj+oNztDS4ezzJJW/ry+zxZS5oT+wciNXeBO9JqNLg ULb+V6AauCAIMtuztt5vHsevHHFY5C/zu/xyT/KgDopcxCFHKzWwUos2dYgjSkGqBE9e Cmjno5vwwaSP2o/t9j21N84FJ8eaH+y1m/j/z/gkfdta9egOiHkHn9hvnHTANYSuGEQ8 vcORs5LjZrsEpvynbdI9oV8N93+K3vAK1bwA9ootfh4lOeG+gNdpYL56SSGAMM4dNqJw Zu1A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id tz14-20020a170907c78e00b00780328a0868si4006955ejc.110.2022.10.28.08.49.52; Fri, 28 Oct 2022 08:50:18 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229907AbiJ1PYE (ORCPT + 99 others); Fri, 28 Oct 2022 11:24:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229696AbiJ1PYC (ORCPT ); Fri, 28 Oct 2022 11:24:02 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3C8071E0980 for ; Fri, 28 Oct 2022 08:24:01 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D84F71FB; Fri, 28 Oct 2022 08:24:06 -0700 (PDT) Received: from e120937-lin (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B6CC93F534; Fri, 28 Oct 2022 08:23:58 -0700 (PDT) Date: Fri, 28 Oct 2022 16:23:48 +0100 From: Cristian Marussi To: Florian Fainelli Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, sudeep.holla@arm.com, james.quinlan@broadcom.com, Jonathan.Cameron@huawei.com, etienne.carriere@linaro.org, vincent.guittot@linaro.org, souvik.chakravarty@arm.com, wleavitt@marvell.com, peter.hilber@opensynergy.com, nicola.mazzucato@arm.com, tarek.el-sherbiny@arm.com, quic_kshivnan@quicinc.com Subject: Re: [PATCH v4 0/11] Introduce a unified API for SCMI Server testing Message-ID: References: <20221019204626.3813043-1-cristian.marussi@arm.com> <645ffd03-b49d-9e6e-7541-21c11eab0aef@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <645ffd03-b49d-9e6e-7541-21c11eab0aef@gmail.com> X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham 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 Fri, Oct 28, 2022 at 07:44:32AM -0700, Florian Fainelli wrote: > Hi Christian, > > On 10/19/2022 1:46 PM, Cristian Marussi wrote: > > Hi all, > > Hi Florian, > > This series aims to introduce a new SCMI unified userspace interface meant > > to ease testing an SCMI Server implementation for compliance, fuzzing etc., > > from the perspective of the OSPM agent (non-secure world only ...) > > > > It is proposed as a testing/development facility, it is NOT meant to be a > > feature to use in production, but only enabled in Kconfig for test > > deployments. > > > > Currently an SCMI Compliance Suite like the one at [1] can only work by > > injecting SCMI messages at the SCMI transport layer using the mailbox test > > driver (CONFIG_MAILBOX_TEST) via its few debugfs entries and looking at > > the related replies from the SCMI backend Server. > > I plan on giving this a try on our systems later today and will let you know > the outcome. Great ! It would be much appreciated... > This is very useful for making sure the SCMI implementation is > both correct and properly hardened. ... that was the plan :P Note that the upstream SCMI ACS suite that I am using for stressing/testing this Raw thing is still WIP in term of supporting Raw mode injection (i.e. functional but ALL still to be merged)..but if you need I can give you pointers on how to use it....unless of course you have your suite or you just want to test using the shell as in the cover-letter examples... ... on my side I tried to fuzz me with a brutal 'dd bs=128 count=1 if=/dev/random of=/message' as a poor man fuzzying tool :D ... so I was thinking if it was meaningful to think about upstreaming some common tools for fuzzying or simply pre-building bare payloads (in proper endianity) to be injected with this SCMI raw thing... (I mean something useful that could live in tools/) ...any feedbacks/hints in these regards are welcome. Thanks, Cristian