Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp66668rdb; Wed, 29 Nov 2023 20:39:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IGiwlGrRSRhEU9vBKmTsnoEuKOIjs1DCtgX8zaB9KA/z/wd/k/6sctxBgaHOCex/Dc1TeBX X-Received: by 2002:a05:690c:c8f:b0:5d3:4ced:67ef with SMTP id cm15-20020a05690c0c8f00b005d34ced67efmr522733ywb.23.1701319140298; Wed, 29 Nov 2023 20:39:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701319140; cv=none; d=google.com; s=arc-20160816; b=tfgFZopXV0g5aGYiWKQeT6J+ibuhsl7jb6rMfNncv6cBSlBFQu+Cb1PTloYOLC7AiS 4NMK8TmJRXgVC/QuOK+4qAFs+dpEjvHcWXGVpDgIIttVUtJlaDcGr23CFD0QRk+DLnyG u8r+wrVxvAJ8aL+GmcOyDngiJqgHu+cm7nqLErV2t4UIwOlqrr1n6onZFfG8KbQnWUC+ vg7BIuSD2JQxASf5LWi7oWI8q8URtJR5F+bYMyn6KV/jAsEzINPKOC4ugl0lwTK9caA7 VVVByFIFFGuTQcz5a6OAzz0GM4ghsobLnerWsc/+5bKqYfN/RJUm9whshHOa7PjOpeQQ CYeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=d192fpFmOU/qWfhTnD015KdnEZA8yckxsWgAEYNuv94=; fh=UCgQuQ3AZd0uiTl184IXxa2dVUzYmUEJ6zPO7BBLsws=; b=syE0Pxircd+VuRFqK7aGuj1QId0PY+afWcYIcvYulPP9rRWhp+hw9DphRihcjPC/E0 bgFCG+dHNJSUMuThJvlPvIauTKZMY5s2Hki/SnqGIMQ0MbUJP6TciFpn8J6WdnpZPpqJ VyZRbkKoMjSv1+BYy+ngL7I4y9+JUs9LbHuxEx+kRoXgm0XOoB4DMEnW3lfCZMN/qu+u uOI0INVSouvDBasERbXHEgkhtNo5kVWNTg1A39CFgDNSbrse1tw+HEn4W2/2LPGqiL8E vCijbuf4bZLzLInitNTN6Coo/vVog7ws0hB18QUyWK3QbEyuC4PpDcLJJiSStlgR4l49 DGKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=a2Srnxy2; spf=pass (google.com: domain of linux-crypto+bounces-403-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-crypto+bounces-403-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c16-20020a056a000ad000b006cb686c08f4si395368pfl.211.2023.11.29.20.39.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 20:39:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-403-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=a2Srnxy2; spf=pass (google.com: domain of linux-crypto+bounces-403-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-crypto+bounces-403-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B9444281D00 for ; Thu, 30 Nov 2023 04:38:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 73AFC20DC6 for ; Thu, 30 Nov 2023 04:38:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="a2Srnxy2" X-Original-To: linux-crypto@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5655FD5C; Wed, 29 Nov 2023 19:55:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701316504; x=1732852504; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=/z4YIK8oMfbarK8nux1ot1qBf6TXHp394tG9cuMHxHM=; b=a2Srnxy2UZnLHuGHJb+ydznZKoOr95gtsiTXnELan91piAqK2jZSO0ic rlgVzZnoe6tkc5zJRNaFCB21GrMjQlzFT5I9jkAT0d0cHm9AII1PYy209 yVHe23ToBZbG/DZoYU/++DbAiQyYScWXEG7r40msVG2fHkmeOJjKQ8n/r ZiZdgYJCSApXbc28lMhNRAWP9HM3RHgf7jOnTVMZJK2rhyfQfdSn8XBp0 mw71+0QRGwLkuuRWBBDTZo9SoJYVfTZkJOsJndOYYjyIv+xVI4pv65naq WvNZlHCY+JMFVi+iFC9Xem9YfjjC7lmu2owCcRoBoVVvHB7T7PsjsPmVI Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10909"; a="396072728" X-IronPort-AV: E=Sophos;i="6.04,237,1695711600"; d="scan'208";a="396072728" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2023 19:55:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10909"; a="860054042" X-IronPort-AV: E=Sophos;i="6.04,237,1695711600"; d="scan'208";a="860054042" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by FMSMGA003.fm.intel.com with ESMTP; 29 Nov 2023 19:55:00 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1r8Y8g-0001JB-1Q; Thu, 30 Nov 2023 03:54:58 +0000 Date: Thu, 30 Nov 2023 11:54:43 +0800 From: kernel test robot To: Vadim Fedorenko , Vadim Fedorenko , Jakub Kicinski , Martin KaFai Lau , Andrii Nakryiko , Alexei Starovoitov , Mykola Lysenko , Herbert Xu Cc: oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org, linux-crypto@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH bpf-next v6 1/3] bpf: make common crypto API for TC/XDP programs Message-ID: <202311300742.fDSG2vce-lkp@intel.com> References: <20231129173312.31008-1-vadfed@meta.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231129173312.31008-1-vadfed@meta.com> Hi Vadim, kernel test robot noticed the following build errors: [auto build test ERROR on bpf-next/master] url: https://github.com/intel-lab-lkp/linux/commits/Vadim-Fedorenko/bpf-crypto-add-skcipher-to-bpf-crypto/20231130-014813 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master patch link: https://lore.kernel.org/r/20231129173312.31008-1-vadfed%40meta.com patch subject: [PATCH bpf-next v6 1/3] bpf: make common crypto API for TC/XDP programs config: arm64-randconfig-r081-20231130 (https://download.01.org/0day-ci/archive/20231130/202311300742.fDSG2vce-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231130/202311300742.fDSG2vce-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202311300742.fDSG2vce-lkp@intel.com/ All errors (new ones prefixed by >>): >> kernel/bpf/crypto.c:179:46: error: expected ')' 179 | *err = type->setauthsize(ctx->tfm, authsize; | ^ kernel/bpf/crypto.c:179:27: note: to match this '(' 179 | *err = type->setauthsize(ctx->tfm, authsize; | ^ 1 error generated. vim +179 kernel/bpf/crypto.c 105 106 /** 107 * bpf_crypto_ctx_create() - Create a mutable BPF crypto context. 108 * 109 * Allocates a crypto context that can be used, acquired, and released by 110 * a BPF program. The crypto context returned by this function must either 111 * be embedded in a map as a kptr, or freed with bpf_crypto_ctx_release(). 112 * As crypto API functions use GFP_KERNEL allocations, this function can 113 * only be used in sleepable BPF programs. 114 * 115 * bpf_crypto_ctx_create() allocates memory for crypto context. 116 * It may return NULL if no memory is available. 117 * @type__str: pointer to string representation of crypto type. 118 * @algo__str: pointer to string representation of algorithm. 119 * @pkey: bpf_dynptr which holds cipher key to do crypto. 120 * @err: integer to store error code when NULL is returned 121 */ 122 __bpf_kfunc struct bpf_crypto_ctx * 123 bpf_crypto_ctx_create(const char *type__str, const char *algo__str, 124 const struct bpf_dynptr_kern *pkey, 125 unsigned int authsize, int *err) 126 { 127 const struct bpf_crypto_type *type = bpf_crypto_get_type(type__str); 128 struct bpf_crypto_ctx *ctx; 129 const u8 *key; 130 u32 key_len; 131 132 //type = bpf_crypto_get_type(type__str); 133 if (IS_ERR(type)) { 134 *err = PTR_ERR(type); 135 return NULL; 136 } 137 138 if (!type->has_algo(algo__str)) { 139 *err = -EOPNOTSUPP; 140 goto err; 141 } 142 143 if (!authsize && type->setauthsize) { 144 *err = -EOPNOTSUPP; 145 goto err; 146 } 147 148 if (authsize && !type->setauthsize) { 149 *err = -EOPNOTSUPP; 150 goto err; 151 } 152 153 key_len = __bpf_dynptr_size(pkey); 154 if (!key_len) { 155 *err = -EINVAL; 156 goto err; 157 } 158 key = __bpf_dynptr_data(pkey, key_len); 159 if (!key) { 160 *err = -EINVAL; 161 goto err; 162 } 163 164 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); 165 if (!ctx) { 166 *err = -ENOMEM; 167 goto err; 168 } 169 170 ctx->type = type; 171 ctx->tfm = type->alloc_tfm(algo__str); 172 if (IS_ERR(ctx->tfm)) { 173 *err = PTR_ERR(ctx->tfm); 174 ctx->tfm = NULL; 175 goto err; 176 } 177 178 if (authsize) { > 179 *err = type->setauthsize(ctx->tfm, authsize; 180 if (*err) 181 goto err; 182 } 183 184 *err = type->setkey(ctx->tfm, key, key_len); 185 if (*err) 186 goto err; 187 188 refcount_set(&ctx->usage, 1); 189 190 return ctx; 191 err: 192 if (ctx->tfm) 193 type->free_tfm(ctx->tfm); 194 kfree(ctx); 195 module_put(type->owner); 196 197 return NULL; 198 } 199 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki