All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH RFC v2 22/25] kmsan: unpoisoning buffers from devices etc.
Date: Mon, 04 Nov 2019 02:16:34 +0800	[thread overview]
Message-ID: <201911040220.JnRew84K%lkp@intel.com> (raw)
In-Reply-To: <20191030142237.249532-23-glider@google.com>

[-- Attachment #1: Type: text/plain, Size: 3687 bytes --]

Hi,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on linus/master]
[also build test WARNING on v5.4-rc5]
[cannot apply to next-20191031]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/glider-google-com/Add-KernelMemorySanitizer-infrastructure/20191102-050032
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 0dbe6cb8f7e05bc9611602ef45980a6c57b245a3
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-6-g57f8611-dirty
        make ARCH=x86_64 allmodconfig
        make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)

>> drivers/virtio/virtio_ring.c:396:40: sparse: sparse: cast from restricted __virtio64
>> drivers/virtio/virtio_ring.c:396:69: sparse: sparse: incorrect type in argument 2 (different base types) @@    expected unsigned long [usertype] size @@    got restrictunsigned long [usertype] size @@
>> drivers/virtio/virtio_ring.c:396:69: sparse:    expected unsigned long [usertype] size
>> drivers/virtio/virtio_ring.c:396:69: sparse:    got restricted __virtio32 [usertype] len
   drivers/virtio/virtio_ring.c:1414:50: sparse: sparse: incorrect type in argument 2 (different base types) @@    expected restricted __virtio16 [usertype] *p @@    got rtio16 [usertype] *p @@
   drivers/virtio/virtio_ring.c:1414:50: sparse:    expected restricted __virtio16 [usertype] *p
   drivers/virtio/virtio_ring.c:1414:50: sparse:    got restricted __le16 *
   drivers/virtio/virtio_ring.c:1415:33: sparse: sparse: incorrect type in argument 3 (different base types) @@    expected restricted __virtio16 [usertype] v @@    got ricted __virtio16 [usertype] v @@
   drivers/virtio/virtio_ring.c:1415:33: sparse:    expected restricted __virtio16 [usertype] v
   drivers/virtio/virtio_ring.c:1415:33: sparse:    got restricted __le16 [usertype]

