Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp442038rdb; Thu, 2 Nov 2023 08:04:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGM9DezkX5ne0VF96gsX+MsLqTHS4CPjc/zjnpk0GGx6XAiRaM1gPTKURQZq5hv8MyJVwsL X-Received: by 2002:a05:6a20:7487:b0:15e:b8a1:57b0 with SMTP id p7-20020a056a20748700b0015eb8a157b0mr16694485pzd.39.1698937499414; Thu, 02 Nov 2023 08:04:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698937499; cv=none; d=google.com; s=arc-20160816; b=DpOQSd41Vqud/2vF9gqo4HrbZM75wV+xiu6aP6xy6IEnacWM0VY3iRuR2yy8B3QsFB deGOzJUtvZpexRFeyWp9fPzLM8rAyMFSyOt/GbieLSwE8iLg60Arat62HyIOSk6yKTlB 94JckyL3PhwtVvPZRia/vuirrXIzhGwa5zefXQF2WTuP71D7o3qrHWtVxFPor9drJdZP 7DWpoTB92s5SngdlzOpuLHRWPOt/SeJ3q8ms5mWR1/+LpvLYZ8QutT5NGWYkG2LjX3by p+jkfaoLd8T6ENoRGklNrvz9qB/7OD37NhKrrKmql4xvkv9yVthWLNcfaJEhbmVhwH3n BE8Q== 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=/rASJSKe4JP3e//rRU2RwlalDKpL26v3hNSkf6QzCU8=; fh=NbxG+6m+t8FyzTL0+zU9jGU6ySEUjtOeEko/uLBVVW0=; b=vXot7zSS4B+C/pIBZ8xPrnf6QJ6c3TY0EBvrY3kUZLI/E1Hzt3M9NXONjcCQep1+sk HjhvR7+shucRyOVnQ0VamPp8PzQqbFZBz/H8CgluahP2iSuREl/7LZt+KCeJS08LioSW M8TF/H6VJbqBUW/KEa/g1KYAtIjdwDqAdUZg6HWgNgo5ceSvOwjtvs5L6ZAWEB3NxsVW ePxlBiIkyhFgDLjdK893N3MQ2yl6c8oiYWAi5NkmPM6c/vA6J48xxquksIk8lbZ0RaNp CHkKXNbEnW9A/23mT74b8s5sYwQQj9cntD2tNFLuwuWkbZjUgoQBN0JMgZp+byP/rKNI qv7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YpPHOmi+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id t18-20020a6564d2000000b005b9600b9f50si1912493pgv.214.2023.11.02.08.04.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 08:04:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YpPHOmi+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 0CCD08112AA0; Thu, 2 Nov 2023 08:04:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233451AbjKBPEL (ORCPT + 99 others); Thu, 2 Nov 2023 11:04:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232145AbjKBPEK (ORCPT ); Thu, 2 Nov 2023 11:04:10 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46D99181; Thu, 2 Nov 2023 08:04:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698937444; x=1730473444; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Cg9fqJR9fIKmGvrVxCoifHnJ6DMc/BhIrxzOVZ087yA=; b=YpPHOmi+bxNPNZEyNUugMzLT9EpEGtSo5a63N1CYDgUAc85Cf+Yqzuks HDKhGZIPm1OSq//733R2UuWgebH1jzifpwYFJOS1PTPosCGzyNflH4BJx MnH8Xi23D/RaTwirj8zjdJckIcZqi/ZGU6ML1jWKAkkdwzdj8yU987cCC /pGs/TLI7UxxxjTXjn5EyuOglN8/UrVxdwKCU90WlZy56Q+WaZnciBCk7 hl0NKhzYk2v7NhoQHVp8B51xQ2NNo3WFlP8/x+qAl0M362o0Vig2HcCbA oaCXlU4euvIVz3OdASpYjE/6a1YPuqww2n89lbmBRs/iluihmqVwm1yKY w==; X-IronPort-AV: E=McAfee;i="6600,9927,10882"; a="373770355" X-IronPort-AV: E=Sophos;i="6.03,271,1694761200"; d="scan'208";a="373770355" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2023 08:03:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10882"; a="711170460" X-IronPort-AV: E=Sophos;i="6.03,271,1694761200"; d="scan'208";a="711170460" Received: from lkp-server01.sh.intel.com (HELO 17d9e85e5079) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 02 Nov 2023 08:03:46 -0700 Received: from kbuild by 17d9e85e5079 with local (Exim 4.96) (envelope-from ) id 1qyZEW-0001Xq-21; Thu, 02 Nov 2023 15:03:44 +0000 Date: Thu, 2 Nov 2023 23:03:40 +0800 From: kernel test robot To: Justin Stitt , Hannes Reinecke , "James E.J. Bottomley" , "Martin K. Petersen" Cc: oe-kbuild-all@lists.linux.dev, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, Justin Stitt Subject: Re: [PATCH] scsi: libfc: replace deprecated strncpy with memcpy Message-ID: <202311022256.mWiYJshd-lkp@intel.com> References: <20231030-strncpy-drivers-scsi-libfc-fc_encode-h-v1-1-c08c2be6befa@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231030-strncpy-drivers-scsi-libfc-fc_encode-h-v1-1-c08c2be6befa@google.com> X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 02 Nov 2023 08:04:53 -0700 (PDT) Hi Justin, kernel test robot noticed the following build warnings: [auto build test WARNING on ffc253263a1375a65fa6c9f62a893e9767fbebfa] url: https://github.com/intel-lab-lkp/linux/commits/Justin-Stitt/scsi-libfc-replace-deprecated-strncpy-with-memcpy/20231031-063815 base: ffc253263a1375a65fa6c9f62a893e9767fbebfa patch link: https://lore.kernel.org/r/20231030-strncpy-drivers-scsi-libfc-fc_encode-h-v1-1-c08c2be6befa%40google.com patch subject: [PATCH] scsi: libfc: replace deprecated strncpy with memcpy config: s390-defconfig (https://download.01.org/0day-ci/archive/20231102/202311022256.mWiYJshd-lkp@intel.com/config) compiler: s390-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231102/202311022256.mWiYJshd-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202311022256.mWiYJshd-lkp@intel.com/ All warnings (new ones prefixed by >>): In function 'zfcp_fc_gspn', inlined from 'zfcp_fc_sym_name_update' at drivers/s390/scsi/zfcp_fc.c:951:8: >> drivers/s390/scsi/zfcp_fc.c:877:15: warning: 'strstr' argument 1 declared attribute 'nonstring' [-Wstringop-overread] 877 | !(strstr(gspn_rsp->gspn.fp_name, devno))) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/scsi/libfc.h:21, from drivers/s390/scsi/zfcp_fc.c:19: include/uapi/scsi/fc/fc_ns.h: In function 'zfcp_fc_sym_name_update': include/uapi/scsi/fc/fc_ns.h:148:17: note: argument 'fp_name' declared here 148 | char fp_name[] __nonstring; | ^~~~~~~ vim +877 drivers/s390/scsi/zfcp_fc.c cc8c282963bd25 Swen Schillig 2008-06-10 844 038d9446a9e601 Christof Schmitt 2011-02-22 845 static int zfcp_fc_gspn(struct zfcp_adapter *adapter, 038d9446a9e601 Christof Schmitt 2011-02-22 846 struct zfcp_fc_req *fc_req) 038d9446a9e601 Christof Schmitt 2011-02-22 847 { 038d9446a9e601 Christof Schmitt 2011-02-22 848 DECLARE_COMPLETION_ONSTACK(completion); 038d9446a9e601 Christof Schmitt 2011-02-22 849 char devno[] = "DEVNO:"; 038d9446a9e601 Christof Schmitt 2011-02-22 850 struct zfcp_fsf_ct_els *ct_els = &fc_req->ct_els; 038d9446a9e601 Christof Schmitt 2011-02-22 851 struct zfcp_fc_gspn_req *gspn_req = &fc_req->u.gspn.req; 038d9446a9e601 Christof Schmitt 2011-02-22 852 struct zfcp_fc_gspn_rsp *gspn_rsp = &fc_req->u.gspn.rsp; 038d9446a9e601 Christof Schmitt 2011-02-22 853 int ret; 038d9446a9e601 Christof Schmitt 2011-02-22 854 038d9446a9e601 Christof Schmitt 2011-02-22 855 zfcp_fc_ct_ns_init(&gspn_req->ct_hdr, FC_NS_GSPN_ID, 038d9446a9e601 Christof Schmitt 2011-02-22 856 FC_SYMBOLIC_NAME_SIZE); 038d9446a9e601 Christof Schmitt 2011-02-22 857 hton24(gspn_req->gspn.fp_fid, fc_host_port_id(adapter->scsi_host)); 038d9446a9e601 Christof Schmitt 2011-02-22 858 038d9446a9e601 Christof Schmitt 2011-02-22 859 sg_init_one(&fc_req->sg_req, gspn_req, sizeof(*gspn_req)); 038d9446a9e601 Christof Schmitt 2011-02-22 860 sg_init_one(&fc_req->sg_rsp, gspn_rsp, sizeof(*gspn_rsp)); 038d9446a9e601 Christof Schmitt 2011-02-22 861 038d9446a9e601 Christof Schmitt 2011-02-22 862 ct_els->handler = zfcp_fc_complete; 038d9446a9e601 Christof Schmitt 2011-02-22 863 ct_els->handler_data = &completion; 038d9446a9e601 Christof Schmitt 2011-02-22 864 ct_els->req = &fc_req->sg_req; 038d9446a9e601 Christof Schmitt 2011-02-22 865 ct_els->resp = &fc_req->sg_rsp; 038d9446a9e601 Christof Schmitt 2011-02-22 866 038d9446a9e601 Christof Schmitt 2011-02-22 867 ret = zfcp_fsf_send_ct(&adapter->gs->ds, ct_els, NULL, 038d9446a9e601 Christof Schmitt 2011-02-22 868 ZFCP_FC_CTELS_TMO); 038d9446a9e601 Christof Schmitt 2011-02-22 869 if (ret) 038d9446a9e601 Christof Schmitt 2011-02-22 870 return ret; 038d9446a9e601 Christof Schmitt 2011-02-22 871 038d9446a9e601 Christof Schmitt 2011-02-22 872 wait_for_completion(&completion); 038d9446a9e601 Christof Schmitt 2011-02-22 873 if (ct_els->status) 038d9446a9e601 Christof Schmitt 2011-02-22 874 return ct_els->status; 038d9446a9e601 Christof Schmitt 2011-02-22 875 038d9446a9e601 Christof Schmitt 2011-02-22 876 if (fc_host_port_type(adapter->scsi_host) == FC_PORTTYPE_NPIV && 038d9446a9e601 Christof Schmitt 2011-02-22 @877 !(strstr(gspn_rsp->gspn.fp_name, devno))) 038d9446a9e601 Christof Schmitt 2011-02-22 878 snprintf(fc_host_symbolic_name(adapter->scsi_host), 038d9446a9e601 Christof Schmitt 2011-02-22 879 FC_SYMBOLIC_NAME_SIZE, "%s%s %s NAME: %s", 038d9446a9e601 Christof Schmitt 2011-02-22 880 gspn_rsp->gspn.fp_name, devno, 038d9446a9e601 Christof Schmitt 2011-02-22 881 dev_name(&adapter->ccw_device->dev), 038d9446a9e601 Christof Schmitt 2011-02-22 882 init_utsname()->nodename); 038d9446a9e601 Christof Schmitt 2011-02-22 883 else 820109fb11f24b Wolfram Sang 2022-08-18 884 strscpy(fc_host_symbolic_name(adapter->scsi_host), 038d9446a9e601 Christof Schmitt 2011-02-22 885 gspn_rsp->gspn.fp_name, FC_SYMBOLIC_NAME_SIZE); 038d9446a9e601 Christof Schmitt 2011-02-22 886 038d9446a9e601 Christof Schmitt 2011-02-22 887 return 0; 038d9446a9e601 Christof Schmitt 2011-02-22 888 } 038d9446a9e601 Christof Schmitt 2011-02-22 889 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki