[kees:for-next/lkdtm 11/12] drivers/misc/lkdtm/fortify.c:28 lkdtm_FORTIFIED_OBJECT() error: memcmp() '&target[1]' too small (10 vs 11)
by kernel test robot
CC: kbuild-all(a)lists.01.org
TO: Kees Cook <keescook(a)chromium.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/lkdtm
head: 6774078fd3d20a29c0c60b8d507c99c65a57e451
commit: aa6195344df910c48627795856bae05387272857 [11/12] lkdtm/fortify: Consolidate FORTIFY_SOURCE tests
:::::: branch date: 25 hours ago
:::::: commit date: 25 hours ago
config: microblaze-randconfig-m031-20210628 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
smatch warnings:
drivers/misc/lkdtm/fortify.c:28 lkdtm_FORTIFIED_OBJECT() error: memcmp() '&target[1]' too small (10 vs 11)
vim +28 drivers/misc/lkdtm/fortify.c
aa6195344df910 Kees Cook 2021-06-29 12
aa6195344df910 Kees Cook 2021-06-29 13 void lkdtm_FORTIFIED_OBJECT(void)
aa6195344df910 Kees Cook 2021-06-29 14 {
aa6195344df910 Kees Cook 2021-06-29 15 struct target {
aa6195344df910 Kees Cook 2021-06-29 16 char a[10];
aa6195344df910 Kees Cook 2021-06-29 17 } target[2] = {};
aa6195344df910 Kees Cook 2021-06-29 18 /*
aa6195344df910 Kees Cook 2021-06-29 19 * Using volatile prevents the compiler from determining the value of
aa6195344df910 Kees Cook 2021-06-29 20 * 'size' at compile time. Without that, we would get a compile error
aa6195344df910 Kees Cook 2021-06-29 21 * rather than a runtime error.
aa6195344df910 Kees Cook 2021-06-29 22 */
aa6195344df910 Kees Cook 2021-06-29 23 volatile int size = 11;
aa6195344df910 Kees Cook 2021-06-29 24
aa6195344df910 Kees Cook 2021-06-29 25 pr_info("trying to read past the end of a struct\n");
aa6195344df910 Kees Cook 2021-06-29 26
aa6195344df910 Kees Cook 2021-06-29 27 /* Store result to global to prevent the code from being eliminated */
aa6195344df910 Kees Cook 2021-06-29 @28 fortify_scratch_space = memcmp(&target[0], &target[1], size);
aa6195344df910 Kees Cook 2021-06-29 29
aa6195344df910 Kees Cook 2021-06-29 30 pr_err("FAIL: fortify did not block an object overread!\n");
aa6195344df910 Kees Cook 2021-06-29 31 pr_expected_config(CONFIG_FORTIFY_SOURCE);
aa6195344df910 Kees Cook 2021-06-29 32 }
aa6195344df910 Kees Cook 2021-06-29 33
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
12 months
Re: [PATCH v5 3/3] dm mpath: add CONFIG_DM_MULTIPATH_SG_IO - failover for SG_IO
by kernel test robot
CC: kbuild-all(a)lists.01.org
In-Reply-To: <20210628151558.2289-4-mwilck(a)suse.com>
References: <20210628151558.2289-4-mwilck(a)suse.com>
TO: mwilck(a)suse.com
TO: Mike Snitzer <snitzer(a)redhat.com>
TO: Alasdair G Kergon <agk(a)redhat.com>
TO: Bart Van Assche <Bart.VanAssche(a)sandisk.com>
TO: "Martin K. Petersen" <martin.petersen(a)oracle.com>
TO: linux-scsi(a)vger.kernel.org
TO: dm-devel(a)redhat.com
TO: Hannes Reinecke <hare(a)suse.de>
TO: Christoph Hellwig <hch(a)lst.de>
CC: Daniel Wagner <dwagner(a)suse.de>
CC: linux-block(a)vger.kernel.org
Hi,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on mkp-scsi/for-next]
[also build test WARNING on scsi/for-next]
[cannot apply to dm/for-next block/for-next song-md/md-next v5.13 next-20210630]
[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]
url: https://github.com/0day-ci/linux/commits/mwilck-suse-com/scsi-dm-dm_blk_i...
base: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago
config: x86_64-randconfig-b001-20210630 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d21d5472501460933e78aead04cf59579025ba4)
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
# apt-get install iwyu # include-what-you-use
# https://github.com/0day-ci/linux/commit/c6258b84ddc2128c365356dc189407083...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review mwilck-suse-com/scsi-dm-dm_blk_ioctl-implement-failover-for-SG_IO-on-dm-multipath/20210628-232212
git checkout c6258b84ddc2128c365356dc189407083935c791
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross C=1 CHECK=iwyu O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/md/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
iwyu warnings: (new ones prefixed by >>)
drivers/md/dm.c:17:1: iwyu: warning: superfluous #include <linux/blkpg.h>
drivers/md/dm.c:31:1: iwyu: warning: superfluous #include <linux/keyslot-manager.h>
drivers/md/dm.c:19:1: iwyu: warning: superfluous #include <linux/mempool.h>
>> drivers/md/dm.c:32:1: iwyu: warning: superfluous #include <scsi/sg.h>
vim +32 drivers/md/dm.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 11
^1da177e4c3f41 Linus Torvalds 2005-04-16 12 #include <linux/init.h>
^1da177e4c3f41 Linus Torvalds 2005-04-16 13 #include <linux/module.h>
48c9c27b8bcd2a Arjan van de Ven 2006-03-27 14 #include <linux/mutex.h>
6958c1c640af8c Mikulas Patocka 2020-07-08 15 #include <linux/sched/mm.h>
174cd4b1e5fbd0 Ingo Molnar 2017-02-02 16 #include <linux/sched/signal.h>
^1da177e4c3f41 Linus Torvalds 2005-04-16 17 #include <linux/blkpg.h>
^1da177e4c3f41 Linus Torvalds 2005-04-16 18 #include <linux/bio.h>
^1da177e4c3f41 Linus Torvalds 2005-04-16 19 #include <linux/mempool.h>
f26c5719b2d7b0 Dan Williams 2017-04-12 20 #include <linux/dax.h>
^1da177e4c3f41 Linus Torvalds 2005-04-16 21 #include <linux/slab.h>
^1da177e4c3f41 Linus Torvalds 2005-04-16 22 #include <linux/idr.h>
7e026c8c0a4200 Dan Williams 2017-05-29 23 #include <linux/uio.h>
3ac51e741a46af Darrick J. Wong 2006-03-27 24 #include <linux/hdreg.h>
3f77316de0ec0f Kiyoshi Ueda 2010-08-12 25 #include <linux/delay.h>
ffcc3936416066 Mike Snitzer 2014-10-28 26 #include <linux/wait.h>
71cdb6978a80f9 Christoph Hellwig 2015-10-15 27 #include <linux/pr.h>
b0b4d7c6752a45 Elena Reshetova 2017-10-20 28 #include <linux/refcount.h>
c6a564ffadc910 Christoph Hellwig 2020-03-25 29 #include <linux/part_stat.h>
a892c8d52c0228 Satya Tangirala 2020-05-14 30 #include <linux/blk-crypto.h>
aa6ce87a768226 Satya Tangirala 2021-02-01 31 #include <linux/keyslot-manager.h>
c6258b84ddc212 Martin Wilck 2021-06-28 @32 #include <scsi/sg.h>
55782138e47d9b Li Zefan 2009-06-09 33
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
12 months
[chrome-os:chromeos-5.10 14450/15358] drivers/usb/host/xhci-mtk-sch.c:83:2: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
by kernel test robot
CC: kbuild-all(a)lists.01.org
TO: cros-kernel-buildreports(a)googlegroups.com
TO: Guenter Roeck <groeck(a)google.com>
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: e7fd97a9db5fa15cbdf7d93ec30726e4362b1fb1
commit: 6c5dbd50cb0a10ba33dad42a54e1d6bac7b6e1bc [14450/15358] UPSTREAM: usb: xhci-mtk: print debug info of endpoint interval
:::::: branch date: 4 hours ago
:::::: commit date: 9 days ago
compiler: m68k-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
vim +83 drivers/usb/host/xhci-mtk-sch.c
0cbd4b34cda9df Chunfeng Yun 2015-11-24 66
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 67 static const char *
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 68 decode_ep(struct usb_host_endpoint *ep, enum usb_device_speed speed)
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 69 {
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 70 static char buf[DBG_BUF_EN];
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 71 struct usb_endpoint_descriptor *epd = &ep->desc;
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 72 unsigned int interval;
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 73 const char *unit;
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 74
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 75 interval = usb_decode_interval(epd, speed);
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 76 if (interval % 1000) {
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 77 unit = "us";
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 78 } else {
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 79 unit = "ms";
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 80 interval /= 1000;
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 81 }
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 82
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 @83 snprintf(buf, DBG_BUF_EN, "%s ep%d%s %s, mpkt:%d, interval:%d/%d%s\n",
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 84 usb_speed_string(speed), usb_endpoint_num(epd),
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 85 usb_endpoint_dir_in(epd) ? "in" : "out",
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 86 usb_ep_type_string(usb_endpoint_type(epd)),
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 87 usb_endpoint_maxp(epd), epd->bInterval, interval, unit);
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 88
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 89 return buf;
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 90 }
6c5dbd50cb0a10 Chunfeng Yun 2021-03-08 91
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
12 months
[linux-next:master 13869/14009] drivers/clk/analogbits/wrpll-cln28hpc.c:26:1: iwyu: warning: superfluous #include <linux/limits.h>
by kernel test robot
CC: kbuild-all(a)lists.01.org
CC: Linux Memory Management List <linux-mm(a)kvack.org>
TO: Andy Shevchenko <andriy.shevchenko(a)linux.intel.com>
CC: Bjorn Andersson <bjorn.andersson(a)linaro.org>
CC: Andrew Morton <akpm(a)linux-foundation.org>
CC: Linux Memory Management List <linux-mm(a)kvack.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 2e0046650f0f192a84a1793f0dc2f0991ed9a3e4
commit: 1a8636b2bc4daa580a843deeed9aabff0c788aea [13869/14009] kernel.h: split out panic and oops helpers
:::::: branch date: 14 hours ago
:::::: commit date: 16 hours ago
config: x86_64-randconfig-b001-20210630 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d21d5472501460933e78aead04cf59579025ba4)
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
# apt-get install iwyu # include-what-you-use
# 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 1a8636b2bc4daa580a843deeed9aabff0c788aea
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross C=1 CHECK=iwyu O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/clk/analogbits/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
iwyu warnings: (new ones prefixed by >>)
drivers/clk/analogbits/wrpll-cln28hpc.c:24:1: iwyu: warning: superfluous #include <linux/bug.h>
drivers/clk/analogbits/wrpll-cln28hpc.c:25:1: iwyu: warning: superfluous #include <linux/err.h>
>> drivers/clk/analogbits/wrpll-cln28hpc.c:26:1: iwyu: warning: superfluous #include <linux/limits.h>
vim +26 drivers/clk/analogbits/wrpll-cln28hpc.c
1a8636b2bc4daa Andy Shevchenko 2021-06-25 @26 #include <linux/limits.h>
7b9487a9a5c41c Paul Walmsley 2019-04-30 27 #include <linux/log2.h>
7b9487a9a5c41c Paul Walmsley 2019-04-30 28 #include <linux/math64.h>
1a8636b2bc4daa Andy Shevchenko 2021-06-25 29 #include <linux/math.h>
1a8636b2bc4daa Andy Shevchenko 2021-06-25 30 #include <linux/minmax.h>
1a8636b2bc4daa Andy Shevchenko 2021-06-25 31
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
12 months
[intel-linux-intel-lts:5.4/yocto 15/1142] drivers/crypto/keembay/keembay-ocs-hcu-core.c:226:53: sparse: sparse: shift too big (32) for type unsigned long
by kernel test robot
CC: kbuild-all(a)lists.01.org
TO: Declan Murphy <declan.murphy(a)intel.com>
CC: "Li, Yifan" <yifan2.li(a)intel.com>
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 9b07a958f2eb496c88faf0bd749eb600357f4190 [15/1142] crypto: keembay: Add Keem Bay OCS HCU
:::::: branch date: 11 months ago
:::::: commit date: 11 months ago
config: arm-randconfig-s031-20210630 (attached as .config)
compiler: arm-linux-gnueabi-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-341-g8af24329-dirty
# https://github.com/intel/linux-intel-lts/commit/9b07a958f2eb496c88faf0bd7...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 9b07a958f2eb496c88faf0bd749eb600357f4190
# 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__' O=build_dir ARCH=arm SHELL=/bin/bash drivers/crypto/keembay/ drivers/gpu/drm/
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/keembay/keembay-ocs-hcu-core.c:218:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:219:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:749:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:750:31: sparse: sparse: Using plain integer as NULL pointer
>> drivers/crypto/keembay/keembay-ocs-hcu-core.c:226:53: sparse: sparse: shift too big (32) for type unsigned long
--
>> drivers/crypto/keembay/ocs-hcu.c:389:29: sparse: sparse: shift too big (32) for type unsigned long
vim +226 drivers/crypto/keembay/keembay-ocs-hcu-core.c
9b07a958f2eb49 Declan Murphy 2020-05-26 222
9b07a958f2eb49 Declan Murphy 2020-05-26 223 static int kmb_ocs_add_dma_tail(struct ocs_hcu_rctx *rctx,
9b07a958f2eb49 Declan Murphy 2020-05-26 224 dma_addr_t addr, size_t len)
9b07a958f2eb49 Declan Murphy 2020-05-26 225 {
9b07a958f2eb49 Declan Murphy 2020-05-26 @226 if (addr & KMB_OCS_HCU_ALIGN_MASK || addr > OCS_HCU_DMA_MAX_ADDR_MASK)
9b07a958f2eb49 Declan Murphy 2020-05-26 227 return -EINVAL;
9b07a958f2eb49 Declan Murphy 2020-05-26 228
9b07a958f2eb49 Declan Murphy 2020-05-26 229 if (!len)
9b07a958f2eb49 Declan Murphy 2020-05-26 230 return 0;
9b07a958f2eb49 Declan Murphy 2020-05-26 231
9b07a958f2eb49 Declan Murphy 2020-05-26 232 rctx->dma_list_tail->src_adr = (u32)addr;
9b07a958f2eb49 Declan Murphy 2020-05-26 233 rctx->dma_list_tail->src_len = (u32)len;
9b07a958f2eb49 Declan Murphy 2020-05-26 234 rctx->dma_list_tail->ll_flags = 0;
9b07a958f2eb49 Declan Murphy 2020-05-26 235 rctx->dma_list_tail->nxt_desc = rctx->ll_dma_addr +
9b07a958f2eb49 Declan Murphy 2020-05-26 236 (virt_to_phys(rctx->dma_list_tail) -
9b07a958f2eb49 Declan Murphy 2020-05-26 237 virt_to_phys(rctx->dma_list_head)) +
9b07a958f2eb49 Declan Murphy 2020-05-26 238 sizeof(*rctx->dma_list_tail);
9b07a958f2eb49 Declan Murphy 2020-05-26 239
9b07a958f2eb49 Declan Murphy 2020-05-26 240 rctx->dma_list_tail++;
9b07a958f2eb49 Declan Murphy 2020-05-26 241
9b07a958f2eb49 Declan Murphy 2020-05-26 242 return 0;
9b07a958f2eb49 Declan Murphy 2020-05-26 243 }
9b07a958f2eb49 Declan Murphy 2020-05-26 244
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
12 months
drivers/net/wireless/mediatek/mt76/mt7603/dma.c:63 mt7603_rx_loopback_skb() warn: potential spectre issue 'dev->mt76.wcid' [w] (local cap)
by kernel test robot
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Will Deacon <will(a)kernel.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: df04fbe8680bfe07f3d7487eccff9f768bb02533
commit: 3c9184109e78ea2371ca8fa66d7f36986a53af98 asm/rwonce: Remove smp_read_barrier_depends() invocation
date: 11 months ago
:::::: branch date: 65 minutes ago
:::::: commit date: 11 months ago
config: i386-randconfig-m021-20210630 (attached as .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 <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
New smatch warnings:
drivers/net/wireless/mediatek/mt76/mt7603/dma.c:63 mt7603_rx_loopback_skb() warn: potential spectre issue 'dev->mt76.wcid' [w] (local cap)
drivers/net/wireless/mediatek/mt76/mt7915/mac.c:891 mt7915_mac_tx_free() warn: potential spectre issue 'dev->mt76.wcid' [w]
Old smatch warnings:
drivers/net/wireless/mediatek/mt76/mt7915/mac.c:1309 mt7915_mac_sta_stats_work() warn: test_bit() takes a bit number
vim +63 drivers/net/wireless/mediatek/mt76/mt7603/dma.c
c8846e1015022d Felix Fietkau 2018-11-06 29
c8846e1015022d Felix Fietkau 2018-11-06 30 static void
c8846e1015022d Felix Fietkau 2018-11-06 31 mt7603_rx_loopback_skb(struct mt7603_dev *dev, struct sk_buff *skb)
c8846e1015022d Felix Fietkau 2018-11-06 32 {
d55aa5e17461b8 Felix Fietkau 2019-12-21 33 static const u8 tid_to_ac[8] = {
d55aa5e17461b8 Felix Fietkau 2019-12-21 34 IEEE80211_AC_BE,
d55aa5e17461b8 Felix Fietkau 2019-12-21 35 IEEE80211_AC_BK,
d55aa5e17461b8 Felix Fietkau 2019-12-21 36 IEEE80211_AC_BK,
d55aa5e17461b8 Felix Fietkau 2019-12-21 37 IEEE80211_AC_BE,
d55aa5e17461b8 Felix Fietkau 2019-12-21 38 IEEE80211_AC_VI,
d55aa5e17461b8 Felix Fietkau 2019-12-21 39 IEEE80211_AC_VI,
d55aa5e17461b8 Felix Fietkau 2019-12-21 40 IEEE80211_AC_VO,
d55aa5e17461b8 Felix Fietkau 2019-12-21 41 IEEE80211_AC_VO
d55aa5e17461b8 Felix Fietkau 2019-12-21 42 };
c8846e1015022d Felix Fietkau 2018-11-06 43 __le32 *txd = (__le32 *)skb->data;
e004b700660025 Felix Fietkau 2019-03-03 44 struct ieee80211_hdr *hdr;
e004b700660025 Felix Fietkau 2019-03-03 45 struct ieee80211_sta *sta;
c8846e1015022d Felix Fietkau 2018-11-06 46 struct mt7603_sta *msta;
c8846e1015022d Felix Fietkau 2018-11-06 47 struct mt76_wcid *wcid;
e004b700660025 Felix Fietkau 2019-03-03 48 void *priv;
c8846e1015022d Felix Fietkau 2018-11-06 49 int idx;
c8846e1015022d Felix Fietkau 2018-11-06 50 u32 val;
d55aa5e17461b8 Felix Fietkau 2019-12-21 51 u8 tid = 0;
c8846e1015022d Felix Fietkau 2018-11-06 52
e004b700660025 Felix Fietkau 2019-03-03 53 if (skb->len < MT_TXD_SIZE + sizeof(struct ieee80211_hdr))
c8846e1015022d Felix Fietkau 2018-11-06 54 goto free;
c8846e1015022d Felix Fietkau 2018-11-06 55
c8846e1015022d Felix Fietkau 2018-11-06 56 val = le32_to_cpu(txd[1]);
c8846e1015022d Felix Fietkau 2018-11-06 57 idx = FIELD_GET(MT_TXD1_WLAN_IDX, val);
c8846e1015022d Felix Fietkau 2018-11-06 58 skb->priority = FIELD_GET(MT_TXD1_TID, val);
c8846e1015022d Felix Fietkau 2018-11-06 59
c8846e1015022d Felix Fietkau 2018-11-06 60 if (idx >= MT7603_WTBL_STA - 1)
c8846e1015022d Felix Fietkau 2018-11-06 61 goto free;
c8846e1015022d Felix Fietkau 2018-11-06 62
c8846e1015022d Felix Fietkau 2018-11-06 @63 wcid = rcu_dereference(dev->mt76.wcid[idx]);
c8846e1015022d Felix Fietkau 2018-11-06 64 if (!wcid)
c8846e1015022d Felix Fietkau 2018-11-06 65 goto free;
c8846e1015022d Felix Fietkau 2018-11-06 66
e004b700660025 Felix Fietkau 2019-03-03 67 priv = msta = container_of(wcid, struct mt7603_sta, wcid);
c8846e1015022d Felix Fietkau 2018-11-06 68 val = le32_to_cpu(txd[0]);
fca9615f1a436d Felix Fietkau 2019-03-03 69 val &= ~(MT_TXD0_P_IDX | MT_TXD0_Q_IDX);
fca9615f1a436d Felix Fietkau 2019-03-03 70 val |= FIELD_PREP(MT_TXD0_Q_IDX, MT_TX_HW_QUEUE_MGMT);
fca9615f1a436d Felix Fietkau 2019-03-03 71 txd[0] = cpu_to_le32(val);
fca9615f1a436d Felix Fietkau 2019-03-03 72
e004b700660025 Felix Fietkau 2019-03-03 73 sta = container_of(priv, struct ieee80211_sta, drv_priv);
e004b700660025 Felix Fietkau 2019-03-03 74 hdr = (struct ieee80211_hdr *)&skb->data[MT_TXD_SIZE];
d55aa5e17461b8 Felix Fietkau 2019-12-21 75 if (ieee80211_is_data_qos(hdr->frame_control))
d55aa5e17461b8 Felix Fietkau 2019-12-21 76 tid = *ieee80211_get_qos_ctl(hdr) &
d55aa5e17461b8 Felix Fietkau 2019-12-21 77 IEEE80211_QOS_CTL_TAG1D_MASK;
d55aa5e17461b8 Felix Fietkau 2019-12-21 78 skb_set_queue_mapping(skb, tid_to_ac[tid]);
e004b700660025 Felix Fietkau 2019-03-03 79 ieee80211_sta_set_buffered(sta, tid, true);
e004b700660025 Felix Fietkau 2019-03-03 80
c8846e1015022d Felix Fietkau 2018-11-06 81 spin_lock_bh(&dev->ps_lock);
c8846e1015022d Felix Fietkau 2018-11-06 82 __skb_queue_tail(&msta->psq, skb);
c8846e1015022d Felix Fietkau 2018-11-06 83 if (skb_queue_len(&msta->psq) >= 64) {
c8846e1015022d Felix Fietkau 2018-11-06 84 skb = __skb_dequeue(&msta->psq);
c8846e1015022d Felix Fietkau 2018-11-06 85 dev_kfree_skb(skb);
c8846e1015022d Felix Fietkau 2018-11-06 86 }
c8846e1015022d Felix Fietkau 2018-11-06 87 spin_unlock_bh(&dev->ps_lock);
c8846e1015022d Felix Fietkau 2018-11-06 88 return;
c8846e1015022d Felix Fietkau 2018-11-06 89
c8846e1015022d Felix Fietkau 2018-11-06 90 free:
c8846e1015022d Felix Fietkau 2018-11-06 91 dev_kfree_skb(skb);
c8846e1015022d Felix Fietkau 2018-11-06 92 }
c8846e1015022d Felix Fietkau 2018-11-06 93
:::::: The code at line 63 was first introduced by commit
:::::: c8846e1015022d2531ac4c895783e400b3e5babe mt76: add driver for MT7603E and MT7628/7688
:::::: TO: Felix Fietkau <nbd(a)nbd.name>
:::::: CC: Felix Fietkau <nbd(a)nbd.name>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
12 months
[agd5f:drm-next 68/87] drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c:30:1: iwyu: warning: superfluous #include <linux/debugfs.h>
by kernel test robot
CC: kbuild-all(a)lists.01.org
TO: Luben Tuikov <luben.tuikov(a)amd.com>
CC: Alex Deucher <alexander.deucher(a)amd.com>
tree: https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head: 11cc1da2bc39a28065626602e94372788742fe2e
commit: 5e98eafa90ca1990c1f45769a4e30f4769301549 [68/87] drm/amdgpu: RAS EEPROM table is now in debugfs
:::::: branch date: 15 hours ago
:::::: commit date: 15 hours ago
config: x86_64-randconfig-b001-20210628 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d21d5472501460933e78aead04cf59579025ba4)
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
# apt-get install iwyu # include-what-you-use
git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
git fetch --no-tags agd5f drm-next
git checkout 5e98eafa90ca1990c1f45769a4e30f4769301549
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross C=1 CHECK=iwyu O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/drm/amd/amdgpu/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
iwyu warnings: (new ones prefixed by >>)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c:27:1: iwyu: warning: superfluous #include <linux/bits.h>
>> drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c:30:1: iwyu: warning: superfluous #include <linux/debugfs.h>
vim +30 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
5e98eafa90ca19 Luben Tuikov 2021-04-08 @30 #include <linux/debugfs.h>
5e98eafa90ca19 Luben Tuikov 2021-04-08 31 #include <linux/uaccess.h>
64f55e629237e4 Andrey Grodzovsky 2019-05-30 32
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
12 months
[linux-next:master 12761/14009] drivers/md/dm-cache-target.c:15:1: iwyu: warning: superfluous #include <linux/jiffies.h>
by kernel test robot
CC: kbuild-all(a)lists.01.org
CC: Linux Memory Management List <linux-mm(a)kvack.org>
TO: Mike Snitzer <snitzer(a)redhat.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 2e0046650f0f192a84a1793f0dc2f0991ed9a3e4
commit: dc4fa29fe445933f51e08674f3b325547ba52de1 [12761/14009] dm io tracker: factor out IO tracker
:::::: branch date: 11 hours ago
:::::: commit date: 5 days ago
config: x86_64-randconfig-b001-20210630 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d21d5472501460933e78aead04cf59579025ba4)
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
# apt-get install iwyu # include-what-you-use
# 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 dc4fa29fe445933f51e08674f3b325547ba52de1
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross C=1 CHECK=iwyu O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/clk/analogbits/ drivers/md/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
iwyu warnings: (new ones prefixed by >>)
>> drivers/md/dm-cache-target.c:15:1: iwyu: warning: superfluous #include <linux/jiffies.h>
drivers/md/dm-cache-target.c:21:1: iwyu: warning: superfluous #include <linux/vmalloc.h>
drivers/md/dm-cache-target.c:9:1: iwyu: warning: superfluous #include "dm-bio-record.h"
vim +15 drivers/md/dm-cache-target.c
c6b4fcbad044e6 Joe Thornber 2013-03-01 12
c6b4fcbad044e6 Joe Thornber 2013-03-01 13 #include <linux/dm-io.h>
c6b4fcbad044e6 Joe Thornber 2013-03-01 14 #include <linux/dm-kcopyd.h>
0f30af98cbb111 Manuel Schölling 2014-05-22 @15 #include <linux/jiffies.h>
c6b4fcbad044e6 Joe Thornber 2013-03-01 16 #include <linux/init.h>
c6b4fcbad044e6 Joe Thornber 2013-03-01 17 #include <linux/mempool.h>
c6b4fcbad044e6 Joe Thornber 2013-03-01 18 #include <linux/module.h>
b29d4986d0da1a Joe Thornber 2016-12-15 19 #include <linux/rwsem.h>
c6b4fcbad044e6 Joe Thornber 2013-03-01 20 #include <linux/slab.h>
c6b4fcbad044e6 Joe Thornber 2013-03-01 21 #include <linux/vmalloc.h>
c6b4fcbad044e6 Joe Thornber 2013-03-01 22
:::::: The code at line 15 was first introduced by commit
:::::: 0f30af98cbb111cebd99f09cb7b8cc8c9351c0b3 dm: use time_in_range() and time_after()
:::::: TO: Manuel Schölling <manuel.schoelling(a)gmx.de>
:::::: CC: Mike Snitzer <snitzer(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
12 months
[linux-next:master 3771/14009] drivers/gpu/drm/ingenic/ingenic-ipu.c:28:1: iwyu: warning: superfluous #include <drm/drm_gem_cma_helper.h>
by kernel test robot
CC: kbuild-all(a)lists.01.org
CC: Linux Memory Management List <linux-mm(a)kvack.org>
TO: Paul Cercueil <paul(a)crapouillou.net>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 2e0046650f0f192a84a1793f0dc2f0991ed9a3e4
commit: 4a791cb6d34f42ef9aa7a65f2ba5aa19644c53a7 [3771/14009] drm/ingenic: Add option to alloc cached GEM buffers
:::::: branch date: 9 hours ago
:::::: commit date: 5 weeks ago
config: x86_64-randconfig-b001-20210630 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d21d5472501460933e78aead04cf59579025ba4)
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
# apt-get install iwyu # include-what-you-use
# 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 4a791cb6d34f42ef9aa7a65f2ba5aa19644c53a7
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross C=1 CHECK=iwyu O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/clk/analogbits/ drivers/gpu/drm/ingenic/ drivers/md/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
iwyu warnings: (new ones prefixed by >>)
drivers/gpu/drm/ingenic/ingenic-ipu.c:24:1: iwyu: warning: superfluous #include <drm/drm_drv.h>
>> drivers/gpu/drm/ingenic/ingenic-ipu.c:28:1: iwyu: warning: superfluous #include <drm/drm_gem_cma_helper.h>
>> drivers/gpu/drm/ingenic/ingenic-ipu.c:29:1: iwyu: warning: superfluous #include <drm/drm_gem_framebuffer_helper.h>
drivers/gpu/drm/ingenic/ingenic-ipu.c:31:1: iwyu: warning: superfluous #include <drm/drm_plane_helper.h>
drivers/gpu/drm/ingenic/ingenic-ipu.c:16:1: iwyu: warning: superfluous #include <linux/of.h>
drivers/gpu/drm/ingenic/ingenic-ipu.c:19:1: iwyu: warning: superfluous #include <linux/time.h>
--
drivers/gpu/drm/ingenic/ingenic-drm-drv.c:26:1: iwyu: warning: superfluous #include <drm/drm_crtc_helper.h>
drivers/gpu/drm/ingenic/ingenic-drm-drv.c:37:1: iwyu: warning: superfluous #include <drm/drm_managed.h>
drivers/gpu/drm/ingenic/ingenic-drm-drv.c:39:1: iwyu: warning: superfluous #include <drm/drm_panel.h>
drivers/gpu/drm/ingenic/ingenic-drm-drv.c:42:1: iwyu: warning: superfluous #include <drm/drm_probe_helper.h>
>> drivers/gpu/drm/ingenic/ingenic-drm-drv.c:12:1: iwyu: warning: superfluous #include <linux/io.h>
vim +28 drivers/gpu/drm/ingenic/ingenic-ipu.c
fc1acf317b01083 Paul Cercueil 2020-07-16 20
fc1acf317b01083 Paul Cercueil 2020-07-16 21 #include <drm/drm_atomic.h>
fc1acf317b01083 Paul Cercueil 2020-07-16 22 #include <drm/drm_atomic_helper.h>
4a791cb6d34f42e Paul Cercueil 2021-05-23 23 #include <drm/drm_damage_helper.h>
fc1acf317b01083 Paul Cercueil 2020-07-16 24 #include <drm/drm_drv.h>
fc1acf317b01083 Paul Cercueil 2020-07-16 25 #include <drm/drm_fb_cma_helper.h>
fc1acf317b01083 Paul Cercueil 2020-07-16 26 #include <drm/drm_fourcc.h>
820c1707177c6fe Thomas Zimmermann 2021-02-22 27 #include <drm/drm_gem_atomic_helper.h>
4a791cb6d34f42e Paul Cercueil 2021-05-23 @28 #include <drm/drm_gem_cma_helper.h>
4a791cb6d34f42e Paul Cercueil 2021-05-23 @29 #include <drm/drm_gem_framebuffer_helper.h>
fc1acf317b01083 Paul Cercueil 2020-07-16 30 #include <drm/drm_plane.h>
fc1acf317b01083 Paul Cercueil 2020-07-16 31 #include <drm/drm_plane_helper.h>
fc1acf317b01083 Paul Cercueil 2020-07-16 32 #include <drm/drm_property.h>
fc1acf317b01083 Paul Cercueil 2020-07-16 33 #include <drm/drm_vblank.h>
fc1acf317b01083 Paul Cercueil 2020-07-16 34
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
12 months
[hch-block:scsi-ioctl 14/24] drivers/scsi/scsi_bsg.c:5:1: iwyu: warning: superfluous #include <scsi/scsi_cmnd.h>
by kernel test robot
CC: kbuild-all(a)lists.01.org
TO: Christoph Hellwig <hch(a)lst.de>
tree: git://git.infradead.org/users/hch/block.git scsi-ioctl
head: 22905006c8c521055fa73e75cf153f9aff4093a0
commit: 009972056b6d30074047d66dd24978c7adf11b02 [14/24] bsg: move bsg_scsi_ops to drivers/scsi/
:::::: branch date: 11 hours ago
:::::: commit date: 11 hours ago
config: x86_64-randconfig-b001-20210630 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d21d5472501460933e78aead04cf59579025ba4)
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
# apt-get install iwyu # include-what-you-use
git remote add hch-block git://git.infradead.org/users/hch/block.git
git fetch --no-tags hch-block scsi-ioctl
git checkout 009972056b6d30074047d66dd24978c7adf11b02
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross C=1 CHECK=iwyu O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/scsi/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
iwyu warnings: (new ones prefixed by >>)
>> drivers/scsi/scsi_bsg.c:5:1: iwyu: warning: superfluous #include <scsi/scsi_cmnd.h>
>> drivers/scsi/scsi_bsg.c:6:1: iwyu: warning: superfluous #include <scsi/scsi_device.h>
drivers/scsi/scsi_bsg.c:4:1: iwyu: warning: superfluous #include <scsi/scsi_ioctl.h>
vim +5 drivers/scsi/scsi_bsg.c
009972056b6d30 Christoph Hellwig 2021-06-29 @5 #include <scsi/scsi_cmnd.h>
009972056b6d30 Christoph Hellwig 2021-06-29 @6 #include <scsi/scsi_device.h>
009972056b6d30 Christoph Hellwig 2021-06-29 7 #include <scsi/sg.h>
009972056b6d30 Christoph Hellwig 2021-06-29 8 #include "scsi_priv.h"
009972056b6d30 Christoph Hellwig 2021-06-29 9
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
12 months