Hi Enzo, [FYI, it's a private test report for your RFC patch.] [auto build test WARNING on cifs/for-next] [also build test WARNING on linus/master v6.0-rc3 next-20220830] [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/Enzo-Matsumiya/cifs-introduce-support-for-AES-GMAC-signing/20220830-053851 base: git://git.samba.org/sfrench/cifs-2.6.git for-next config: i386-randconfig-a002 compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/df3d3cd4e3d4e8cc9a7371d57282570d2c839664 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Enzo-Matsumiya/cifs-introduce-support-for-AES-GMAC-signing/20220830-053851 git checkout df3d3cd4e3d4e8cc9a7371d57282570d2c839664 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash fs/cifs/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> fs/cifs/smb2transport.c:79:5: warning: no previous prototype for function 'smb2_get_sign_key' [-Wmissing-prototypes] int smb2_get_sign_key(__u64 ses_id, struct TCP_Server_Info *server, u8 *key) ^ fs/cifs/smb2transport.c:79:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int smb2_get_sign_key(__u64 ses_id, struct TCP_Server_Info *server, u8 *key) ^ static >> fs/cifs/smb2transport.c:666:21: warning: result of comparison of constant 18446744073709551615 with expression of type '__le16' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare] (shdr->Command == 0xFFFFFFFFFFFFFFFF) || /* MS-SMB2 3.2.5.1.3 */ ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~ >> fs/cifs/smb2transport.c:912:5: warning: no previous prototype for function 'smb311_aes_gmac_alloc' [-Wmissing-prototypes] int smb311_aes_gmac_alloc(struct crypto_aead **tfm) ^ fs/cifs/smb2transport.c:912:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int smb311_aes_gmac_alloc(struct crypto_aead **tfm) ^ static 3 warnings generated. vim +/smb2_get_sign_key +79 fs/cifs/smb2transport.c 5fcd7f3f966f37f Aurelien Aptel 2018-02-16 78 d70e9fa55884760 Aurelien Aptel 2019-09-20 @79 int smb2_get_sign_key(__u64 ses_id, struct TCP_Server_Info *server, u8 *key) d70e9fa55884760 Aurelien Aptel 2019-09-20 80 { d70e9fa55884760 Aurelien Aptel 2019-09-20 81 struct cifs_chan *chan; d70e9fa55884760 Aurelien Aptel 2019-09-20 82 struct cifs_ses *ses = NULL; cc95b6772790c47 Aurelien Aptel 2020-02-06 83 struct TCP_Server_Info *it = NULL; d70e9fa55884760 Aurelien Aptel 2019-09-20 84 int i; d70e9fa55884760 Aurelien Aptel 2019-09-20 85 int rc = 0; d70e9fa55884760 Aurelien Aptel 2019-09-20 86 d70e9fa55884760 Aurelien Aptel 2019-09-20 87 spin_lock(&cifs_tcp_ses_lock); d70e9fa55884760 Aurelien Aptel 2019-09-20 88 cc95b6772790c47 Aurelien Aptel 2020-02-06 89 list_for_each_entry(it, &cifs_tcp_ses_list, tcp_ses_list) { cc95b6772790c47 Aurelien Aptel 2020-02-06 90 list_for_each_entry(ses, &it->smb_ses_list, smb_ses_list) { d70e9fa55884760 Aurelien Aptel 2019-09-20 91 if (ses->Suid == ses_id) d70e9fa55884760 Aurelien Aptel 2019-09-20 92 goto found; d70e9fa55884760 Aurelien Aptel 2019-09-20 93 } d70e9fa55884760 Aurelien Aptel 2019-09-20 94 } d70e9fa55884760 Aurelien Aptel 2019-09-20 95 cifs_server_dbg(VFS, "%s: Could not find session 0x%llx\n", d70e9fa55884760 Aurelien Aptel 2019-09-20 96 __func__, ses_id); d70e9fa55884760 Aurelien Aptel 2019-09-20 97 rc = -ENOENT; d70e9fa55884760 Aurelien Aptel 2019-09-20 98 goto out; d70e9fa55884760 Aurelien Aptel 2019-09-20 99 d70e9fa55884760 Aurelien Aptel 2019-09-20 100 found: 88b024f556fcd5b Shyam Prasad N 2021-11-19 101 spin_lock(&ses->chan_lock); f486ef8e2003f6c Shyam Prasad N 2021-07-19 102 if (cifs_chan_needs_reconnect(ses, server) && f486ef8e2003f6c Shyam Prasad N 2021-07-19 103 !CIFS_ALL_CHANS_NEED_RECONNECT(ses)) { d70e9fa55884760 Aurelien Aptel 2019-09-20 104 /* d70e9fa55884760 Aurelien Aptel 2019-09-20 105 * If we are in the process of binding a new channel d70e9fa55884760 Aurelien Aptel 2019-09-20 106 * to an existing session, use the master connection d70e9fa55884760 Aurelien Aptel 2019-09-20 107 * session key d70e9fa55884760 Aurelien Aptel 2019-09-20 108 */ d70e9fa55884760 Aurelien Aptel 2019-09-20 109 memcpy(key, ses->smb3signingkey, SMB3_SIGN_KEY_SIZE); 88b024f556fcd5b Shyam Prasad N 2021-11-19 110 spin_unlock(&ses->chan_lock); d70e9fa55884760 Aurelien Aptel 2019-09-20 111 goto out; d70e9fa55884760 Aurelien Aptel 2019-09-20 112 } d70e9fa55884760 Aurelien Aptel 2019-09-20 113 d70e9fa55884760 Aurelien Aptel 2019-09-20 114 /* d70e9fa55884760 Aurelien Aptel 2019-09-20 115 * Otherwise, use the channel key. d70e9fa55884760 Aurelien Aptel 2019-09-20 116 */ d70e9fa55884760 Aurelien Aptel 2019-09-20 117 d70e9fa55884760 Aurelien Aptel 2019-09-20 118 for (i = 0; i < ses->chan_count; i++) { d70e9fa55884760 Aurelien Aptel 2019-09-20 119 chan = ses->chans + i; d70e9fa55884760 Aurelien Aptel 2019-09-20 120 if (chan->server == server) { d70e9fa55884760 Aurelien Aptel 2019-09-20 121 memcpy(key, chan->signkey, SMB3_SIGN_KEY_SIZE); 88b024f556fcd5b Shyam Prasad N 2021-11-19 122 spin_unlock(&ses->chan_lock); d70e9fa55884760 Aurelien Aptel 2019-09-20 123 goto out; d70e9fa55884760 Aurelien Aptel 2019-09-20 124 } d70e9fa55884760 Aurelien Aptel 2019-09-20 125 } 88b024f556fcd5b Shyam Prasad N 2021-11-19 126 spin_unlock(&ses->chan_lock); d70e9fa55884760 Aurelien Aptel 2019-09-20 127 d70e9fa55884760 Aurelien Aptel 2019-09-20 128 cifs_dbg(VFS, d70e9fa55884760 Aurelien Aptel 2019-09-20 129 "%s: Could not find channel signing key for session 0x%llx\n", d70e9fa55884760 Aurelien Aptel 2019-09-20 130 __func__, ses_id); d70e9fa55884760 Aurelien Aptel 2019-09-20 131 rc = -ENOENT; d70e9fa55884760 Aurelien Aptel 2019-09-20 132 d70e9fa55884760 Aurelien Aptel 2019-09-20 133 out: d70e9fa55884760 Aurelien Aptel 2019-09-20 134 spin_unlock(&cifs_tcp_ses_lock); d70e9fa55884760 Aurelien Aptel 2019-09-20 135 return rc; d70e9fa55884760 Aurelien Aptel 2019-09-20 136 } d70e9fa55884760 Aurelien Aptel 2019-09-20 137 -- 0-DAY CI Kernel Test Service https://01.org/lkp