Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp3023775rwi; Tue, 1 Nov 2022 15:00:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6x5OEQqgZYG9CAJ5HD/ohdesTZvv0mxKVh6RSBgr3Asy87xvhW1SzxHcMIehR2pJyejtx7 X-Received: by 2002:a17:907:9688:b0:7a5:74eb:d12b with SMTP id hd8-20020a170907968800b007a574ebd12bmr20668564ejc.60.1667340057029; Tue, 01 Nov 2022 15:00:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667340057; cv=none; d=google.com; s=arc-20160816; b=QoKETJcPqiOCQFsRda2vq/bjxZmvIG11UyGsmhCqs6Ka5ls3xp65i+1g9LA856A+l0 CWC/R7xOG91NFCwqGH54zf7ozejz+H9wq10vDVNPVpJSQkNiw0lWALiad50UgGKDaSB+ RPQ+saU7924afWjS3Qe3UXn2FhSjSJKR0jaoa1NIAz+TNJc7hVamNpYnlmGrXi37r0D7 R8+fw/2OV1G8Ojee9YyLxw5jXDK4prQatIeANqBVdf5jCl27Az+r6HRJN6Gfu35FQE2D x92TZxsBfxHRFAsT4HEa23vn9firJlxxMEqb11ejWGBZ3oiVqeeQwI7Rx2W7uE4IZ3BY Jf1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BSHDc3o4H/7VbN5hmOhWDJwUTgNQ3lK69UcV9TK/T/4=; b=P6+SCTLGKA21qH4iTrfqbk7EPjqM3Wa88FVBk/Ahog2w5DSGyDu5n8m21Ewt2Y/ePY QU/fNxAYVjyuogr6Kk7Ot+zJefbbt4FEGOhxegrePjPgDCH1sOnlG1u/4jGBq4puDnxa w/apjC1oNp9VCL1b+cKuqs7eMVueIi0tcna8OMGQoDimmq6iY855gxhWEApkSjz32Uqr 4v4qm3zXuA1qsSSAbve0rw7mm6+T+zox3HFaz82rW5xgDTcEYIPRdfoxwjuUZMK6Mfra xIU9T62xAFI/cHrguqU8V373RxY6BMHEMTdtQWGCoXC8ccJ3cHX/2JtNJV9ziE69MIGk voyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KHnOzRTs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt13-20020a1709072d8d00b007836ec6999dsi15375684ejc.904.2022.11.01.15.00.33; Tue, 01 Nov 2022 15:00:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KHnOzRTs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230210AbiKAVmV (ORCPT + 96 others); Tue, 1 Nov 2022 17:42:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbiKAVmT (ORCPT ); Tue, 1 Nov 2022 17:42:19 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC31D1EEDD for ; Tue, 1 Nov 2022 14:42:18 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id g129so14572695pgc.7 for ; Tue, 01 Nov 2022 14:42:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=BSHDc3o4H/7VbN5hmOhWDJwUTgNQ3lK69UcV9TK/T/4=; b=KHnOzRTsoFu5vAVo9yFbA4g16D98n0phDlNHDms8avBVGv0UxW6MLhwgtZUHDkxAgW 2EQB/EXDs2iSl4Kv/gJXbTV6+IDrsNsY18NIE33ml5+JSXnbDQtmjnKdpnJQl+VxUFTz QmKP0X41NdeON7l8xtzywSuelDrRfmO2m0edk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=BSHDc3o4H/7VbN5hmOhWDJwUTgNQ3lK69UcV9TK/T/4=; b=UjOKHe9QS+yn13B1rijwP6fFokesmwk/Yc7SRtaGnr5rpY+4FWcWXvkKc4/L3nKFDf LYhpG3ArwGqet2OMTJG+pgmmpwvZRCVxF0aDeNYzUYH0dxG6z7xhhk6/UMomgzcQu32b j1PAkoWTJhngcx3utol9cGxgAjRkAgi68R5Rf5wDKzjopAJPIkt6ZNc0C3QlA+lU3pes wCcY+sAcRbki//WC9Ia/i8SzGxYkPDIWSmcweQjBTc0vJICDBBQ+iDwHiK584xRKZMIy LvRy/cFeAeHfKBhE9q0QeppVF5RC76vWuo2pd+nsmg6K0TAOS7vxf2QZx1iZLNRafZQL 3ZrA== X-Gm-Message-State: ACrzQf02O7rSCl33RvD8eZQIoCbqKAsbqppWXRyVruLDzOO0S+idlv29 glUv7GoFMuRXeOXDWYz0x37ZZtJ6AhWdFw== X-Received: by 2002:a63:2b10:0:b0:451:5df1:4b17 with SMTP id r16-20020a632b10000000b004515df14b17mr18357653pgr.61.1667338938273; Tue, 01 Nov 2022 14:42:18 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id y7-20020aa78f27000000b0056bb36c047asm6984687pfr.105.2022.11.01.14.42.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Nov 2022 14:42:17 -0700 (PDT) Date: Tue, 1 Nov 2022 14:42:17 -0700 From: Kees Cook To: kernel test robot Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: drivers/media/usb/pvrusb2/pvrusb2-hdw.c:3289 pvr2_hdw_get_tuner_status() warn: inconsistent indenting Message-ID: <202211011441.0AB5FB92B6@keescook> References: <202211012349.5BDBLCup-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202211012349.5BDBLCup-lkp@intel.com> X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 01, 2022 at 11:19:40PM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: 5aaef24b5c6d4246b2cac1be949869fa36577737 > commit: f68f2ff91512c199ec24883001245912afc17873 fortify: Detect struct member overflows in memcpy() at compile-time > date: 9 months ago > config: x86_64-randconfig-m001-20221031 > compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 > > If you fix the issue, kindly add following tag where applicable > | Reported-by: kernel test robot > > smatch warnings: > drivers/media/usb/pvrusb2/pvrusb2-hdw.c:3289 pvr2_hdw_get_tuner_status() warn: inconsistent indenting Hi! I have no idea why this is being reported to me. The fortify changes have nothing to do with the indenting in pvrusb2-hdw.c. :) -Kees > > vim +3289 drivers/media/usb/pvrusb2/pvrusb2-hdw.c > > 432907f750b27a drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2008-08-31 3279 > 432907f750b27a drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2008-08-31 3280 > 18103c57b0168e drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-01-20 3281 /* Return information about the tuner */ > 18103c57b0168e drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-01-20 3282 int pvr2_hdw_get_tuner_status(struct pvr2_hdw *hdw,struct v4l2_tuner *vtp) > 18103c57b0168e drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-01-20 3283 { > 18103c57b0168e drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-01-20 3284 LOCK_TAKE(hdw->big_lock); do { > 18103c57b0168e drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-01-20 3285 if (hdw->tuner_signal_stale) { > a51f5000b79100 drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2009-03-06 3286 pvr2_hdw_status_poll(hdw); > 18103c57b0168e drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-01-20 3287 } > 18103c57b0168e drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-01-20 3288 memcpy(vtp,&hdw->tuner_signal_info,sizeof(struct v4l2_tuner)); > 18103c57b0168e drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-01-20 @3289 } while (0); LOCK_GIVE(hdw->big_lock); > 18103c57b0168e drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-01-20 3290 return 0; > d855497edbfbf9 drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2006-06-26 3291 } > d855497edbfbf9 drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2006-06-26 3292 > > :::::: The code at line 3289 was first introduced by commit > :::::: 18103c57b0168ebc0401702d483fe131f0aecc7a V4L/DVB (5081): Pvrusb2: VIDIOC_G_TUNER cleanup > > :::::: TO: Mike Isely > :::::: CC: Mauro Carvalho Chehab > > -- > 0-DAY CI Kernel Test Service > https://01.org/lkp -- Kees Cook