From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============5869871344177136697==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH 06/17] fortify: Detect struct member overflows in memcpy() at compile-time Date: Wed, 15 Dec 2021 03:06:54 +0800 Message-ID: <202112150326.Cu6pK9ir-lkp@intel.com> In-Reply-To: <20211213223331.135412-7-keescook@chromium.org> List-Id: --===============5869871344177136697== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Kees, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.16-rc5 next-20211213] [cannot apply to rdma/for-next axboe-block/for-next kvm/queue tip/x86/core = mkp-scsi/for-next jejb-scsi/for-next] [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/Kees-Cook/Enable-strict-co= mpile-time-memcpy-fortify-checks/20211214-064002 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = aa50faff4416c869b52dff68a937c84d29e12f4b config: i386-randconfig-m021-20211214 (https://download.01.org/0day-ci/arch= ive/20211215/202112150326.Cu6pK9ir-lkp(a)intel.com/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 New smatch warnings: drivers/media/usb/pvrusb2/pvrusb2-hdw.c:3289 pvr2_hdw_get_tuner_status() wa= rn: inconsistent indenting Old smatch warnings: drivers/media/usb/pvrusb2/pvrusb2-hdw.c:1730 pvr2_hdw_set_streaming() warn:= inconsistent indenting drivers/media/usb/pvrusb2/pvrusb2-hdw.c:3461 pvr2_hdw_cpufw_set_enabled() w= arn: inconsistent indenting drivers/media/usb/pvrusb2/pvrusb2-hdw.c:3501 pvr2_hdw_cpufw_get() warn: inc= onsistent indenting vim +3289 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 432907f750b27aa drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2008-0= 8-31 3279 = 432907f750b27aa drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2008-0= 8-31 3280 = 18103c57b0168eb drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-0= 1-20 3281 /* Return information about the tuner */ 18103c57b0168eb drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-0= 1-20 3282 int pvr2_hdw_get_tuner_status(struct pvr2_hdw *hdw,struct v4l2_= tuner *vtp) 18103c57b0168eb drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-0= 1-20 3283 { 18103c57b0168eb drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-0= 1-20 3284 LOCK_TAKE(hdw->big_lock); do { 18103c57b0168eb drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-0= 1-20 3285 if (hdw->tuner_signal_stale) { a51f5000b791003 drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2009-0= 3-06 3286 pvr2_hdw_status_poll(hdw); 18103c57b0168eb drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-0= 1-20 3287 } 18103c57b0168eb drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-0= 1-20 3288 memcpy(vtp,&hdw->tuner_signal_info,sizeof(struct v4l2_tuner)); 18103c57b0168eb drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-0= 1-20 @3289 } while (0); LOCK_GIVE(hdw->big_lock); 18103c57b0168eb drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-0= 1-20 3290 return 0; d855497edbfbf9e drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2006-0= 6-26 3291 } d855497edbfbf9e drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2006-0= 6-26 3292 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============5869871344177136697==--