CC: [email protected] TO: David Howells <[email protected]> tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 7ce53e3a447bced7b85ed181c4d027e93c062e07 commit: 245500d853e9f20036cec7df4f6984ece4c6bf26 [6051/6654] rxrpc: Rewrite the client connection manager :::::: branch date: 26 hours ago :::::: commit date: 3 days ago config: i386-randconfig-m021-20200911 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 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]> smatch warnings: net/rxrpc/conn_client.c:494 rxrpc_maybe_add_conn() warn: inconsistent returns 'bundle->channel_lock'. net/rxrpc/conn_client.c:722 rxrpc_connect_call() error: 'bundle' dereferencing possible ERR_PTR() # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=245500d853e9f20036cec7df4f6984ece4c6bf26 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 245500d853e9f20036cec7df4f6984ece4c6bf26 vim +494 net/rxrpc/conn_client.c 45025bceef17ed David Howells 2016-08-24 459 45025bceef17ed David Howells 2016-08-24 460 /* 245500d853e9f2 David Howells 2020-07-01 461 * Add a connection to a bundle if there are no usable connections or we have 245500d853e9f2 David Howells 2020-07-01 462 * connections waiting for extra capacity. 45025bceef17ed David Howells 2016-08-24 463 */ 245500d853e9f2 David Howells 2020-07-01 464 static void rxrpc_maybe_add_conn(struct rxrpc_bundle *bundle, gfp_t gfp) 45025bceef17ed David Howells 2016-08-24 465 { 245500d853e9f2 David Howells 2020-07-01 466 struct rxrpc_call *call; 245500d853e9f2 David Howells 2020-07-01 467 int i, usable; 45025bceef17ed David Howells 2016-08-24 468 245500d853e9f2 David Howells 2020-07-01 469 _enter(""); 245500d853e9f2 David Howells 2020-07-01 470 245500d853e9f2 David Howells 2020-07-01 471 spin_lock(&bundle->channel_lock); 245500d853e9f2 David Howells 2020-07-01 472 245500d853e9f2 David Howells 2020-07-01 473 /* See if there are any usable connections. */ 245500d853e9f2 David Howells 2020-07-01 474 usable = 0; 245500d853e9f2 David Howells 2020-07-01 475 for (i = 0; i < ARRAY_SIZE(bundle->conns); i++) 245500d853e9f2 David Howells 2020-07-01 476 if (rxrpc_may_reuse_conn(bundle->conns[i])) 245500d853e9f2 David Howells 2020-07-01 477 usable++; 245500d853e9f2 David Howells 2020-07-01 478 245500d853e9f2 David Howells 2020-07-01 479 if (!usable && !list_empty(&bundle->waiting_calls)) { 245500d853e9f2 David Howells 2020-07-01 480 call = list_first_entry(&bundle->waiting_calls, 245500d853e9f2 David Howells 2020-07-01 481 struct rxrpc_call, chan_wait_link); 245500d853e9f2 David Howells 2020-07-01 482 if (test_bit(RXRPC_CALL_UPGRADE, &call->flags)) 245500d853e9f2 David Howells 2020-07-01 483 bundle->try_upgrade = true; 245500d853e9f2 David Howells 2020-07-01 484 } 245500d853e9f2 David Howells 2020-07-01 485 245500d853e9f2 David Howells 2020-07-01 486 if (!usable) 245500d853e9f2 David Howells 2020-07-01 487 goto alloc_conn; 245500d853e9f2 David Howells 2020-07-01 488 245500d853e9f2 David Howells 2020-07-01 489 spin_unlock(&bundle->channel_lock); 245500d853e9f2 David Howells 2020-07-01 490 _leave(""); 245500d853e9f2 David Howells 2020-07-01 491 return; 245500d853e9f2 David Howells 2020-07-01 492 245500d853e9f2 David Howells 2020-07-01 493 alloc_conn: 245500d853e9f2 David Howells 2020-07-01 @494 return rxrpc_add_conn_to_bundle(bundle, gfp); 45025bceef17ed David Howells 2016-08-24 495 } 45025bceef17ed David Howells 2016-08-24 496 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
