Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2315894rdb; Mon, 9 Oct 2023 23:13:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEQSu+lUn5boIkHliZ+FYAXJoqalPrw4AQtYoIE9Xqv3e9cCQKWswfqbKyqLIVhE2BIE6lH X-Received: by 2002:a05:6870:4211:b0:1b0:218b:8acc with SMTP id u17-20020a056870421100b001b0218b8accmr20507921oac.7.1696918395168; Mon, 09 Oct 2023 23:13:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696918395; cv=none; d=google.com; s=arc-20160816; b=b2UYKSjrNJGbolI0ipv8VfmVlM45IBuoeJkSegRvBO+3dD5prh0RAFynR6egplj9W3 +E5DMjRCndwfvQbaxdmUmPRsclbFbHqHrpTr0KkKrMewZEUeibONtWR2YmIjETpsk5au YcLJdevh/TT7wQYwvMjs5F34DmDpVhovxnyU7YTx70hJbLJvOM9BHN563lvERF+/Dncr WBb7HvGqxvQ4bvUjNkkdpy3Ro8DQboMtyTHJ+ptkC9X8VyCBVD2UVgdGA7zr2+o9khSO ItycSrcyVRfWZp8HxmM/uyk8mSgUNmc8CM0Mv0YMKg1DBLfneJJC4yAVvq2FJNyV45y6 FVUA== 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=n57/drzulEecSIqLgL/TdT5thazz0B3JpupEBiwAQT4=; fh=Y/sH7eaPgmC0dvaLhdG6/LuQjxDmgyimI828czjlWwc=; b=QBgyRCk6A7uQUg4ozuyugumCaLz/Qt0BT4PDHmjawJIBQfSksrFzPWF1NDNfO0l/xj gRmjt7Cd0wv/NI4eH3xL+nBCbm/QfL6cnZadUEH4jeEq8td1X2CJst1iGP+KhFpxylib JLV5Vehb2ERRQi3ztnVRtSFpcWYaRzfCDQAmMm1+1uA8Vo5XehW50iW16Yf1BiH2/EKB AnQbvfKeo49Qxwy2J28RSZiDh5zxrwdRO2LI8gtuu7Su4M3OLdZDjPu1suPd4voSAuEs hB+EVjXQBTfKbNQNFEGTDVAKpY6C+orOuBdXGxFDVDK7RyNNmO5ipXgprvnHDxHg/eN2 VXig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wxcONk+D; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id t189-20020a6381c6000000b0058933a7437dsi10967682pgd.857.2023.10.09.23.13.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 23:13:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wxcONk+D; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 409928276C02; Mon, 9 Oct 2023 23:13:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442202AbjJJGNJ (ORCPT + 99 others); Tue, 10 Oct 2023 02:13:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442156AbjJJGNI (ORCPT ); Tue, 10 Oct 2023 02:13:08 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAAA6B7; Mon, 9 Oct 2023 23:13:05 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7F79C433C7; Tue, 10 Oct 2023 06:13:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1696918385; bh=ZfqLYJFXsYULZ9kLmOcOxhIz5rXVpjEDCEx3JH61F7g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wxcONk+DexdaaHvwD3JZbwLM348jrwMvQC6eK3sR8FBG46vvHZbdUNfkif9XhyIfs 41egRCHQmz0KJjQbGVt0bUBNVsLDio+W+0VOdLDh0BJhdIT7AEjuY9NrkA4yqkB71G eVz8biTxCyF4MfSkpgbzUJ327NU3h4hTybDCPHo4= Date: Tue, 10 Oct 2023 08:13:02 +0200 From: Greg Kroah-Hartman To: Alexander Graf Cc: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Arnd Bergmann , Herbert Xu , Olivia Mackall , Petre Eftime , Erdem Meydanlli , Benjamin Herrenschmidt , David Woodhouse , "Michael S . Tsirkin" , Jason Wang , Xuan Zhuo , Kyunghwan Kwon Subject: Re: [PATCH v4 1/2] Import CBOR library Message-ID: <2023101010-overwrite-parakeet-91d5@gregkh> References: <20231009212053.2007-1-graf@amazon.com> <20231009212053.2007-2-graf@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231009212053.2007-2-graf@amazon.com> X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 09 Oct 2023 23:13:10 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 09, 2023 at 09:20:52PM +0000, Alexander Graf wrote: > To fully support the Nitro Secure Module communication protocol, we need > to encode and decode CBOR binary data. Import an MIT licensed library > from https://github.com/libmcu/cbor (commit f3d1696f886) so that we can > easily consume CBOR data. What is "CBOR"? I don't see a description of it here. And I guess you are going to keep this in sync with upstream? Or do you really need the full library here (you #ifdef the float stuff out), does your module really need all of the functionality and complexity of this library, or can it use just a much smaller one instead? > On top of the upstream code base, I added kernel module as well as > kernel header path awareness and made checkpatch happy. If only the one module needs this, why not put it in the directory for the module itself, and then when/if anyone else needs it, it could be moved? thanks, greg k-h