vim +396 drivers/virtio/virtio_ring.c

   362	
   363	
   364	/*
   365	 * Split ring specific functions - *_split().
   366	 */
   367	
   368	static void vring_unmap_one_split(const struct vring_virtqueue *vq,
   369					  struct vring_desc *desc)
   370	{
   371		u16 flags;
   372	
   373		if (!vq->use_dma_api)
   374			return;
   375	
   376		flags = virtio16_to_cpu(vq->vq.vdev, desc->flags);
   377	
   378		if (flags & VRING_DESC_F_INDIRECT) {
   379			dma_unmap_single(vring_dma_dev(vq),
   380					 virtio64_to_cpu(vq->vq.vdev, desc->addr),
   381					 virtio32_to_cpu(vq->vq.vdev, desc->len),
   382					 (flags & VRING_DESC_F_WRITE) ?
   383					 DMA_FROM_DEVICE : DMA_TO_DEVICE);
   384		} else {
   385			dma_unmap_page(vring_dma_dev(vq),
   386				       virtio64_to_cpu(vq->vq.vdev, desc->addr),
   387				       virtio32_to_cpu(vq->vq.vdev, desc->len),
   388				       (flags & VRING_DESC_F_WRITE) ?
   389				       DMA_FROM_DEVICE : DMA_TO_DEVICE);
   390		}
   391		/*
   392		 * Unmapping DMA memory after a transfer from device requires this
   393		 * memory to be unpoisoned.
   394		 */
   395		if (flags & VRING_DESC_F_WRITE)
 > 396			kmsan_unpoison_shadow((const void *)desc->addr, desc->len);
   397	}
   398	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

  parent reply	other threads:[~2019-11-03 18:16 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-30 14:22 [PATCH RFC v2 00/25] Add KernelMemorySanitizer infrastructure glider
2019-10-30 14:22 ` [PATCH RFC v2 01/25] stackdepot: check depot_index before accessing the stack slab glider
2019-10-30 14:22 ` [PATCH RFC v2 02/25] stackdepot: prevent Clang from optimizing away stackdepot_memcmp() glider
2019-11-01  5:50   ` Sergey Senozhatsky
2019-11-06 11:43     ` Alexander Potapenko
2019-11-07  6:08       ` Sergey Senozhatsky
2019-11-07  9:04         ` Arnd Bergmann
2019-11-07  9:22           ` Alexander Potapenko
2019-11-07  9:28             ` Arnd Bergmann
2019-11-07  9:43               ` Alexander Potapenko
     [not found]             ` <47fdac13-fa2c-2acd-2480-5e6d4db208f8@virtuozzo.com>
2019-11-07 10:00               ` Arnd Bergmann
     [not found]                 ` <6875c6e6-2f1f-f8e6-e5d7-d451c48397ff@virtuozzo.com>
2019-11-07 10:30                   ` Alexander Potapenko
2019-10-30 14:22 ` [PATCH RFC v2 03/25] kasan: stackdepot: move filter_irq_stacks() to stackdepot.c glider
2019-10-30 14:22 ` [PATCH RFC v2 04/25] stackdepot: reserve 5 extra bits in depot_stack_handle_t glider
2019-10-30 14:22 ` [PATCH RFC v2 05/25] kmsan: add ReST documentation glider
2019-10-30 14:22 ` [PATCH RFC v2 06/25] kmsan: gfp: introduce __GFP_NO_KMSAN_SHADOW glider
2019-10-30 14:22 ` [PATCH RFC v2 07/25] kmsan: introduce __no_sanitize_memory and __SANITIZE_MEMORY__ glider
2019-10-30 15:50   ` Andrey Konovalov
2019-11-01 12:52     ` Alexander Potapenko
2019-10-30 14:22 ` [PATCH RFC v2 08/25] kmsan: reduce vmalloc space glider
2019-10-30 14:22 ` [PATCH RFC v2 09/25] kmsan: add KMSAN runtime glider
2019-11-08 12:08   ` Dmitry Vyukov
2019-11-08 12:17     ` Dmitry Vyukov
2019-11-21 12:06       ` Alexander Potapenko
2019-11-13  8:13   ` Wolfram Sang
2019-11-21 12:01     ` Alexander Potapenko
2019-10-30 14:22 ` [PATCH RFC v2 10/25] kmsan: define READ_ONCE_NOCHECK() glider
2019-11-05 14:21   ` Mark Rutland
2019-11-21 12:08     ` Alexander Potapenko
2019-10-30 14:22 ` [PATCH RFC v2 11/25] kmsan: x86: sync metadata pages on page fault glider
2019-10-30 14:22 ` [PATCH RFC v2 12/25] kmsan: add tests for KMSAN glider
2019-10-30 14:22 ` [PATCH RFC v2 13/25] kmsan: make READ_ONCE_TASK_STACK() return initialized values glider
2019-10-30 14:22 ` [PATCH RFC v2 14/25] kmsan: Kconfig changes to disable options incompatible with KMSAN glider
2019-10-30 14:34   ` Qian Cai
2019-10-30 14:34   ` Christoph Hellwig
2019-10-30 14:22 ` [PATCH RFC v2 15/25] kmsan: Changing existing files to enable KMSAN builds glider
2019-10-30 14:36   ` Christoph Hellwig
2019-10-30 14:22 ` [PATCH RFC v2 16/25] kmsan: disable KMSAN instrumentation for certain kernel parts glider
2019-10-30 14:22 ` [PATCH RFC v2 17/25] kmsan: mm: call KMSAN hooks from SLUB code glider
2019-10-30 16:07   ` Andrey Konovalov
2019-10-30 14:22 ` [PATCH RFC v2 18/25] kmsan: call KMSAN hooks where needed glider
2019-10-31 11:49   ` Petr Mladek
2019-11-01  8:26     ` Sergey Senozhatsky
2019-11-05 14:12       ` Alexander Potapenko
2019-11-06  9:04         ` Petr Mladek
2019-11-06  9:07         ` Sergey Senozhatsky
2019-10-30 14:22 ` [PATCH RFC v2 19/25] kmsan: disable instrumentation of certain functions glider
2019-10-30 14:22 ` [PATCH RFC v2 20/25] kmsan: unpoison |tlb| in arch_tlb_gather_mmu() glider
2019-10-30 14:22 ` [PATCH RFC v2 21/25] kmsan: use __msan_memcpy() where possible glider
2019-10-30 14:22 ` [PATCH RFC v2 22/25] kmsan: unpoisoning buffers from devices etc glider
2019-10-30 14:38   ` Christoph Hellwig
2019-11-05 15:02     ` Alexander Potapenko
2019-11-07 13:00       ` Alexander Potapenko
2019-11-13 11:07         ` Alexander Potapenko
2019-11-01 22:25   ` kbuild test robot
2019-11-03 18:16   ` kbuild test robot [this message]
2019-10-30 14:22 ` [PATCH RFC v2 23/25] kmsan: hooks for copy_to_user() and friends glider
2019-11-01 23:08   ` kbuild test robot
2019-11-03 22:10   ` kbuild test robot
2019-10-30 14:22 ` [PATCH RFC v2 24/25] kmsan: disable strscpy() optimization under KMSAN glider
2019-10-30 14:22 ` [PATCH RFC v2 25/25] net: kasan: kmsan: support CONFIG_GENERIC_CSUM on x86, enable it for KASAN/KMSAN glider

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201911040220.JnRew84K%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.