Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp35207rwb; Tue, 8 Nov 2022 21:54:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf4jDrJbSK4BI61A0nPXbz5v6ix2FX+zVqJvQ84k2cPGra9zZg6SYabbADB7Da6i516o17wH X-Received: by 2002:a17:906:eec1:b0:782:6384:76be with SMTP id wu1-20020a170906eec100b00782638476bemr5680641ejb.756.1667973270870; Tue, 08 Nov 2022 21:54:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667973270; cv=none; d=google.com; s=arc-20160816; b=hGbanu0XdxMkeAe37lPmdzwqhfWVyFUMrCXpl8xm7Tn6oIuKvPBx9YEwWDZ3rD+cBH bTwL2/5qvp0YZBccyLVkF6Njbg0qXLKU0foX5d4BShpAbZE2mY7XMXy06dPtS0vATJzx Qks/27X7D0X9KbeZ8KZmIbHO1DFgy7qiRVO9lcMzlsueRjpQ7gg7ZEoSwJk+SdzN3J1r 6nCHfqpZE0kB0mU1wYQG2s4qmn5lRdHMT5Idrg3FI1d11PbOY6+CMoUOeuXg/FL99uOD u29eM3QbyjQGTwAW1SdPZ2METO/3YL0cVCJ7+z1+vJN6XBbqkKE9hYsSiiJgoY9xdEiM j62A== 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 :message-id:subject:cc:to:from:date:dkim-signature; bh=v3jmOsDYD3eDGL/HXAFuu3q5wn5DTfdd7ABqci8j+7Y=; b=cDc8nfpN/P8CSGEqgyn3byDFUGRhzxaHaq/Tymly1RuYJeanhB7zyhInm0kY6jNy4y TYWZjwLZqPHMND6loUISZG28nLSsLOuAq3mchi/yS/cOHPrpHs0ijbXHm8oT3S539QLK k7LEZB2D0UBF2TCpclF2v/NbsCcHOVQr8lLVk/CQrZPLvRpxxtMVDy/LS8PO3zbilfT8 +1+6X3SLI5XVHnzZ5CUdUH5+8w+FThz7K3EdbSHHsIlNRjNDFCgB7qsPZf31iV//qUai d5jvxwYkzh/Ax5Y/Sne8dsXycku1CRPu6dBbvMsGvGMx9WKdrAEuOcMK0f4Hqj+IKuLx YqgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=B8PJ9mjr; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho33-20020a1709070ea100b00782f3e3bb71si16894704ejc.912.2022.11.08.21.53.47; Tue, 08 Nov 2022 21:54:30 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=B8PJ9mjr; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229567AbiKIFIn (ORCPT + 93 others); Wed, 9 Nov 2022 00:08:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbiKIFIi (ORCPT ); Wed, 9 Nov 2022 00:08:38 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6120D18E27; Tue, 8 Nov 2022 21:08:37 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id bs21so24067125wrb.4; Tue, 08 Nov 2022 21:08:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=v3jmOsDYD3eDGL/HXAFuu3q5wn5DTfdd7ABqci8j+7Y=; b=B8PJ9mjrG1f6p+hcfIm1hl3TORjKvJrBgzgSzoWH0E/sTqBNSgCEFnPDl1Zyf3OSet Fdz7067cjgBDhn9eBmrB4yGHWF2yCUeXNA6TfYtRcGBcerdDMZ6HOGLl/W/KAGa84Keg C56rxiNLaSbFwNpMomPnVm3urdSNb+t9vQFXesyPMFiEi11D7WA4aTqpBVyKV9FB4Sui Pqp3VO93yyUwiM4BxICHT4d1P59Z0RS1zYkQ+VlKbDyubn0/JbAMrtoSzbTYTfJw9ZJ4 1KpMjHuWsIlgJULBFoAjRwZDMu7EFMmHYq62IUecXdHkI+vZh9TCU0dEN9pIeHBOt9Et KHhA== 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:message-id:subject:cc :to:from:date:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=v3jmOsDYD3eDGL/HXAFuu3q5wn5DTfdd7ABqci8j+7Y=; b=WnCebYEoB+78m09DScjpM0pQCcqT/vrTt0ceMWCAEqZuwoNoOI4GdYgniH4zCHVZjr E5lt7S5vXrWyucmP/0aZOa0fPkVgD14jqULOcR6jtj1QHMnoZZvqEadjCGsZL5d72PiA rCu8fAwpW55UOQmsn6utx8J/HhoFfWwJLw+rzq2vx0gAnBa7p9N9QhK3rYuwyrO1OfKt H8XIh7YZmbqBtwoi9RMIQtqk5hRV2Oc/1XdlnIxIsKd6kRMRYk6UH+Zhv0VRkkYG5tCo H0lc1Cvt3sjhGclpILTyZXgx8RAD4ko6l3Moc3bpJrQm/BycPjlX0Hvo3HSsV0K91dYz USOw== X-Gm-Message-State: ACrzQf3UYdY7f3gyj7Xa+yTdT04qADEzjboDAvnkb1MBpRShesklVTKZ 4BQ6QOtRnmCwSjzhzHePfuA= X-Received: by 2002:adf:b353:0:b0:236:5814:f4dc with SMTP id k19-20020adfb353000000b002365814f4dcmr35860498wrd.189.1667970515291; Tue, 08 Nov 2022 21:08:35 -0800 (PST) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id b9-20020a05600010c900b002368424f89esm12041478wrx.67.2022.11.08.21.08.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Nov 2022 21:08:34 -0800 (PST) Date: Wed, 9 Nov 2022 08:08:30 +0300 From: Dan Carpenter To: oe-kbuild@lists.linux.dev, Wenchao Hao , Lee Duncan , Chris Leech , Mike Christie , "Martin K . Petersen" , "James E . J . Bottomley" Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, open-iscsi@googlegroups.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linfeilong@huawei.com, Wenchao Hao Subject: Re: [PATCH v6] scsi:iscsi: Fix multiple iscsi session unbind event sent to userspace Message-ID: <202211090606.r22uKz8I-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221108014414.3510940-1-haowenchao@huawei.com> X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,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 Hi Wenchao, https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Wenchao-Hao/scsi-iscsi-Fix-multiple-iscsi-session-unbind-event-sent-to-userspace/20221107-202840 base: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next patch link: https://lore.kernel.org/r/20221108014414.3510940-1-haowenchao%40huawei.com patch subject: [PATCH v6] scsi:iscsi: Fix multiple iscsi session unbind event sent to userspace config: m68k-randconfig-m031-20221108 compiler: m68k-linux-gcc (GCC) 12.1.0 If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Reported-by: Dan Carpenter smatch warnings: drivers/scsi/scsi_transport_iscsi.c:1691 iscsi_session_target_state_name() error: buffer overflow 'iscsi_session_target_state_names' 4 <= 4 vim +/iscsi_session_target_state_names +1691 drivers/scsi/scsi_transport_iscsi.c 3aa534a2c8b080 Wenchao Hao 2022-11-07 1686 static const char *iscsi_session_target_state_name(int state) 3aa534a2c8b080 Wenchao Hao 2022-11-07 1687 { 3aa534a2c8b080 Wenchao Hao 2022-11-07 1688 if (state > ISCSI_SESSION_TARGET_MAX) Should be >= 3aa534a2c8b080 Wenchao Hao 2022-11-07 1689 return NULL; 3aa534a2c8b080 Wenchao Hao 2022-11-07 1690 3aa534a2c8b080 Wenchao Hao 2022-11-07 @1691 return iscsi_session_target_state_names[state]; 3aa534a2c8b080 Wenchao Hao 2022-11-07 1692 } -- 0-DAY CI Kernel Test Service https://01.org/lkp