[kbuild] Re: [PATCH RFC] seccomp: Implement syscall isolation based on memory areas

2020-05-31 Thread kbuild test robot
CC: kbuild-...@lists.01.org
In-Reply-To: <20200530055953.817666-1-kris...@collabora.com>
References: <20200530055953.817666-1-kris...@collabora.com>
TO: Gabriel Krisman Bertazi 

Hi Gabriel,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on tip/x86/core]
[also build test WARNING on linus/master v5.7 next-20200529]
[cannot apply to asm-generic/master linux/master]
[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/Gabriel-Krisman-Bertazi/seccomp-Implement-syscall-isolation-based-on-memory-areas/20200601-014401
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 
9cb1fd0efd195590b828b9b865421ad345a4a145
:: branch date: 7 hours ago
:: commit date: 7 hours ago
config: arm-randconfig-c024-20200531 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 
Reported-by: Julia Lawall 


coccinelle warnings: (new ones prefixed by >>)

>> kernel/seccomp.c:939:2-5: WARNING: Use BUG_ON instead of if condition 
>> followed by BUG.
   Please make sure the condition has no side effects (see conditional BUG_ON 
definition in include/asm-generic/bug.h)

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.config.gz
Description: application/gzip
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] Re: [Intel-gfx] [PATCH v1] drm/i915: Fix wrong CDCLK adjustment changes

2020-05-31 Thread kbuild test robot
CC: kbuild-...@lists.01.org
In-Reply-To: <20200526094852.6967-1-stanislav.lisovs...@intel.com>
References: <20200526094852.6967-1-stanislav.lisovs...@intel.com>
TO: Stanislav Lisovskiy 
TO: intel-...@lists.freedesktop.org
CC: ch...@chris-wilson.co.uk

Hi Stanislav,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on drm-tip/drm-tip]
[also build test WARNING on drm-intel/drm-intel-next-queued]
[cannot apply to drm-intel/for-linux-next v5.7-rc7 next-20200529]
[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/Stanislav-Lisovskiy/drm-i915-Fix-wrong-CDCLK-adjustment-changes/20200526-180642
base:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
:: branch date: 6 days ago
:: commit date: 6 days ago
config: i386-randconfig-m021-20200531 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 
Reported-by: Dan Carpenter 

smatch warnings:
drivers/gpu/drm/i915/display/intel_bw.c:453 skl_bw_calc_min_cdclk() error: 
uninitialized symbol 'pipe'.

# 
https://github.com/0day-ci/linux/commit/21b0324886122a396687d977d67eb6ce3caf2b17
git remote add linux-review https://github.com/0day-ci/linux
git remote update linux-review
git checkout 21b0324886122a396687d977d67eb6ce3caf2b17
vim +/pipe +453 drivers/gpu/drm/i915/display/intel_bw.c

366b6200f76e0f Jani Nikula 2019-08-06  430  
cd19154608610a Stanislav Lisovskiy 2020-05-20  431  int 
skl_bw_calc_min_cdclk(struct intel_atomic_state *state)
cd19154608610a Stanislav Lisovskiy 2020-05-20  432  {
cd19154608610a Stanislav Lisovskiy 2020-05-20  433  struct drm_i915_private 
*dev_priv = to_i915(state->base.dev);
cac91e671ad5dc Stanislav Lisovskiy 2020-05-22  434  struct intel_bw_state 
*new_bw_state = NULL;
cac91e671ad5dc Stanislav Lisovskiy 2020-05-22  435  struct intel_bw_state 
*old_bw_state = NULL;
cd19154608610a Stanislav Lisovskiy 2020-05-20  436  const struct 
intel_crtc_state *crtc_state;
cd19154608610a Stanislav Lisovskiy 2020-05-20  437  struct intel_crtc *crtc;
cd19154608610a Stanislav Lisovskiy 2020-05-20  438  int max_bw = 0;
cd19154608610a Stanislav Lisovskiy 2020-05-20  439  int slice_id;
21b0324886122a Stanislav Lisovskiy 2020-05-26  440  enum pipe pipe;
cac91e671ad5dc Stanislav Lisovskiy 2020-05-22  441  int i;
cd19154608610a Stanislav Lisovskiy 2020-05-20  442  
cd19154608610a Stanislav Lisovskiy 2020-05-20  443  
for_each_new_intel_crtc_in_state(state, crtc, crtc_state, i) {
cd19154608610a Stanislav Lisovskiy 2020-05-20  444  enum plane_id 
plane_id;
cd19154608610a Stanislav Lisovskiy 2020-05-20  445  struct 
intel_dbuf_bw *crtc_bw;
cd19154608610a Stanislav Lisovskiy 2020-05-20  446  
cd19154608610a Stanislav Lisovskiy 2020-05-20  447  new_bw_state = 
intel_atomic_get_bw_state(state);
cd19154608610a Stanislav Lisovskiy 2020-05-20  448  if 
(IS_ERR(new_bw_state))
cd19154608610a Stanislav Lisovskiy 2020-05-20  449  return 
PTR_ERR(new_bw_state);
cd19154608610a Stanislav Lisovskiy 2020-05-20  450  
21b0324886122a Stanislav Lisovskiy 2020-05-26  451  old_bw_state = 
intel_atomic_get_old_bw_state(state);
21b0324886122a Stanislav Lisovskiy 2020-05-26  452  
21b0324886122a Stanislav Lisovskiy 2020-05-26 @453  crtc_bw = 
_bw_state->dbuf_bw[pipe];
cd19154608610a Stanislav Lisovskiy 2020-05-20  454  
cd19154608610a Stanislav Lisovskiy 2020-05-20  455  
memset(_bw->used_bw, 0, sizeof(crtc_bw->used_bw));
cd19154608610a Stanislav Lisovskiy 2020-05-20  456  
cd19154608610a Stanislav Lisovskiy 2020-05-20  457  
for_each_plane_id_on_crtc(crtc, plane_id) {
cd19154608610a Stanislav Lisovskiy 2020-05-20  458  const 
struct skl_ddb_entry *plane_alloc =
cd19154608610a Stanislav Lisovskiy 2020-05-20  459  
_state->wm.skl.plane_ddb_y[plane_id];
cd19154608610a Stanislav Lisovskiy 2020-05-20  460  const 
struct skl_ddb_entry *uv_plane_alloc =
cd19154608610a Stanislav Lisovskiy 2020-05-20  461  
_state->wm.skl.plane_ddb_uv[plane_id];
cd19154608610a Stanislav Lisovskiy 2020-05-20  462  
unsigned int data_rate = crtc_state->data_rate[plane_id];
cd19154608610a Stanislav Lisovskiy 2020-05-20  463  
unsigned int dbuf_mask = 0;
cd19154608610a Stanislav Lisovskiy 2020-05-20  464  
cd19154608610a Stanislav Lisovskiy 2020-05-20  465  
dbuf_mask |= skl_ddb_dbuf_slice_mask(dev_priv, plane_alloc);
cd19154608610a Stanislav Lisovskiy 2020-05-20  466  
dbu

[kbuild] drivers/infiniband/core/cm.c:882:19-29: ERROR: function cm_finalize_id called on line 2136 inside lock on line 2135 but uses GFP_KERNEL

2020-05-31 Thread kbuild test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: "Jason, Gunthorpe," 
CC: Leon Romanovsky 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   bdc48fa11e46f867ea4d75fa59ee87a7f48be144
commit: c206f8bad15d30f1e35821c21a2fb146e4668ebf RDMA/cm: Make it clearer how 
concurrency works in cm_req_handler()
date:   3 months ago
:: branch date: 3 hours ago
:: commit date: 3 months ago
config: arc-randconfig-c021-20200531 (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 
Reported-by: Julia Lawall 


coccinelle warnings: (new ones prefixed by >>)

>> drivers/infiniband/core/cm.c:882:19-29: ERROR: function cm_finalize_id 
>> called on line 2136 inside lock on line 2135 but uses GFP_KERNEL

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c206f8bad15d30f1e35821c21a2fb146e4668ebf
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout c206f8bad15d30f1e35821c21a2fb146e4668ebf
vim +882 drivers/infiniband/core/cm.c

98f67156a80f37 Jason Gunthorpe 2020-03-10  874  
98f67156a80f37 Jason Gunthorpe 2020-03-10  875  /*
98f67156a80f37 Jason Gunthorpe 2020-03-10  876   * Make the ID visible to the 
MAD handlers and other threads that use the
98f67156a80f37 Jason Gunthorpe 2020-03-10  877   * xarray.
98f67156a80f37 Jason Gunthorpe 2020-03-10  878   */
98f67156a80f37 Jason Gunthorpe 2020-03-10  879  static void 
cm_finalize_id(struct cm_id_private *cm_id_priv)
98f67156a80f37 Jason Gunthorpe 2020-03-10  880  {
98f67156a80f37 Jason Gunthorpe 2020-03-10  881  
xa_store_irq(_id_table, cm_local_id(cm_id_priv->id.local_id),
98f67156a80f37 Jason Gunthorpe 2020-03-10 @882   
cm_id_priv, GFP_KERNEL);
98f67156a80f37 Jason Gunthorpe 2020-03-10  883  }
98f67156a80f37 Jason Gunthorpe 2020-03-10  884  

:: The code at line 882 was first introduced by commit
:: 98f67156a80f37db70ec64787020b1f9bc8aea8c RDMA/cm: Simplify establishing 
a listen cm_id

:: TO: Jason Gunthorpe 
:: CC: Jason Gunthorpe 

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.config.gz
Description: application/gzip
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] Re: [jlayton:ceph-fscache-iter 76/77] fs/ceph/addr.c:225 ceph_fsreq_issue_op() error: uninitialized symbol 'err'.

2020-05-31 Thread Chen, Rong A




On 5/31/2020 5:44 AM, Dan Carpenter wrote:

On Sat, May 30, 2020 at 04:49:40PM -0400, Jeff Layton wrote:

I wonder -- is there a way to name my branches so that they don't get
picked up by the 0-day service? I generally like the testing, but when I
still have a branch that's not yet fully baked it's probably a bit of
waste. Maybe if we could prefix it with "wip-" or something?

It doesn't take time from me.  You can ignore the Reported-by tags for
new devel work, no one will be offended.

There is a way to disable it but I forget how.  It should probably be
added to the FAQ.  https://01.org/lkp/documentation/0-day-test-service


Hi all,

We have a FAQ for this: https://github.com/intel/lkp-tests/wiki/LKP-FAQ

Best Regards,
Rong Chen
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] Re: [PATCH 1/4] scsi: convert target lookup to xarray

2020-05-31 Thread Dan Carpenter
Hi Hannes,

[auto build test WARNING on mkp-scsi/for-next]
[also build test WARNING on scsi/for-next v5.7-rc7 next-20200529]
[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/Hannes-Reinecke/scsi-use-xarray-for-devices-and-targets/20200527-231824
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
config: x86_64-randconfig-m001-20200529 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 
Reported-by: Dan Carpenter 

smatch warnings:
drivers/scsi/scsi_scan.c:482 scsi_alloc_target() warn: inconsistent returns 
'*shost->host_lock'.
drivers/scsi/scsi_scan.c:482 scsi_alloc_target() warn: inconsistent returns 
'flags'.

# 
https://github.com/0day-ci/linux/commit/45b149b239ea9a86968ddbd8ecda1e6c44937b68
git remote add linux-review https://github.com/0day-ci/linux
git remote update linux-review
git checkout 45b149b239ea9a86968ddbd8ecda1e6c44937b68
vim +482 drivers/scsi/scsi_scan.c

^1da177e4c3f41 Linus Torvalds 2005-04-16  392  static struct 
scsi_target *scsi_alloc_target(struct device *parent,
^1da177e4c3f41 Linus Torvalds 2005-04-16  393   
 int channel, uint id)
^1da177e4c3f41 Linus Torvalds 2005-04-16  394  {
^1da177e4c3f41 Linus Torvalds 2005-04-16  395   struct Scsi_Host *shost 
= dev_to_shost(parent);
^1da177e4c3f41 Linus Torvalds 2005-04-16  396   struct device *dev = 
NULL;
^1da177e4c3f41 Linus Torvalds 2005-04-16  397   unsigned long flags;
^1da177e4c3f41 Linus Torvalds 2005-04-16  398   const int size = 
sizeof(struct scsi_target)
^1da177e4c3f41 Linus Torvalds 2005-04-16  399   + 
shost->transportt->target_size;
5c44cd2afad3f7 james.sm...@emulex.com 2005-06-10  400   struct scsi_target 
*starget;
^1da177e4c3f41 Linus Torvalds 2005-04-16  401   struct scsi_target 
*found_target;
e63ed0d7a98014 James Bottomley2014-01-21  402   int error, ref_got;
45b149b239ea9a Hannes Reinecke2020-05-27  403   unsigned long tid;
^1da177e4c3f41 Linus Torvalds 2005-04-16  404  
24669f75a3231f Jes Sorensen   2006-01-16  405   starget = kzalloc(size, 
GFP_KERNEL);
^1da177e4c3f41 Linus Torvalds 2005-04-16  406   if (!starget) {
cadbd4a5e36dde Harvey Harrison2008-07-03  407   printk(KERN_ERR 
"%s: allocation failure\n", __func__);
^1da177e4c3f41 Linus Torvalds 2005-04-16  408   return NULL;
^1da177e4c3f41 Linus Torvalds 2005-04-16  409   }
^1da177e4c3f41 Linus Torvalds 2005-04-16  410   dev = >dev;
^1da177e4c3f41 Linus Torvalds 2005-04-16  411   device_initialize(dev);
e63ed0d7a98014 James Bottomley2014-01-21  412   
kref_init(>reap_ref);
^1da177e4c3f41 Linus Torvalds 2005-04-16  413   dev->parent = 
get_device(parent);
71610f55fa4db6 Kay Sievers2008-12-03  414   dev_set_name(dev, 
"target%d:%d:%d", shost->host_no, channel, id);
b0ed43360fdca2 Hannes Reinecke2008-03-18  415   dev->bus = 
_bus_type;
b0ed43360fdca2 Hannes Reinecke2008-03-18  416   dev->type = 
_target_type;
^1da177e4c3f41 Linus Torvalds 2005-04-16  417   starget->id = id;
^1da177e4c3f41 Linus Torvalds 2005-04-16  418   starget->channel = 
channel;
f0c0a376d0fcd4 Mike Christie  2008-08-17  419   starget->can_queue = 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16  420   
INIT_LIST_HEAD(>devices);
643eb2d932c97a James Bottomley2008-03-22  421   starget->state = 
STARGET_CREATED;
7c9d6f16f50d3a Alan Stern 2007-01-08  422   starget->scsi_level = 
SCSI_2;
c53a284f8be237 Edward Goggin  2009-04-09  423   
starget->max_target_blocked = SCSI_DEFAULT_TARGET_BLOCKED;
45b149b239ea9a Hannes Reinecke2020-05-27  424   tid = 
scsi_target_index(starget);
ffedb4522571ac James Bottomley2006-02-23  425   retry:
^1da177e4c3f41 Linus Torvalds 2005-04-16  426   
spin_lock_irqsave(shost->host_lock, flags);

^^
^1da177e4c3f41 Linus Torvalds 2005-04-16  427  
45b149b239ea9a Hannes Reinecke2020-05-27  428   found_target = 
xa_load(>__targets, tid);
^1da177e4c3f41 Linus Torvalds 2005-04-16  429   if (found_target)
^1da177e4c3f41 Linus Torvalds 2005-04-16  430   goto found;
45b149b239ea9a Hannes Reinecke2020-05-27  431   if 
(xa_insert(>__targets, tid, starget, GFP_KERNEL)) {
45b149b239ea9a Hannes Reinecke2020-05-27  432   
dev_printk(KERN_ERR, dev, "target index busy\n");
45b149b239ea9a Hannes Reinecke2020-05-27  433   

[kbuild] Re: [PATCH v6] drm/ioctl: Add a ioctl to set and get a label on GEM objects

2020-05-31 Thread kbuild test robot
CC: kbuild-...@lists.01.org
In-Reply-To: <20200528170604.22476-1-rohan.g...@collabora.com>
References: <20200528170604.22476-1-rohan.g...@collabora.com>
TO: Rohan Garg 
TO: dri-de...@lists.freedesktop.org
CC: ker...@collabora.com
CC: emil.l.veli...@gmail.com

Hi Rohan,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on drm-exynos/exynos-drm-next]
[also build test WARNING on drm-intel/for-linux-next 
tegra-drm/drm/tegra/for-next drm-tip/drm-tip linus/master v5.7-rc7 
next-20200529]
[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/Rohan-Garg/drm-ioctl-Add-a-ioctl-to-set-and-get-a-label-on-GEM-objects/20200531-000134
base:   https://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos.git 
exynos-drm-next
:: branch date: 16 hours ago
:: commit date: 16 hours ago
config: i386-randconfig-m021-20200531 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 
Reported-by: Dan Carpenter 

New smatch warnings:
drivers/gpu/drm/drm_gem.c:1004 drm_gem_get_label() warn: maybe return -EFAULT 
instead of the bytes remaining?

Old smatch warnings:
drivers/gpu/drm/drm_gem.c:910 drm_gem_open_ioctl() warn: inconsistent returns 
'dev->object_name_lock'.

# 
https://github.com/0day-ci/linux/commit/174b10d2bdba06efe773aa0d09e682a57a00ec67
git remote add linux-review https://github.com/0day-ci/linux
git remote update linux-review
git checkout 174b10d2bdba06efe773aa0d09e682a57a00ec67
vim +1004 drivers/gpu/drm/drm_gem.c

174b10d2bdba06 Rohan Garg 2020-05-28   978  
174b10d2bdba06 Rohan Garg 2020-05-28   979  int drm_gem_get_label(struct 
drm_device *dev, struct drm_file *file_priv,
174b10d2bdba06 Rohan Garg 2020-05-28   980struct 
drm_handle_label *args)
174b10d2bdba06 Rohan Garg 2020-05-28   981  {
174b10d2bdba06 Rohan Garg 2020-05-28   982  struct drm_gem_object *gem_obj;
174b10d2bdba06 Rohan Garg 2020-05-28   983  int len, ret;
174b10d2bdba06 Rohan Garg 2020-05-28   984  
174b10d2bdba06 Rohan Garg 2020-05-28   985  gem_obj = 
drm_gem_object_lookup(file_priv, args->handle);
174b10d2bdba06 Rohan Garg 2020-05-28   986  if (!gem_obj) {
174b10d2bdba06 Rohan Garg 2020-05-28   987  DRM_DEBUG("Failed to 
look up GEM BO %d\n", args->handle);
174b10d2bdba06 Rohan Garg 2020-05-28   988  return -ENOENT;
174b10d2bdba06 Rohan Garg 2020-05-28   989  }
174b10d2bdba06 Rohan Garg 2020-05-28   990  
174b10d2bdba06 Rohan Garg 2020-05-28   991  if (!gem_obj->label) {
174b10d2bdba06 Rohan Garg 2020-05-28   992  args->label = NULL;
174b10d2bdba06 Rohan Garg 2020-05-28   993  args->len = 0;
174b10d2bdba06 Rohan Garg 2020-05-28   994  return 0;
174b10d2bdba06 Rohan Garg 2020-05-28   995  }
174b10d2bdba06 Rohan Garg 2020-05-28   996  
174b10d2bdba06 Rohan Garg 2020-05-28   997  mutex_lock(_obj->bo_lock);
174b10d2bdba06 Rohan Garg 2020-05-28   998  len = strlen(gem_obj->label);
174b10d2bdba06 Rohan Garg 2020-05-28   999  ret = 
copy_to_user(u64_to_user_ptr(args->label), gem_obj->label,
174b10d2bdba06 Rohan Garg 2020-05-28  1000 
min(args->len, len));
174b10d2bdba06 Rohan Garg 2020-05-28  1001  mutex_unlock(_obj->bo_lock);
174b10d2bdba06 Rohan Garg 2020-05-28  1002  args->len = len;
174b10d2bdba06 Rohan Garg 2020-05-28  1003  drm_gem_object_put(gem_obj);
174b10d2bdba06 Rohan Garg 2020-05-28 @1004  return ret;
174b10d2bdba06 Rohan Garg 2020-05-28  1005  }
174b10d2bdba06 Rohan Garg 2020-05-28  1006  EXPORT_SYMBOL(drm_gem_get_label);
174b10d2bdba06 Rohan Garg 2020-05-28  1007  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.config.gz
Description: application/gzip
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org