From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com ([192.55.52.93]:3543 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754441AbeEaLLj (ORCPT ); Thu, 31 May 2018 07:11:39 -0400 Date: Thu, 31 May 2018 19:11:11 +0800 From: kbuild test robot To: Al Viro Cc: kbuild-all@01.org, linux-fsdevel@vger.kernel.org, Mike Marshall Subject: Re: [PATCH 4/4] orangefs: simplify compat ioctl handling Message-ID: <201805311834.W8ldzSow%fengguang.wu@intel.com> References: <20180528222013.18402-4-viro@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180528222013.18402-4-viro@ZenIV.linux.org.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Hi Al, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v4.17-rc7 next-20180530] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Al-Viro/vmsplice-lift-import_iovec-into-do_vmsplice/20180531-161308 reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) >> fs/orangefs/devorangefs-req.c:739:26: sparse: incorrect type in assignment (different address spaces) @@ expected void *ptr @@ got void [noderef] * fs/orangefs/devorangefs-req.c:158:16: sparse: context imbalance in 'orangefs_devreq_read' - different lock contexts for basic block vim +739 fs/orangefs/devorangefs-req.c 718 719 /* 720 * 32 bit user-space apps' ioctl handlers when kernel modules 721 * is compiled as a 64 bit one 722 */ 723 static long orangefs_devreq_compat_ioctl(struct file *filp, unsigned int cmd, 724 unsigned long args) 725 { 726 long ret; 727 728 /* Check for properly constructed commands */ 729 ret = check_ioctl_command(cmd); 730 if (ret < 0) 731 return ret; 732 if (cmd == ORANGEFS_DEV_MAP) { 733 struct ORANGEFS_dev_map_desc desc; 734 struct ORANGEFS_dev_map_desc32 d32; 735 736 if (copy_from_user(&d32, (void __user *)args, sizeof(d32))) 737 return -EFAULT; 738 > 739 desc.ptr = compat_ptr(d32.ptr); 740 desc.total_size = d32.total_size; 741 desc.size = d32.size; 742 desc.count = d32.count; 743 return orangefs_bufmap_initialize(&desc); 744 } 745 /* no other ioctl requires translation */ 746 return dispatch_ioctl_command(cmd, args); 747 } 748 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation