From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3DAA2C5AD49 for ; Sun, 8 Jun 2025 21:45:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3F1A66B0088; Sun, 8 Jun 2025 17:45:13 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 32A556B0089; Sun, 8 Jun 2025 17:45:13 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1F9AD6B008C; Sun, 8 Jun 2025 17:45:13 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id EA3866B007B for ; Sun, 8 Jun 2025 17:45:12 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 4D4E01A0433 for ; Sun, 8 Jun 2025 21:45:12 +0000 (UTC) X-FDA: 83533564464.05.6017AB6 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by imf16.hostedemail.com (Postfix) with ESMTP id E84EE180003 for ; Sun, 8 Jun 2025 21:45:08 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=V32i3OMW; spf=pass (imf16.hostedemail.com: domain of lkp@intel.com designates 198.175.65.21 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1749419110; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=q5sDAfT9QTye7hSbDobEDXLILSs3qhw5Pqx58ATIXfg=; b=NW+2gC6r1hr4fD209fh6UZt7CSZP/g2sc6MU9WSEtsVHVgksMV88ADOIQozO9qsHgrC8TX FvXZrlaaTUS3sydGv1829lWVLD0u0l7MNBAwH2K62d1WucSR8baS2M8LpBz7HFr0j9MA1y X2ISjHRVMKTeeBBatHLzZFTYYlCzB/Y= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1749419110; a=rsa-sha256; cv=none; b=418i7H7g4HP33WR0hqKBPiU7Vc6nqGgOChTgMkVnE6EGGbj0l0J1MOPNsxPJXfsEUakCsb G8rWUCXsepTn/2gZYykB82oqLBmhKxhrnVpFjozCSBZR/3qeQmznj/hyXMo+sPD/qH2SP9 Z+p+Cnrq3CgxZQAlWp2dn+KZhvv4p48= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=V32i3OMW; spf=pass (imf16.hostedemail.com: domain of lkp@intel.com designates 198.175.65.21 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1749419110; x=1780955110; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=npZfZ2WCHTpliWOXYMmid9BgtGuNxMQTcGwH9McZC+o=; b=V32i3OMWg4HNz2QZaN2mvTbZlemgSY62zGH6rOI1RbwFhjht/Gt56p2c 7YFnof357SenCiSXs74N+U8ZpDvj5C8Uwkc1Xz13Mb7hwjldqU/8ZZivX 2cPLb7VwYq8bw0FOS+xwCZhIMTQnGd05URbf9ge6Zb9sZ2wSTrXSWwD6x BoxXl8EGSp5dJ53EcydZ0iC2Qo5J/cU/dCxURq2pKSkCkItifjmXipxGl b9gDoMuvLQ+RJykAJbbHxVNOzd3TeYh8SpdRfaAL59ywD8C+goawcfYoE EVF9rdDh8j03qu0pMr55lhLKle3sHRcwGOgyC4Og3HjNDRCylocy5J0LH A==; X-CSE-ConnectionGUID: CwLROfb1Rlu7FGxvp710FQ== X-CSE-MsgGUID: wnLJK9hVS1KW+gH2pte5ow== X-IronPort-AV: E=McAfee;i="6800,10657,11458"; a="51355908" X-IronPort-AV: E=Sophos;i="6.16,221,1744095600"; d="scan'208";a="51355908" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2025 14:45:08 -0700 X-CSE-ConnectionGUID: h6gpoV7kQli88U3B5uVOHQ== X-CSE-MsgGUID: J09Yft1ISY21ppPiui92ng== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,221,1744095600"; d="scan'208";a="150161631" Received: from lkp-server01.sh.intel.com (HELO e8142ee1dce2) ([10.239.97.150]) by fmviesa003.fm.intel.com with ESMTP; 08 Jun 2025 14:45:04 -0700 Received: from kbuild by e8142ee1dce2 with local (Exim 4.96) (envelope-from ) id 1uONp8-0006ZN-0W; Sun, 08 Jun 2025 21:45:02 +0000 Date: Mon, 9 Jun 2025 05:44:47 +0800 From: kernel test robot To: Yury Norov , linux-kernel@vger.kernel.org, Rasmus Villemoes , John Stultz , Thomas Gleixner , Stephen Boyd , Andrew Morton Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List Subject: Re: [PATCH 1/3] bitmap: generalize node_random() Message-ID: <202506090550.y3ypu2EO-lkp@intel.com> References: <20250608194536.28130-2-yury.norov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250608194536.28130-2-yury.norov@gmail.com> X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: E84EE180003 X-Stat-Signature: ik47ucb7azgc1tetymd851e54ow7gd1o X-Rspam-User: X-HE-Tag: 1749419108-654573 X-HE-Meta: U2FsdGVkX1+LD7hcNnFa8fn21OIK4AVc7FpEzUMU1Aqe43gqBcEZ7+Bu8FSS13MPteVUCJvbI4KcUY1cZWaoFDRiBe6q+qHVrDMZy/GFApDSXfVb7KdKeR/XEp5t508jfp3WG9b0yUDefDyiTsN34+MU794R8tifXXcLoFPAmgk/2nW6xDOv2Yeuihc8bTxlwaxjIIY6vIHWRe34Xv2jvPLtqLQS8SwQ8yMepvxT2tUt97MUTr4kffnzs6aU2LIFddtGhoLMjzr45v5XDYZPe2rNnJLVrigGik4D8InUyVNgXHFcr4fKsyb94Lg/I/J/1K2pRAPO0dvzCirc9M8PLr/+zmL6GEMMTAdHZA4C0DarhwPJSrob/09mKStApdPxqfqJxcIQ5E9l0OPiMgSyk3Lsc+WryTacVKOra3PAO9Xa+7CuGJmAKywX41AdNnQbDDvLncofgEGuRaPm+e23kAqp0pAw1CPSpqDpoGh+rOJDx3f7GyPWIzKDV/D6oO9fyLoocJ37q2c3DTjGDda7gnJLxZP+QPAlOi0N8XBvQ9pGbpMadt5QpFMWt8r/H8QDxLeMybVm7VTp6uuFsz9xkpIGj44jzQoj8KjKrgYGj0cA1acQLRCBRDacEmvryz4QhilsoCYPQQYnJOU59dvW7vff+1RMZ2QM+C0MlM3Zl7eatxqNx6RkBwJ4/iCLhyDk1S/TLkTgUe4lcEctGmyDOuddN8bDEVW7xz/CXv3pNukmwx1veQJdI3fesuiiOmHgyCZe1l8mpf9VaH822uxb6Gbsg7XjTI+MYX2Nwdd/0uS2RIpEKfWEwbotmLpXcy5f1DHXHRMTPT69D7KEGAzJWVNncCAQMmbuSZgyMd6ZnuAR4CbWgDTPuzEITKbLxF/VkXa6S011FI9bP1sZt2ASg6CCg4tccVGv6tj246UcWsLtYw6x1SI1TLsRAOhzUPulKuYvIeHbNWgKoDoOMb7 aWWCKMA4 eb+zPwccPqkPRZntWGmCtyk98R779rcX+ox9kxfN1NVwTRJNGT3CAJehh2EJZJzYiDkohif4pZzGWLIChNOHrh26/yEw25xG9hr0gjwbcTldUlO2zV2Wftl8tXMAdCnODJ7fSt4Y3e2ePktuVGRDNNKGN/aZBIfCcuoK4fZqWysJoVnrjCvrEsKo9TEQC3673SuBkUXdrFnFsJdEX9h7+Z+LARt9viX74mZb18Rn/5y56WF6iKUP4Bo28uGNGZBfTzzylxAHLTZS4WJFDZzBBTl39lCW37Kj8D/mBYKru7jAS5YMqBIKMQ4jK9rL0IvlfhgovjevQILzYHGNCxQzFVOrDtvzxsAmPWEgTURrik3oV3Wf0zLSnHV3u0JOJ2T0pbwtFFLIpQ2Rx9HECvGKBFYp4GORhPrEB0u1M4cMp4yOOS493xWlML9jXRri9s4Vcj4qh6tB+nGH0f0dGm5Ko6VKQpGndYJ726WwfRzzv7vSRDCTV4gG05NmQ2Q== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Hi Yury, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-nonmm-unstable] [also build test ERROR on tip/timers/core akpm-mm/mm-everything linus/master v6.15 next-20250606] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Yury-Norov/bitmap-generalize-node_random/20250609-034657 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-nonmm-unstable patch link: https://lore.kernel.org/r/20250608194536.28130-2-yury.norov%40gmail.com patch subject: [PATCH 1/3] bitmap: generalize node_random() config: arm-randconfig-002-20250609 (https://download.01.org/0day-ci/archive/20250609/202506090550.y3ypu2EO-lkp@intel.com/config) compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250609/202506090550.y3ypu2EO-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/202506090550.y3ypu2EO-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from ./arch/arm/include/generated/asm/preempt.h:1: In file included from include/asm-generic/preempt.h:5: In file included from include/linux/thread_info.h:27: In file included from include/linux/bitops.h:29: include/asm-generic/bitops/generic-non-atomic.h:140:16: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes] 140 | return 1UL & (smp_load_acquire(p) >> (nr & (BITS_PER_LONG-1))); | ^ include/asm-generic/barrier.h:204:37: note: expanded from macro 'smp_load_acquire' 204 | __unqual_scalar_typeof(*p) ___p1 = READ_ONCE(*p); \ | ^ include/asm-generic/rwonce.h:49:2: note: expanded from macro 'READ_ONCE' 49 | compiletime_assert_rwonce_type(x); \ | ^ include/asm-generic/rwonce.h:36:2: note: expanded from macro 'compiletime_assert_rwonce_type' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^ include/linux/compiler_types.h:565:2: note: expanded from macro 'compiletime_assert' 565 | __compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:547:4: note: expanded from macro '__compiletime_assert' 547 | __compiletime_error(msg); \ | ^ include/linux/compiler_attributes.h:138:56: note: expanded from macro '__compiletime_error' 138 | # define __compiletime_error(msg) __attribute__((__error__(msg))) | ^ include/linux/mm.h:2618:9: note: previous attribute is here 2618 | return max(mm->hiwater_rss, get_mm_rss(mm)); | ^ include/linux/minmax.h:112:19: note: expanded from macro 'max' 112 | #define max(x, y) __careful_cmp(max, x, y) | ^ include/linux/minmax.h:98:2: note: expanded from macro '__careful_cmp' 98 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_)) | ^ include/linux/minmax.h:93:2: note: expanded from macro '__careful_cmp_once' 93 | BUILD_BUG_ON_MSG(!__types_ok(ux, uy), \ | ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:565:2: note: expanded from macro 'compiletime_assert' 565 | __compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:547:4: note: expanded from macro '__compiletime_assert' 547 | __compiletime_error(msg); \ | ^ include/linux/compiler_attributes.h:138:56: note: expanded from macro '__compiletime_error' 138 | # define __compiletime_error(msg) __attribute__((__error__(msg))) | ^ In file included from crypto/krb5/rfc8009_aes2.c:10: In file included from include/linux/slab.h:16: In file included from include/linux/gfp.h:7: In file included from include/linux/mmzone.h:8: In file included from include/linux/spinlock.h:56: In file included from include/linux/preempt.h:79: In file included from ./arch/arm/include/generated/asm/preempt.h:1: In file included from include/asm-generic/preempt.h:5: In file included from include/linux/thread_info.h:27: In file included from include/linux/bitops.h:29: include/asm-generic/bitops/generic-non-atomic.h:140:16: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes] 140 | return 1UL & (smp_load_acquire(p) >> (nr & (BITS_PER_LONG-1))); | ^ include/asm-generic/barrier.h:204:37: note: expanded from macro 'smp_load_acquire' 204 | __unqual_scalar_typeof(*p) ___p1 = READ_ONCE(*p); \ | ^ include/asm-generic/rwonce.h:49:2: note: expanded from macro 'READ_ONCE' 49 | compiletime_assert_rwonce_type(x); \ | ^ include/asm-generic/rwonce.h:36:2: note: expanded from macro 'compiletime_assert_rwonce_type' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^ include/linux/compiler_types.h:565:2: note: expanded from macro 'compiletime_assert' 565 | __compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:547:4: note: expanded from macro '__compiletime_assert' 547 | __compiletime_error(msg); \ | ^ include/linux/compiler_attributes.h:138:56: note: expanded from macro '__compiletime_error' 138 | # define __compiletime_error(msg) __attribute__((__error__(msg))) | ^ include/linux/mm.h:2623:9: note: previous attribute is here 2623 | return max(mm->hiwater_vm, mm->total_vm); | ^ include/linux/minmax.h:112:19: note: expanded from macro 'max' 112 | #define max(x, y) __careful_cmp(max, x, y) | ^ include/linux/minmax.h:98:2: note: expanded from macro '__careful_cmp' 98 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_)) | ^ include/linux/minmax.h:93:2: note: expanded from macro '__careful_cmp_once' 93 | BUILD_BUG_ON_MSG(!__types_ok(ux, uy), \ | ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:565:2: note: expanded from macro 'compiletime_assert' 565 | __compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:547:4: note: expanded from macro '__compiletime_assert' 547 | __compiletime_error(msg); \ | ^ include/linux/compiler_attributes.h:138:56: note: expanded from macro '__compiletime_error' 138 | # define __compiletime_error(msg) __attribute__((__error__(msg))) | ^ >> crypto/krb5/rfc8009_aes2.c:209:3: error: call to undeclared function 'get_random_bytes'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 209 | get_random_bytes(buffer, krb5->conf_len); | ^ 27 warnings and 1 error generated. vim +/get_random_bytes +209 crypto/krb5/rfc8009_aes2.c 6c3c0e86c2acf5 David Howells 2025-02-03 167 6c3c0e86c2acf5 David Howells 2025-02-03 168 /* 6c3c0e86c2acf5 David Howells 2025-02-03 169 * Apply encryption and checksumming functions to a message. Unlike for 6c3c0e86c2acf5 David Howells 2025-02-03 170 * RFC3961, for RFC8009, we have to chuck the starting IV into the hash first. 6c3c0e86c2acf5 David Howells 2025-02-03 171 */ 6c3c0e86c2acf5 David Howells 2025-02-03 172 static ssize_t rfc8009_encrypt(const struct krb5_enctype *krb5, 6c3c0e86c2acf5 David Howells 2025-02-03 173 struct crypto_aead *aead, 6c3c0e86c2acf5 David Howells 2025-02-03 174 struct scatterlist *sg, unsigned int nr_sg, size_t sg_len, 6c3c0e86c2acf5 David Howells 2025-02-03 175 size_t data_offset, size_t data_len, 6c3c0e86c2acf5 David Howells 2025-02-03 176 bool preconfounded) 6c3c0e86c2acf5 David Howells 2025-02-03 177 { 6c3c0e86c2acf5 David Howells 2025-02-03 178 struct aead_request *req; 6c3c0e86c2acf5 David Howells 2025-02-03 179 struct scatterlist bsg[2]; 6c3c0e86c2acf5 David Howells 2025-02-03 180 ssize_t ret, done; 6c3c0e86c2acf5 David Howells 2025-02-03 181 size_t bsize, base_len, secure_offset, secure_len, pad_len, cksum_offset; 6c3c0e86c2acf5 David Howells 2025-02-03 182 void *buffer; 6c3c0e86c2acf5 David Howells 2025-02-03 183 u8 *iv, *ad; 6c3c0e86c2acf5 David Howells 2025-02-03 184 6c3c0e86c2acf5 David Howells 2025-02-03 185 if (WARN_ON(data_offset != krb5->conf_len)) 6c3c0e86c2acf5 David Howells 2025-02-03 186 return -EINVAL; /* Data is in wrong place */ 6c3c0e86c2acf5 David Howells 2025-02-03 187 6c3c0e86c2acf5 David Howells 2025-02-03 188 secure_offset = 0; 6c3c0e86c2acf5 David Howells 2025-02-03 189 base_len = krb5->conf_len + data_len; 6c3c0e86c2acf5 David Howells 2025-02-03 190 pad_len = 0; 6c3c0e86c2acf5 David Howells 2025-02-03 191 secure_len = base_len + pad_len; 6c3c0e86c2acf5 David Howells 2025-02-03 192 cksum_offset = secure_len; 6c3c0e86c2acf5 David Howells 2025-02-03 193 if (WARN_ON(cksum_offset + krb5->cksum_len > sg_len)) 6c3c0e86c2acf5 David Howells 2025-02-03 194 return -EFAULT; 6c3c0e86c2acf5 David Howells 2025-02-03 195 6c3c0e86c2acf5 David Howells 2025-02-03 196 bsize = krb5_aead_size(aead) + 6c3c0e86c2acf5 David Howells 2025-02-03 197 krb5_aead_ivsize(aead) * 2; 6c3c0e86c2acf5 David Howells 2025-02-03 198 buffer = kzalloc(bsize, GFP_NOFS); 6c3c0e86c2acf5 David Howells 2025-02-03 199 if (!buffer) 6c3c0e86c2acf5 David Howells 2025-02-03 200 return -ENOMEM; 6c3c0e86c2acf5 David Howells 2025-02-03 201 6c3c0e86c2acf5 David Howells 2025-02-03 202 req = buffer; 6c3c0e86c2acf5 David Howells 2025-02-03 203 iv = buffer + krb5_aead_size(aead); 6c3c0e86c2acf5 David Howells 2025-02-03 204 ad = buffer + krb5_aead_size(aead) + krb5_aead_ivsize(aead); 6c3c0e86c2acf5 David Howells 2025-02-03 205 6c3c0e86c2acf5 David Howells 2025-02-03 206 /* Insert the confounder into the buffer */ 6c3c0e86c2acf5 David Howells 2025-02-03 207 ret = -EFAULT; 6c3c0e86c2acf5 David Howells 2025-02-03 208 if (!preconfounded) { 6c3c0e86c2acf5 David Howells 2025-02-03 @209 get_random_bytes(buffer, krb5->conf_len); 6c3c0e86c2acf5 David Howells 2025-02-03 210 done = sg_pcopy_from_buffer(sg, nr_sg, buffer, krb5->conf_len, 6c3c0e86c2acf5 David Howells 2025-02-03 211 secure_offset); 6c3c0e86c2acf5 David Howells 2025-02-03 212 if (done != krb5->conf_len) 6c3c0e86c2acf5 David Howells 2025-02-03 213 goto error; 6c3c0e86c2acf5 David Howells 2025-02-03 214 } 6c3c0e86c2acf5 David Howells 2025-02-03 215 6c3c0e86c2acf5 David Howells 2025-02-03 216 /* We may need to pad out to the crypto blocksize. */ 6c3c0e86c2acf5 David Howells 2025-02-03 217 if (pad_len) { 6c3c0e86c2acf5 David Howells 2025-02-03 218 done = sg_zero_buffer(sg, nr_sg, pad_len, data_offset + data_len); 6c3c0e86c2acf5 David Howells 2025-02-03 219 if (done != pad_len) 6c3c0e86c2acf5 David Howells 2025-02-03 220 goto error; 6c3c0e86c2acf5 David Howells 2025-02-03 221 } 6c3c0e86c2acf5 David Howells 2025-02-03 222 6c3c0e86c2acf5 David Howells 2025-02-03 223 /* We need to include the starting IV in the hash. */ 6c3c0e86c2acf5 David Howells 2025-02-03 224 sg_init_table(bsg, 2); 6c3c0e86c2acf5 David Howells 2025-02-03 225 sg_set_buf(&bsg[0], ad, krb5_aead_ivsize(aead)); 6c3c0e86c2acf5 David Howells 2025-02-03 226 sg_chain(bsg, 2, sg); 6c3c0e86c2acf5 David Howells 2025-02-03 227 6c3c0e86c2acf5 David Howells 2025-02-03 228 /* Hash and encrypt the message. */ 6c3c0e86c2acf5 David Howells 2025-02-03 229 aead_request_set_tfm(req, aead); 6c3c0e86c2acf5 David Howells 2025-02-03 230 aead_request_set_callback(req, 0, NULL, NULL); 6c3c0e86c2acf5 David Howells 2025-02-03 231 aead_request_set_ad(req, krb5_aead_ivsize(aead)); 6c3c0e86c2acf5 David Howells 2025-02-03 232 aead_request_set_crypt(req, bsg, bsg, secure_len, iv); 6c3c0e86c2acf5 David Howells 2025-02-03 233 ret = crypto_aead_encrypt(req); 6c3c0e86c2acf5 David Howells 2025-02-03 234 if (ret < 0) 6c3c0e86c2acf5 David Howells 2025-02-03 235 goto error; 6c3c0e86c2acf5 David Howells 2025-02-03 236 6c3c0e86c2acf5 David Howells 2025-02-03 237 ret = secure_len + krb5->cksum_len; 6c3c0e86c2acf5 David Howells 2025-02-03 238 6c3c0e86c2acf5 David Howells 2025-02-03 239 error: 6c3c0e86c2acf5 David Howells 2025-02-03 240 kfree_sensitive(buffer); 6c3c0e86c2acf5 David Howells 2025-02-03 241 return ret; 6c3c0e86c2acf5 David Howells 2025-02-03 242 } 6c3c0e86c2acf5 David Howells 2025-02-03 243 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki