Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp343754rdh; Tue, 19 Dec 2023 00:01:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFPrsIml3oV1L4X5+ItWug/Q7/eFvfIktuqWGGnZX6Zw9IQjA7VHH7NIyNCkTxvRXSHcipj X-Received: by 2002:a17:906:3f59:b0:a1d:3511:6674 with SMTP id f25-20020a1709063f5900b00a1d35116674mr644478ejj.13.1702972892855; Tue, 19 Dec 2023 00:01:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702972892; cv=none; d=google.com; s=arc-20160816; b=vc8NMI8EAz82oSiwowgA+jvGR/5Lqbu97RGUyn3jMTKnoE+NcnuobdZrAUVSs+czBx +DvKAhZw4cXpzHY2cU18FOOxmkZkR/lRolviKyaAwyQlPTAdV7tcNFl00D81pYTuC/+G 8yRFJE1MKkJY4gzwrH0EQMZK4BJN/R2+qGK63qbdF6f6c1YsoKutEtGIytfk9kgGe5yx /cIwnWo4RCoXBBiK+SazaitX2+XJkB1B9934LlhQSTuZBex+AG8jhmpCtZ7mWbcstHB5 N4xacUs3Wd2/pdsk7jJG7F1CsK23RZcrsC2HDeDkHUnio/4/0VUwQzght7TnrjrjEizP vecg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=hSxfVUokw5rBc5jmtStap5yd0oCd2uwtveBJGfKKXnM=; fh=Ob8FspbdAv2lvfy9oyzcNqJb9FlG/MYewgbmONDw7dw=; b=USojGAV+cKxapMm2g9P246BFCEqHGE5e1g0f6SBTe12Ul4CtWzK9y+pGtXCzLgx2GW Mn+CdMJY5QLorCV9GxG1FfyaubtaaeG4+t9rHYIbh2ZtM9IHt6uZtlwj2faYa5iw8ZaW hdCzJKgUNhIJT31MGt3hLU7SGPf91X7U9bjCaEx/TXiDoRvE6FYYVibRCvFbZrk0OKeO uS9pCAxUxJaRUoNiUqaIGhAr6T4TRk9huQssBJYWq1AWdgyVvWlfsESfDSTZttoK9aog YCTvqqBnLGm+sz5M/wsMNZo4XYyRV3m6YYmjrtksit4J9taiXvoA3KVB9loyvOE3ah8R /Mng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-4853-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4853-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id o9-20020a17090611c900b00a2363bc68afsi1055940eja.763.2023.12.19.00.01.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 00:01:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4853-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-4853-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4853-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9B6FA1F28348 for ; Tue, 19 Dec 2023 08:01:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D0D414AB0; Tue, 19 Dec 2023 08:00:17 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C20414AA4 for ; Tue, 19 Dec 2023 08:00:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id D118F1FD5E; Tue, 19 Dec 2023 08:00:13 +0000 (UTC) Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 4F75713AA6; Tue, 19 Dec 2023 08:00:13 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id IHVPEY1NgWWyegAAD6G6ig (envelope-from ); Tue, 19 Dec 2023 08:00:13 +0000 Message-ID: <3b8ef7d1-62fa-4ffe-a317-5b0dbadba8b6@suse.de> Date: Tue, 19 Dec 2023 09:00:13 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 10/16] nvmet-fc: hold reference on hostport match Content-Language: en-US To: Daniel Wagner , linux-nvme@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Christoph Hellwig , Sagi Grimberg , Keith Busch , James Smart References: <20231218153105.12717-1-dwagner@suse.de> <20231218153105.12717-11-dwagner@suse.de> From: Hannes Reinecke In-Reply-To: <20231218153105.12717-11-dwagner@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Level: X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spam-Level: X-Spam-Flag: NO X-Spamd-Result: default: False [-4.00 / 50.00]; REPLY(-4.00)[] Authentication-Results: smtp-out2.suse.de; none X-Spam-Score: -4.00 X-Rspamd-Queue-Id: D118F1FD5E On 12/18/23 16:30, Daniel Wagner wrote: > The hostport data structure is shared between the association, this why > we keep track of the users via a refcount. So we should not decrement > the refcount on a match and free the hostport several times. > > Reported by KASAN. > > Signed-off-by: Daniel Wagner > --- > drivers/nvme/target/fc.c | 2 -- > 1 file changed, 2 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), GF: Ivo Totev, Andrew McDonald, Werner Knoblich