Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4531690rdh; Wed, 29 Nov 2023 04:15:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IGHWeKOtNtBYnPbqH2PbAtsGja1samct5yWbNpJAKFXQ8j4h7HXPhiAkktlZjefjAGPF0fV X-Received: by 2002:a92:de51:0:b0:35c:d5f9:bf8d with SMTP id e17-20020a92de51000000b0035cd5f9bf8dmr9418472ilr.11.1701260143096; Wed, 29 Nov 2023 04:15:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701260143; cv=none; d=google.com; s=arc-20160816; b=lkpJlyZKdW43JurqKfZcS+gPrnR19J2I9NUrMz8Se9c1ZZqrta2JORHqg3GkbJ8M8X 6axcj5jpmGJzZX6FMEKxRADR+4ryNLFW/yGu/llQEpAzewNgP3KMD4kBO08UtVqd4iRS Z9J4rv/vBoQ3iYvNYnf10++Rshba3+oszUGxSX7vhyDexH5VWykJPle6j/Tl7nkS9Qwi 6Ga/jhbJgPPdW1q3EI4wJM4hOKfMqVqJZxbV+I4Mj5v2z2Po1n4PuuFKtFFfiX3a5Zhe I2FS0uhnc7FWBuuiNKTB/0wZ4aw4xDVeuCrlLXXS5i+cUM2x1OF4mQD3m8oJuby2y9/Z G1Fg== 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=rCBpwoGJiILtrBeFVDdliZqEf7BsITxGWUPpTBUG2Fg=; fh=xm+YAjsSn0Sp/5suJLL3ETNZ2vDu32OEStZFUXWedyg=; b=TSlxnpJ2o3BaRDwYyCjExmtDBVFyfb++EVN8huPuT9Rui1rOYg+Zj30HmgAboHZDTn dZKXulPM9pylx6/csJsWuEeqiHwxfhxpL86LWo1pw5krD6O2Yse/lGltGRdZ6/N0ydlR QmNcImvFPP6E2tTwceXJ+CSXdEyygdaAWxPceKbEjBbgZM0OIHAi7NpOnVc+E4m4GVYO H/FIU2M6BhatC0WitcBSFVhIVe26Gk22UJutono9wEsUJ5raAC2u+pVNGHZc8U5p7yLd N6XXLt77LTtrUc3Srb8xulUuXKqVXijx3sY64Dmo2BvvBhvcKe5l9qF7BPoiJIUdRgpl Qs0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DfRF3iii; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id f17-20020a056a00229100b006cd82b4d0c4si8605874pfe.89.2023.11.29.04.15.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 04:15:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DfRF3iii; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 7C51C807FD5F; Wed, 29 Nov 2023 04:15:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229518AbjK2MPF (ORCPT + 99 others); Wed, 29 Nov 2023 07:15:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233178AbjK2MPE (ORCPT ); Wed, 29 Nov 2023 07:15:04 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60C43D7E for ; Wed, 29 Nov 2023 04:15:10 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-40b427507b7so27603475e9.2 for ; Wed, 29 Nov 2023 04:15:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701260109; x=1701864909; darn=vger.kernel.org; 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=rCBpwoGJiILtrBeFVDdliZqEf7BsITxGWUPpTBUG2Fg=; b=DfRF3iiirLaLQcvlzCjb/HKdfUsRUZ2FnLmbZXlrodQRLzmDzgDkTqRzCRcsCy64qv 61YKxL7GbzA8o8VZL3vFegtVbCMyhaMVBpLOdkMgap8NMdxd3xCyfQ/beXXsWEPX19+s Z2QfFqI6Z7e3++D2eR6QcXBVreC5tTGrjq0K8jdRwiDNBsI8EYWcja5gMfQWUpNIG8OW Q9PnkOsaF5l8WAIzTc0RwOPoyjpAQmVcxkoM5OdLBDntHVwy/DztEhrB7NPA20JBiBJG szu/HWldfsYpuCxMALbYBe8Nle9LpFBM2gQ9/iekyGJ+U47u2IZpPD+VjQgM3dkBi/tu nurw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701260109; x=1701864909; 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=rCBpwoGJiILtrBeFVDdliZqEf7BsITxGWUPpTBUG2Fg=; b=o6yaqEizXs2C6TbEPtGYPf2VNegN8SN9gqukFLpfpbUFcOwRm7N2Kfo1zbDBkeVbkS qOGOBNichgot+aEBJkPoP39E/ZH3vqZ0G4OFiWghIGLJbwLU9IhOnjTIaB/7Cr0nhZT0 NEcrX3Bt/EuExiyJYMECurNqpGh4sxN+guo4nlWk9IZ1XeQpBCG09KnN4PBqRjpOQt9h wPsXPrBF8iFhu2pz1KLsaptPra5N8J0apfLutauOZccUW2c1q+mwdfOujKfFB/iF4B+M zgaIQOpk+feq7HpXzyeoSBOcoELFQeVYXHbSKnqifNn4awt+ksTYaXpGwCYHrR8gRhQs dVMw== X-Gm-Message-State: AOJu0YzWJX5JWqr2sL/C6F6rUB1LjW0qyk2ZMhhG6ixUf86q6nvuo/wl 1mcbCGNZ3zuEPzVhPF48ZYZvtg== X-Received: by 2002:a05:600c:19ce:b0:40a:3750:46ff with SMTP id u14-20020a05600c19ce00b0040a375046ffmr13264013wmq.11.1701260108810; Wed, 29 Nov 2023 04:15:08 -0800 (PST) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id t17-20020a05600c451100b00407460234f9sm2014318wmo.21.2023.11.29.04.15.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 04:15:08 -0800 (PST) Date: Wed, 29 Nov 2023 15:15:04 +0300 From: Dan Carpenter To: Nitesh Shetty Cc: Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg , James Smart , Chaitanya Kulkarni , error27@gmail.com, gost.dev@samsung.com, nitheshshetty@gmail.com, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] nvme: Update type from size_t to u16 for opts->queue_size Message-ID: References: <20231128122958.2235-1-nj.shetty@samsung.com> <0cd6862e-8037-40b3-9fde-b7f10d66e31c@suswa.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0cd6862e-8037-40b3-9fde-b7f10d66e31c@suswa.mountain> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Wed, 29 Nov 2023 04:15:25 -0800 (PST) On Wed, Nov 29, 2023 at 12:26:24PM +0300, Dan Carpenter wrote: > The ctrl->ops assignment happens in nvme_init_ctrl() and it should have > been easy to track. I am not sure what went wrong there. I'll take a > look at that and fix it. I suspect on your system you don't have the cross function DB built so it's not aware what happens in nvme_init_ctrl() or the other function I mentioned. On my system there is too much data so it isn't parsed. 1) When there is too much data it should just mark ctrl->ops as unknown 2) I should try to consolidate the data. I should just mark all of ctrl->ctrl_device as unknown instead of recording any of the struct members individually. There might also be stuff that isn't used like ctrl->namespaces_rwsem internals. 3) On my system, I have 2187 bogus entries that say we removed an item from a list. Probably any of these fixes would silence the false positive but it would be better to do all three. If you don't have the cross function database though, you're probably out of luck. There are always going to be more false positives if you don't have the cross function information. regards, dan carpenter