CC: [email protected]
CC: [email protected]
TO: Ilya Dryomov <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   f80ef9e49fdfbfbc4197711230098b90e6b05a7e
commit: 2f713615ddd9d805b6c5e79c52e0e11af99d2bf1 libceph: move msgr1 protocol 
implementation to its own file
date:   12 months ago
:::::: branch date: 8 hours ago
:::::: commit date: 12 months ago
config: i386-randconfig-m021-20211206 
(https://download.01.org/0day-ci/archive/20211207/[email protected]/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

New smatch warnings:
net/ceph/messenger_v1.c:346 get_connect_authorizer() error: uninitialized 
symbol 'auth_proto'.

Old smatch warnings:
net/ceph/messenger_v1.c:1111 read_partial_message() error: we previously 
assumed 'con->in_msg' could be null (see line 1090)

vim +/auth_proto +346 net/ceph/messenger_v1.c

2f713615ddd9d80 Ilya Dryomov 2020-11-12  324  
2f713615ddd9d80 Ilya Dryomov 2020-11-12  325  /*
2f713615ddd9d80 Ilya Dryomov 2020-11-12  326   * Connection negotiation.
2f713615ddd9d80 Ilya Dryomov 2020-11-12  327   */
2f713615ddd9d80 Ilya Dryomov 2020-11-12  328  
2f713615ddd9d80 Ilya Dryomov 2020-11-12  329  static int 
get_connect_authorizer(struct ceph_connection *con)
2f713615ddd9d80 Ilya Dryomov 2020-11-12  330  {
2f713615ddd9d80 Ilya Dryomov 2020-11-12  331    struct ceph_auth_handshake 
*auth;
2f713615ddd9d80 Ilya Dryomov 2020-11-12  332    int auth_proto;
2f713615ddd9d80 Ilya Dryomov 2020-11-12  333  
2f713615ddd9d80 Ilya Dryomov 2020-11-12  334    if (!con->ops->get_authorizer) {
2f713615ddd9d80 Ilya Dryomov 2020-11-12  335            con->auth = NULL;
2f713615ddd9d80 Ilya Dryomov 2020-11-12  336            
con->out_connect.authorizer_protocol = CEPH_AUTH_UNKNOWN;
2f713615ddd9d80 Ilya Dryomov 2020-11-12  337            
con->out_connect.authorizer_len = 0;
2f713615ddd9d80 Ilya Dryomov 2020-11-12  338            return 0;
2f713615ddd9d80 Ilya Dryomov 2020-11-12  339    }
2f713615ddd9d80 Ilya Dryomov 2020-11-12  340  
2f713615ddd9d80 Ilya Dryomov 2020-11-12  341    auth = 
con->ops->get_authorizer(con, &auth_proto, con->auth_retry);
2f713615ddd9d80 Ilya Dryomov 2020-11-12  342    if (IS_ERR(auth))
2f713615ddd9d80 Ilya Dryomov 2020-11-12  343            return PTR_ERR(auth);
2f713615ddd9d80 Ilya Dryomov 2020-11-12  344  
2f713615ddd9d80 Ilya Dryomov 2020-11-12  345    con->auth = auth;
2f713615ddd9d80 Ilya Dryomov 2020-11-12 @346    
con->out_connect.authorizer_protocol = cpu_to_le32(auth_proto);
2f713615ddd9d80 Ilya Dryomov 2020-11-12  347    con->out_connect.authorizer_len 
= cpu_to_le32(auth->authorizer_buf_len);
2f713615ddd9d80 Ilya Dryomov 2020-11-12  348    return 0;
2f713615ddd9d80 Ilya Dryomov 2020-11-12  349  }
2f713615ddd9d80 Ilya Dryomov 2020-11-12  350  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to