Re: [PATCH v4] drm/msm/dp: return correct connection status after suspend
by kernel test robot
Hi Kuogee,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on d1ea914925856d397b0b3241428f20b945e31434]
url: https://github.com/0day-ci/linux/commits/Kuogee-Hsieh/drm-msm-dp-return-c...
base: d1ea914925856d397b0b3241428f20b945e31434
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
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/0day-ci/linux/commit/8f18f61416789c76c57982b9c730c2a69...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Kuogee-Hsieh/drm-msm-dp-return-correct-connection-status-after-suspend/20201014-073608
git checkout 8f18f61416789c76c57982b9c730c2a69518203d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/msm/dp/dp_display.c: In function 'msm_dp_display_enable':
>> drivers/gpu/drm/msm/dp/dp_display.c:1382:15: error: 'ST_DISPLAY_OFF' undeclared (first use in this function)
1382 | if (state == ST_DISPLAY_OFF)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/msm/dp/dp_display.c:1382:15: note: each undeclared identifier is reported only once for each function it appears in
vim +/ST_DISPLAY_OFF +1382 drivers/gpu/drm/msm/dp/dp_display.c
1349
1350 int msm_dp_display_enable(struct msm_dp *dp, struct drm_encoder *encoder)
1351 {
1352 int rc = 0;
1353 struct dp_display_private *dp_display;
1354 u32 state;
1355
1356 dp_display = container_of(dp, struct dp_display_private, dp_display);
1357 if (!dp_display->dp_mode.drm_mode.clock) {
1358 DRM_ERROR("invalid params\n");
1359 return -EINVAL;
1360 }
1361
1362 mutex_lock(&dp_display->event_mutex);
1363
1364 dp_del_event(dp_display, EV_CONNECT_PENDING_TIMEOUT);
1365
1366 rc = dp_display_set_mode(dp, &dp_display->dp_mode);
1367 if (rc) {
1368 DRM_ERROR("Failed to perform a mode set, rc=%d\n", rc);
1369 mutex_unlock(&dp_display->event_mutex);
1370 return rc;
1371 }
1372
1373 rc = dp_display_prepare(dp);
1374 if (rc) {
1375 DRM_ERROR("DP display prepare failed, rc=%d\n", rc);
1376 mutex_unlock(&dp_display->event_mutex);
1377 return rc;
1378 }
1379
1380 state = dp_display->hpd_state;
1381
> 1382 if (state == ST_DISPLAY_OFF)
1383 dp_display_host_init(dp_display);
1384
1385 dp_display_enable(dp_display, 0);
1386
1387 rc = dp_display_post_enable(dp);
1388 if (rc) {
1389 DRM_ERROR("DP display post enable failed, rc=%d\n", rc);
1390 dp_display_disable(dp_display, 0);
1391 dp_display_unprepare(dp);
1392 }
1393
1394 if (state == ST_SUSPEND_PENDING)
1395 dp_add_event(dp_display, EV_IRQ_HPD_INT, 0, 0);
1396
1397 /* completed connection */
1398 dp_display->hpd_state = ST_CONNECTED;
1399
1400 mutex_unlock(&dp_display->event_mutex);
1401
1402 return rc;
1403 }
1404
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 11 months
[zx2c4-wireguard-linux:devel 1/1] lib/crypto/poly1305-selftest.c:1043:13: warning: no previous prototype for 'poly1305_selftest'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/zx2c4/wireguard-linux.git devel
head: e6b6fed3eca2aac22631d3f04e31597238de96f2
commit: e6b6fed3eca2aac22631d3f04e31597238de96f2 [1/1] crypto: poly1305 - add library selftests
config: s390-defconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
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://git.kernel.org/pub/scm/linux/kernel/git/zx2c4/wireguard-linux.git...
git remote add zx2c4-wireguard-linux https://git.kernel.org/pub/scm/linux/kernel/git/zx2c4/wireguard-linux.git
git fetch --no-tags zx2c4-wireguard-linux devel
git checkout e6b6fed3eca2aac22631d3f04e31597238de96f2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> lib/crypto/poly1305-selftest.c:1043:13: warning: no previous prototype for 'poly1305_selftest' [-Wmissing-prototypes]
1043 | bool __init poly1305_selftest(void)
| ^~~~~~~~~~~~~~~~~
vim +/poly1305_selftest +1043 lib/crypto/poly1305-selftest.c
1042
> 1043 bool __init poly1305_selftest(void)
1044 {
1045 bool success = true;
1046 size_t i, j;
1047
1048 for (i = 0; i < ARRAY_SIZE(poly1305_testvecs); ++i) {
1049 struct poly1305_desc_ctx poly1305;
1050 u8 out[POLY1305_DIGEST_SIZE];
1051
1052 memset(out, 0, sizeof(out));
1053 memset(&poly1305, 0, sizeof(poly1305));
1054 poly1305_init(&poly1305, poly1305_testvecs[i].key);
1055 poly1305_update(&poly1305, poly1305_testvecs[i].input,
1056 poly1305_testvecs[i].ilen);
1057 poly1305_final(&poly1305, out);
1058 if (memcmp(out, poly1305_testvecs[i].output,
1059 POLY1305_DIGEST_SIZE)) {
1060 pr_err("poly1305 self-test %zu: FAIL\n", i + 1);
1061 success = false;
1062 }
1063
1064 if (poly1305_testvecs[i].ilen <= 1)
1065 continue;
1066
1067 for (j = 1; j < poly1305_testvecs[i].ilen - 1; ++j) {
1068 memset(out, 0, sizeof(out));
1069 memset(&poly1305, 0, sizeof(poly1305));
1070 poly1305_init(&poly1305, poly1305_testvecs[i].key);
1071 poly1305_update(&poly1305, poly1305_testvecs[i].input, j);
1072 poly1305_update(&poly1305,
1073 poly1305_testvecs[i].input + j,
1074 poly1305_testvecs[i].ilen - j);
1075 poly1305_final(&poly1305, out);
1076 if (memcmp(out, poly1305_testvecs[i].output,
1077 POLY1305_DIGEST_SIZE)) {
1078 pr_err("poly1305 self-test %zu (split %zu): FAIL\n",
1079 i + 1, j);
1080 success = false;
1081 }
1082
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 11 months
[peterz-queue:x86/module 3/5] ld.lld: error: failed to open drivers/net/ethernet/mellanox/mlx4/mlx4_core.o: Cannot allocate memory
by kernel test robot
TO: Peter Zijlstra <peterz(a)infradead.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/module
head: da421daa5220b8f0a606357bc1981e6464f48715
commit: 86876eb6e0e9954e90595ecac8b203e31c7e2c53 [3/5] x86,module: Detect VMX vs SLD conflicts
config: x86_64-randconfig-a012-20201013 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project a324d8f964bf421fa7d8b882b0f64ead28c4149c)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue x86/module
git checkout 86876eb6e0e9954e90595ecac8b203e31c7e2c53
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
terminate called after throwing an instance of 'std::system_error'
what(): Resource temporarily unavailable
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
>> ld.lld: error: failed to open drivers/net/ethernet/mellanox/mlx4/mlx4_core.o: Cannot allocate memory
#0 0x0000560c1c0f9a7c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/cross/clang-a324d8f964/bin/lld+0x8b6a7c)
#1 0x0000560c1c0f78c4 llvm::sys::RunSignalHandlers() (/opt/cross/clang-a324d8f964/bin/lld+0x8b48c4)
#2 0x0000560c1c0f7a18 SignalHandler(int) (/opt/cross/clang-a324d8f964/bin/lld+0x8b4a18)
#3 0x00007fea6afed730 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x12730)
#4 0x00007fea6ab1f7bb raise (/lib/x86_64-linux-gnu/libc.so.6+0x377bb)
#5 0x00007fea6ab0a535 abort (/lib/x86_64-linux-gnu/libc.so.6+0x22535)
#6 0x00007fea6aed4983 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x8c983)
#7 0x00007fea6aeda8c6 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x928c6)
#8 0x00007fea6aeda901 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x92901)
#9 0x00007fea6aedab34 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x92b34)
#10 0x00007fea6aed6a55 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x8ea55)
#11 0x00007fea6af03dc9 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xbbdc9)
#12 0x0000560c1edc31f1 std::thread::_State_impl<std::thread::_Invoker<std::tuple<llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::ThreadPoolExecutor(llvm::ThreadPoolStrategy)::'lambda'()> > >::_M_run() (/opt/cross/clang-a324d8f964/bin/lld+0x35801f1)
#13 0x00007fea6af03b2f (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xbbb2f)
#14 0x00007fea6afe2fa3 start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x7fa3)
#15 0x00007fea6abe14cf clone (/lib/x86_64-linux-gnu/libc.so.6+0xf94cf)
/bin/bash: line 1: 165237 Aborted ld.lld -m elf_x86_64 -r -o drivers/net/ethernet/mellanox/mlx4/mlx4_core.o drivers/net/ethernet/mellanox/mlx4/alloc.o drivers/net/ethernet/mellanox/mlx4/catas.o drivers/net/ethernet/mellanox/mlx4/cmd.o drivers/net/ethernet/mellanox/mlx4/cq.o drivers/net/ethernet/mellanox/mlx4/eq.o drivers/net/ethernet/mellanox/mlx4/fw.o drivers/net/ethernet/mellanox/mlx4/fw_qos.o drivers/net/ethernet/mellanox/mlx4/icm.o drivers/net/ethernet/mellanox/mlx4/intf.o drivers/net/ethernet/mellanox/mlx4/main.o drivers/net/ethernet/mellanox/mlx4/mcg.o drivers/net/ethernet/mellanox/mlx4/mr.o drivers/net/ethernet/mellanox/mlx4/pd.o drivers/net/ethernet/mellanox/mlx4/port.o drivers/net/ethernet/mellanox/mlx4/profile.o drivers/net/ethernet/mellanox/mlx4/qp.o drivers/net/ethernet/mellanox/mlx4/reset.o drivers/net/ethernet/mellanox/mlx4/sense.o drivers/net/ethernet/mellanox/mlx4/srq.o drivers/net/ethernet/mellanox/mlx4/resource_tracker.o drivers/net/ethernet/mellanox/mlx4/crdump.o
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 11 months
[ti:ti-linux-5.4.y 2369/10773] drivers/crypto/sa2ul.c:473:31: sparse: sparse: cast to restricted __be32
by kernel test robot
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-linux-5.4.y
head: d420df326f77ad09bc0dabef95cea16c6f09eb99
commit: 5b8516f3bedb3e1c273e7747b6e4a85c6e47907a [2369/10773] crypto: sa2ul: Add crypto driver
config: arm64-randconfig-s031-20201013 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-rc1-dirty
git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-linux-5.4.y
git checkout 5b8516f3bedb3e1c273e7747b6e4a85c6e47907a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> drivers/crypto/sa2ul.c:473:31: sparse: sparse: cast to restricted __be32
>> drivers/crypto/sa2ul.c:473:31: sparse: sparse: cast to restricted __be32
>> drivers/crypto/sa2ul.c:473:31: sparse: sparse: cast to restricted __be32
>> drivers/crypto/sa2ul.c:473:31: sparse: sparse: cast to restricted __be32
>> drivers/crypto/sa2ul.c:473:31: sparse: sparse: cast to restricted __be32
>> drivers/crypto/sa2ul.c:473:31: sparse: sparse: cast to restricted __be32
>> drivers/crypto/sa2ul.c:902:35: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] @@ got restricted __be32 [usertype] @@
>> drivers/crypto/sa2ul.c:902:35: sparse: expected unsigned int [usertype]
>> drivers/crypto/sa2ul.c:902:35: sparse: got restricted __be32 [usertype]
>> drivers/crypto/sa2ul.c:1169:6: sparse: sparse: symbol 'sa_register_algos' was not declared. Should it be static?
>> drivers/crypto/sa2ul.c:1198:6: sparse: sparse: symbol 'sa_unregister_algos' was not declared. Should it be static?
drivers/crypto/sa2ul.c:503:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] @@ got restricted __be32 [usertype] @@
drivers/crypto/sa2ul.c:503:41: sparse: expected unsigned int [usertype]
drivers/crypto/sa2ul.c:503:41: sparse: got restricted __be32 [usertype]
drivers/crypto/sa2ul.c:364:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] @@ got restricted __be32 [usertype] @@
drivers/crypto/sa2ul.c:364:22: sparse: expected unsigned int [usertype]
drivers/crypto/sa2ul.c:364:22: sparse: got restricted __be32 [usertype]
vim +473 drivers/crypto/sa2ul.c
369
370 /* Format general command label */
371 static int sa_format_cmdl_gen(struct sa_cmdl_cfg *cfg, u8 *cmdl,
372 struct sa_cmdl_upd_info *upd_info)
373 {
374 u8 enc_offset = 0, auth_offset = 0, total = 0;
375 u8 enc_next_eng = SA_ENG_ID_OUTPORT2;
376 u8 auth_next_eng = SA_ENG_ID_OUTPORT2;
377 u32 *word_ptr = (u32 *)cmdl;
378 int i;
379
380 /* Clear the command label */
381 memzero_explicit(cmdl, (SA_MAX_CMDL_WORDS * sizeof(u32)));
382
383 /* Iniialize the command update structure */
384 memzero_explicit(upd_info, sizeof(*upd_info));
385
386 if (cfg->enc1st) {
387 if (cfg->enc_eng_id != SA_ENG_ID_NONE)
388 auth_offset = SA_CMDL_HEADER_SIZE_BYTES;
389
390 if (cfg->iv_size)
391 auth_offset += cfg->iv_size;
392
393 if (cfg->auth_eng_id != SA_ENG_ID_NONE)
394 enc_next_eng = cfg->auth_eng_id;
395 else
396 enc_next_eng = SA_ENG_ID_OUTPORT2;
397 } else {
398 if (cfg->auth_eng_id != SA_ENG_ID_NONE)
399 enc_offset = SA_CMDL_HEADER_SIZE_BYTES;
400
401 if (cfg->auth_subkey_len)
402 enc_offset += cfg->auth_subkey_len;
403
404 if (cfg->enc_eng_id != SA_ENG_ID_NONE)
405 auth_next_eng = cfg->enc_eng_id;
406 else
407 auth_next_eng = SA_ENG_ID_OUTPORT2;
408 }
409
410 if (cfg->enc_eng_id != SA_ENG_ID_NONE) {
411 upd_info->flags |= SA_CMDL_UPD_ENC;
412 upd_info->enc_size.index = enc_offset >> 2;
413 upd_info->enc_offset.index = upd_info->enc_size.index + 1;
414 /* Encryption command label */
415 cmdl[enc_offset + SA_CMDL_OFFSET_NESC] = enc_next_eng;
416
417 /* Encryption modes requiring IV */
418 if (cfg->iv_size) {
419 upd_info->flags |= SA_CMDL_UPD_ENC_IV;
420 upd_info->enc_iv.index =
421 (enc_offset + SA_CMDL_HEADER_SIZE_BYTES) >> 2;
422 upd_info->enc_iv.size = cfg->iv_size;
423
424 cmdl[enc_offset + SA_CMDL_OFFSET_LABEL_LEN] =
425 SA_CMDL_HEADER_SIZE_BYTES + cfg->iv_size;
426
427 cmdl[enc_offset + SA_CMDL_OFFSET_OPTION_CTRL1] =
428 (SA_CTX_ENC_AUX2_OFFSET | (cfg->iv_size >> 3));
429 enc_offset += SA_CMDL_HEADER_SIZE_BYTES + cfg->iv_size;
430 } else {
431 cmdl[enc_offset + SA_CMDL_OFFSET_LABEL_LEN] =
432 SA_CMDL_HEADER_SIZE_BYTES;
433 enc_offset += SA_CMDL_HEADER_SIZE_BYTES;
434 }
435 }
436
437 if (cfg->auth_eng_id != SA_ENG_ID_NONE) {
438 upd_info->flags |= SA_CMDL_UPD_AUTH;
439 upd_info->auth_size.index = auth_offset >> 2;
440 upd_info->auth_offset.index = upd_info->auth_size.index + 1;
441 cmdl[auth_offset + SA_CMDL_OFFSET_NESC] = auth_next_eng;
442
443 /* Algorithm with subkeys */
444 if (cfg->aalg == SA_AALG_ID_AES_XCBC ||
445 cfg->aalg == SA_AALG_ID_CMAC) {
446 upd_info->flags |= SA_CMDL_UPD_AUX_KEY;
447 upd_info->aux_key_info.index =
448 (auth_offset + SA_CMDL_HEADER_SIZE_BYTES) >> 2;
449 cmdl[auth_offset + SA_CMDL_OFFSET_LABEL_LEN] =
450 SA_CMDL_HEADER_SIZE_BYTES +
451 cfg->auth_subkey_len;
452 cmdl[auth_offset + SA_CMDL_OFFSET_OPTION_CTRL1] =
453 (SA_CTX_ENC_AUX1_OFFSET |
454 (cfg->auth_subkey_len >> 3));
455
456 auth_offset += SA_CMDL_HEADER_SIZE_BYTES +
457 cfg->auth_subkey_len;
458 } else {
459 cmdl[auth_offset + SA_CMDL_OFFSET_LABEL_LEN] =
460 SA_CMDL_HEADER_SIZE_BYTES;
461 auth_offset += SA_CMDL_HEADER_SIZE_BYTES;
462 }
463 }
464
465 if (cfg->enc1st)
466 total = auth_offset;
467 else
468 total = enc_offset;
469
470 total = roundup(total, 8);
471
472 for (i = 0; i < total / 4; i++)
> 473 word_ptr[i] = be32_to_cpu(word_ptr[i]);
474
475 return total;
476 }
477
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 11 months
[linux-next:master 9016/14891] drivers/virt/nitro_enclaves/ne_misc_dev.c:1511:14: sparse: sparse: incorrect type in assignment (different base types)
by kernel test robot
Hi Andra,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: f2fb1afc57304f9dd68c20a08270e287470af2eb
commit: 0f5c7b7484394e26afc07c063290fb43c4ba42c7 [9016/14891] nitro_enclaves: Add Makefile for the Nitro Enclaves driver
config: i386-randconfig-s001-20201014 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-rc1-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
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 0f5c7b7484394e26afc07c063290fb43c4ba42c7
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> drivers/virt/nitro_enclaves/ne_misc_dev.c:1511:14: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __poll_t [usertype] mask @@ got int @@
>> drivers/virt/nitro_enclaves/ne_misc_dev.c:1511:14: sparse: expected restricted __poll_t [usertype] mask
>> drivers/virt/nitro_enclaves/ne_misc_dev.c:1511:14: sparse: got int
vim +1511 drivers/virt/nitro_enclaves/ne_misc_dev.c
9c8eb50fe9e2bb Andra Paraschiv 2020-09-21 1491
38907e124088b2 Andra Paraschiv 2020-09-21 1492 /**
38907e124088b2 Andra Paraschiv 2020-09-21 1493 * ne_enclave_poll() - Poll functionality used for enclave out-of-band events.
38907e124088b2 Andra Paraschiv 2020-09-21 1494 * @file: File associated with this poll function.
38907e124088b2 Andra Paraschiv 2020-09-21 1495 * @wait: Poll table data structure.
38907e124088b2 Andra Paraschiv 2020-09-21 1496 *
38907e124088b2 Andra Paraschiv 2020-09-21 1497 * Context: Process context.
38907e124088b2 Andra Paraschiv 2020-09-21 1498 * Return:
38907e124088b2 Andra Paraschiv 2020-09-21 1499 * * Poll mask.
38907e124088b2 Andra Paraschiv 2020-09-21 1500 */
38907e124088b2 Andra Paraschiv 2020-09-21 1501 static __poll_t ne_enclave_poll(struct file *file, poll_table *wait)
38907e124088b2 Andra Paraschiv 2020-09-21 1502 {
38907e124088b2 Andra Paraschiv 2020-09-21 1503 __poll_t mask = 0;
38907e124088b2 Andra Paraschiv 2020-09-21 1504 struct ne_enclave *ne_enclave = file->private_data;
38907e124088b2 Andra Paraschiv 2020-09-21 1505
38907e124088b2 Andra Paraschiv 2020-09-21 1506 poll_wait(file, &ne_enclave->eventq, wait);
38907e124088b2 Andra Paraschiv 2020-09-21 1507
38907e124088b2 Andra Paraschiv 2020-09-21 1508 if (!ne_enclave->has_event)
38907e124088b2 Andra Paraschiv 2020-09-21 1509 return mask;
38907e124088b2 Andra Paraschiv 2020-09-21 1510
38907e124088b2 Andra Paraschiv 2020-09-21 @1511 mask = POLLHUP;
38907e124088b2 Andra Paraschiv 2020-09-21 1512
38907e124088b2 Andra Paraschiv 2020-09-21 1513 return mask;
38907e124088b2 Andra Paraschiv 2020-09-21 1514 }
38907e124088b2 Andra Paraschiv 2020-09-21 1515
:::::: The code at line 1511 was first introduced by commit
:::::: 38907e124088b2f5b176acdf3d89926c09d3206a nitro_enclaves: Add logic for creating an enclave VM
:::::: TO: Andra Paraschiv <andraprs(a)amazon.com>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 11 months
[block:tif-task_work 6/32] arch/arm/kernel/entry-common.S:94: Error: invalid constant (1ff) after fixup
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git tif-task_work
head: d602372ff9f2e4aa14529819ce4f742dcdbcc466
commit: a301be6bf07eaf5f650906cfb8ad788dab922956 [6/32] arm: add support for TIF_NOTIFY_SIGNAL
config: arm-randconfig-r015-20201013 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
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://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/com...
git remote add block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
git fetch --no-tags block tif-task_work
git checkout a301be6bf07eaf5f650906cfb8ad788dab922956
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/arm/kernel/entry-common.S: Assembler messages:
>> arch/arm/kernel/entry-common.S:94: Error: invalid constant (1ff) after fixup
vim +94 arch/arm/kernel/entry-common.S
^1da177e4c3f41 Linus Torvalds 2005-04-16 67
3302caddf10ad5 Russell King 2015-08-20 68 /* Ok, we need to do extra processing, enter the slow path. */
^1da177e4c3f41 Linus Torvalds 2005-04-16 69 fast_work_pending:
^1da177e4c3f41 Linus Torvalds 2005-04-16 70 str r0, [sp, #S_R0+S_OFF]! @ returned r0
3302caddf10ad5 Russell King 2015-08-20 71 /* fall through to work_pending */
3302caddf10ad5 Russell King 2015-08-20 72 #else
3302caddf10ad5 Russell King 2015-08-20 73 /*
b74406f37737c9 Mathieu Desnoyers 2018-06-02 74 * The "replacement" ret_fast_syscall for when tracing, context tracking,
b74406f37737c9 Mathieu Desnoyers 2018-06-02 75 * or rseq debug is enabled. As we will need to call out to some C functions,
b74406f37737c9 Mathieu Desnoyers 2018-06-02 76 * we save r0 first to avoid needing to save registers around each C function
b74406f37737c9 Mathieu Desnoyers 2018-06-02 77 * call.
3302caddf10ad5 Russell King 2015-08-20 78 */
3302caddf10ad5 Russell King 2015-08-20 79 ret_fast_syscall:
afc9f65e01cd11 Vincent Whitchurch 2018-07-13 80 __ret_fast_syscall:
3302caddf10ad5 Russell King 2015-08-20 81 UNWIND(.fnstart )
3302caddf10ad5 Russell King 2015-08-20 82 UNWIND(.cantunwind )
3302caddf10ad5 Russell King 2015-08-20 83 str r0, [sp, #S_R0 + S_OFF]! @ save returned r0
b74406f37737c9 Mathieu Desnoyers 2018-06-02 84 #if IS_ENABLED(CONFIG_DEBUG_RSEQ)
b74406f37737c9 Mathieu Desnoyers 2018-06-02 85 /* do_rseq_syscall needs interrupts enabled. */
b74406f37737c9 Mathieu Desnoyers 2018-06-02 86 mov r0, sp @ 'regs'
b74406f37737c9 Mathieu Desnoyers 2018-06-02 87 bl do_rseq_syscall
b74406f37737c9 Mathieu Desnoyers 2018-06-02 88 #endif
3302caddf10ad5 Russell King 2015-08-20 89 disable_irq_notrace @ disable interrupts
e33f8d32677fa4 Thomas Garnier 2017-09-07 90 ldr r2, [tsk, #TI_ADDR_LIMIT]
e33f8d32677fa4 Thomas Garnier 2017-09-07 91 cmp r2, #TASK_SIZE
e33f8d32677fa4 Thomas Garnier 2017-09-07 92 blne addr_limit_check_failed
3302caddf10ad5 Russell King 2015-08-20 93 ldr r1, [tsk, #TI_FLAGS] @ re-check for syscall tracing
2404269bc4e77a Thomas Garnier 2017-09-07 @94 tst r1, #_TIF_SYSCALL_WORK | _TIF_WORK_MASK
3302caddf10ad5 Russell King 2015-08-20 95 beq no_work_pending
3302caddf10ad5 Russell King 2015-08-20 96 UNWIND(.fnend )
3302caddf10ad5 Russell King 2015-08-20 97 ENDPROC(ret_fast_syscall)
3302caddf10ad5 Russell King 2015-08-20 98
3302caddf10ad5 Russell King 2015-08-20 99 /* Slower path - fall through to work_pending */
3302caddf10ad5 Russell King 2015-08-20 100 #endif
3302caddf10ad5 Russell King 2015-08-20 101
3302caddf10ad5 Russell King 2015-08-20 102 tst r1, #_TIF_SYSCALL_WORK
3302caddf10ad5 Russell King 2015-08-20 103 bne __sys_trace_return_nosave
3302caddf10ad5 Russell King 2015-08-20 104 slow_work_pending:
^1da177e4c3f41 Linus Torvalds 2005-04-16 105 mov r0, sp @ 'regs'
^1da177e4c3f41 Linus Torvalds 2005-04-16 106 mov r2, why @ 'syscall'
0a267fa6a15d41 Al Viro 2012-07-19 107 bl do_work_pending
6628521784d1da Al Viro 2012-07-19 108 cmp r0, #0
81783786d5cf4a Al Viro 2012-07-19 109 beq no_work_pending
6628521784d1da Al Viro 2012-07-19 110 movlt scno, #(__NR_restart_syscall - __NR_SYSCALL_BASE)
81783786d5cf4a Al Viro 2012-07-19 111 ldmia sp, {r0 - r6} @ have to reload r0 - r6
81783786d5cf4a Al Viro 2012-07-19 112 b local_restart @ ... and off we go
e83dd377002191 Drew Richardson 2015-08-06 113 ENDPROC(ret_fast_syscall)
81783786d5cf4a Al Viro 2012-07-19 114
:::::: The code at line 94 was first introduced by commit
:::::: 2404269bc4e77a67875c8db6667be34c9913c96e Revert "arm/syscalls: Check address limit on user-mode return"
:::::: TO: Thomas Garnier <thgarnie(a)google.com>
:::::: CC: Thomas Gleixner <tglx(a)linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 11 months
Re: [PATCH net-next] cxgb4: handle 4-tuple PEDIT to NAT mode translation
by kernel test robot
In-Reply-To: <20201013093129.321-1-herat(a)chelsio.com>
References: <20201013093129.321-1-herat(a)chelsio.com>
TO: Herat Ramani <herat(a)chelsio.com>
TO: netdev(a)vger.kernel.org
TO: davem(a)davemloft.net
CC: rahul(a)chelsio.com
CC: dt(a)chelsio.com
CC: herat(a)chelsio.com
Hi Herat,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Herat-Ramani/cxgb4-handle-4-tupl...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git ccdf7fae3afaeaf0e5dd03311b86ffa56adf85ae
config: x86_64-randconfig-a016-20201013 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project a324d8f964bf421fa7d8b882b0f64ead28c4149c)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/dae26c740bbcf8912fc1d47ddec65f5f0...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Herat-Ramani/cxgb4-handle-4-tuple-PEDIT-to-NAT-mode-translation/20201013-175756
git checkout dae26c740bbcf8912fc1d47ddec65f5f03d269a2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
terminate called after throwing an instance of 'std::system_error'
what(): Resource temporarily unavailable
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
>> ld.lld: error: failed to open net/bluetooth/bluetooth.o: Cannot allocate memory
#0 0x000055e163c73a7c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/cross/clang-a324d8f964/bin/lld+0x8b6a7c)
#1 0x000055e163c718c4 llvm::sys::RunSignalHandlers() (/opt/cross/clang-a324d8f964/bin/lld+0x8b48c4)
#2 0x000055e163c71a18 SignalHandler(int) (/opt/cross/clang-a324d8f964/bin/lld+0x8b4a18)
#3 0x00007f7d68a3b730 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x12730)
#4 0x00007f7d6856d7bb raise (/lib/x86_64-linux-gnu/libc.so.6+0x377bb)
#5 0x00007f7d68558535 abort (/lib/x86_64-linux-gnu/libc.so.6+0x22535)
#6 0x00007f7d68922983 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x8c983)
#7 0x00007f7d689288c6 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x928c6)
#8 0x00007f7d68928901 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x92901)
#9 0x00007f7d68928b34 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x92b34)
#10 0x00007f7d68924a55 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x8ea55)
#11 0x00007f7d68951dc9 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xbbdc9)
#12 0x000055e16693d1f1 std::thread::_State_impl<std::thread::_Invoker<std::tuple<llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::ThreadPoolExecutor(llvm::ThreadPoolStrategy)::'lambda'()> > >::_M_run() (/opt/cross/clang-a324d8f964/bin/lld+0x35801f1)
#13 0x00007f7d68951b2f (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xbbb2f)
#14 0x00007f7d68a30fa3 start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x7fa3)
#15 0x00007f7d6862f4cf clone (/lib/x86_64-linux-gnu/libc.so.6+0xf94cf)
/bin/bash: line 1: 54721 Aborted ld.lld -m elf_x86_64 -r -o net/bluetooth/bluetooth.o net/bluetooth/af_bluetooth.o net/bluetooth/hci_core.o net/bluetooth/hci_conn.o net/bluetooth/hci_event.o net/bluetooth/mgmt.o net/bluetooth/hci_sock.o net/bluetooth/hci_sysfs.o net/bluetooth/l2cap_core.o net/bluetooth/l2cap_sock.o net/bluetooth/smp.o net/bluetooth/lib.o net/bluetooth/ecdh_helper.o net/bluetooth/hci_request.o net/bluetooth/mgmt_util.o net/bluetooth/mgmt_config.o net/bluetooth/leds.o net/bluetooth/msft.o net/bluetooth/selftest.o
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 11 months