Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp111611lqb; Tue, 4 Jun 2024 06:40:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXCzkXFbC0yBywRsEM9DFBvpkbCiTJ7GNBJ37B9lrKujB7AW44G+NswAt76lL5tMTsKhTmh6J7v0UToqAQmpWA8967X6iRZlgxDMaoorw== X-Google-Smtp-Source: AGHT+IHchCB3/OvUazQcYqBVu/KpOn7svYTr7wRxxUQqZ0ULdvHXxxgX2p7OkddUS8iD5yvHdjkk X-Received: by 2002:a50:8a93:0:b0:578:67db:7516 with SMTP id 4fb4d7f45d1cf-57a52dcaeffmr5228304a12.37.1717508436947; Tue, 04 Jun 2024 06:40:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717508436; cv=pass; d=google.com; s=arc-20160816; b=DES6EyzVtQPDuvhCaCBGveXFmCC4l2SjO2Xm5IlH3N3IO+7fNKgBHvNFfIhDn1vn3D XaZvtRErNwys3AnTZpD4wMC7GW8tcgjWj9UQKlu4ZudfLBVUa5P50yzabXU4oD+7L5OX W9RQUA0QYmmqFX138hREUiiRuzQ1AJ2Dk1Mgs8Jc9zrUQRwHeFmHjMrFnyMZasYgKERS EzPJDXEGTGbR5h7lbKgb7itclWCwJIw7E64QIFjBu5cBt+kCIS9VOAufuvrEDWYoFFAL yCFe8tao3H6fsn1vYvbloebwFOr6H85fdCJPqAASUWjXqYVdebsPOBetjOv5uWvPOktt y5JQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:subject :references:in-reply-to:cc:to:from:dkim-signature; bh=wyXYBZ9yf/+pq+sDdhkihpXpTq6hpcaT1psfHyvcipQ=; fh=vVSS5ahCCxN1mb89qCLh2A7MIEEQLOtAveOZW/Lpfkw=; b=BQearg0nBgbwop47czoGt7Q6qVPJEuYvUsQZnu0u6k/x+TDCSKRilU/w9Y/+TBqgWe f3r4Pk12JyvgAYYJtBt2wmMfjuEGR0641hTJa1bEcUz7DWo1f4WsDFC3NRHLACqPdwQf MJr8fZ3cvb+TIWecbSy7AZMAqgy4xn1a2W09JeMJFzvgnLZA+2g873gScZO8olUMj+EO 7ZxyrJMmQJWhW6yWAZTqHzbQwpQttqf50dvmzymbJirUA1L7gctML8oxISYkoX0WpL2Z XOvynrdqkm5NqqiYLAfRj9oT+6+AlVys6jpQDtsX4Jwi3pgZgb/96YEjaq87UL4GGb58 MztQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=IyewzNbo; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-200725-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200725-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a7863aab0si1160708a12.17.2024.06.04.06.40.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 06:40:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200725-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; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=IyewzNbo; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-200725-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200725-linux.lists.archive=gmail.com@vger.kernel.org" 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 8194D1F213EA for ; Tue, 4 Jun 2024 13:40:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 104D1148305; Tue, 4 Jun 2024 13:38:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="IyewzNbo" Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) (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 E227C148301 for ; Tue, 4 Jun 2024 13:38:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717508331; cv=none; b=Gq6eAn8bmV67pzk7IZbiSxkZanmv84P2bmvw18tnIiZf8hPXNmQKtV/uFUXZ1LQB8Dxx605ydMwky71Pro+hfLn2L3Z9ghdSB3Ec5xO3JWQRyqP+VK9jQF1bGRSejNXhMIOBnF9NVIJF1SNGAkYeuUGItR15r+xx4JxjOHWcg2g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717508331; c=relaxed/simple; bh=mLOB/pRDSaqep4kaNRLrvlUmHU00bgxlnVyjfSPtsEk=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=s/H/rEoZMhi1Mp0n0NYINituM2hR5OAqOXX4NzWaoBh92s/8hWsLHhLf+r9zV4gZJ4wZ6JNjpM/80kkdyzzv6/F3yr4tQhFI5zuzpfezOzmWbmvmSyh/iL50eR6Yr/UV7pRO+TlvCmeDHA1BJxeM/PNclzxJPR7jW1c5ItouoyU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=IyewzNbo; arc=none smtp.client-ip=209.85.215.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Received: by mail-pg1-f170.google.com with SMTP id 41be03b00d2f7-6c9cd96e485so321676a12.3 for ; Tue, 04 Jun 2024 06:38:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1717508329; x=1718113129; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wyXYBZ9yf/+pq+sDdhkihpXpTq6hpcaT1psfHyvcipQ=; b=IyewzNboMpcwW5LFMTFxdY4SQ1KG2Q+U6IGwJlTrzALJKOjw/JKNzXkiCnHi9jmS9J eOlFQY+innZPCcgj56KeD6Az2gAsr9khEuktItMjqTjCRV0HOlA6LHK4FvKE/kX8GcaN DjJ9HDIVl8c4etQ9mDDS2tOBKmVH0urcEJpp/3efMCMSOxLuZMhIkB1DfHdu+uw22hpW 5r2jONIgP0E/l8reAXvD6z0NHJxrdyqtHJ9b+mxD/cqRS19VEvzmXG/vkkxwS+ZK3Rn9 XtkJdIPfHqxbjDZZKvn1RBhJPJVym5TWFFAn+1koXb3jqScMupOOk5lhSMtnDGcXhJYT FMXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717508329; x=1718113129; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wyXYBZ9yf/+pq+sDdhkihpXpTq6hpcaT1psfHyvcipQ=; b=WUYdBz8L+ty85CucOzVz2Z4w+nXbE0eP33mCYcy2KLk86YF4nJJfIOWWGFQXVrNcBA DES5oZq39NgpuqsVx1JbmVSfWEWpbBXPyGSam/YNpFiIEPQNmz5rmOa2d0RgNRnR+biw gEf3QOBoknBmqv3Dk5SuzIAzdxWv/zgV/kBdQrXKqvG5bIH9nM3rO88lVW1QMAqEn40v lQsR9nx902p4C4NQZSwWKv1XbNbwaQQfO/o33klKMfIjjJhIiXpS/fIDqHhN9KMTbt0I HLd0sNB/xY95TbG26MzryQq0yy3gUXiIC6F0f7hYv9t1mzCmqalzJnjM8XWU6E7AIRMa 9QQg== X-Forwarded-Encrypted: i=1; AJvYcCUhxmWbPmFz5AXuKbim3NCyFDmqr0W7nuoExlnksxoZ3Q8GmxmcE3d09dmldFDYbIhDC/beyisSI6lRhyo5186BxBcn3vuhXZllwvfW X-Gm-Message-State: AOJu0YybXvqy9HT11SaznuMiXB39umaXq9ilsQ60t37TIOWedKSiskyZ UXiCAb5hsJm/HCfc0+Gs5z00yIxIvnT75QdCHmtlP/yHbGqsAANkRxkcxxWrY6o= X-Received: by 2002:a05:6a21:338f:b0:1b2:53c5:9e67 with SMTP id adf61e73a8af0-1b2a46feafemr2610730637.4.1717508329280; Tue, 04 Jun 2024 06:38:49 -0700 (PDT) Received: from [127.0.0.1] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c1a77bab23sm10440745a91.48.2024.06.04.06.38.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 06:38:48 -0700 (PDT) From: Jens Axboe To: asml.silence@gmail.com, nathan@kernel.org, ndesaulniers@google.com, morbo@google.com, justinstitt@google.com, Su Hui Cc: haoxu@linux.alibaba.com, io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, kernel-janitors@vger.kernel.org In-Reply-To: <20240604121242.2661244-1-suhui@nfschina.com> References: <20240604121242.2661244-1-suhui@nfschina.com> Subject: Re: [PATCH] io_uring/io-wq: avoid garbge value of 'match' in io_wq_enqueue() Message-Id: <171750832792.373240.8767021460699358833.b4-ty@kernel.dk> Date: Tue, 04 Jun 2024 07:38:47 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.12.5-dev-2aabd On Tue, 04 Jun 2024 20:12:43 +0800, Su Hui wrote: > Clang static checker (scan-build) warning: > o_uring/io-wq.c:line 1051, column 3 > The expression is an uninitialized value. The computed value will > also be garbage. > > 'match.nr_pending' is used in io_acct_cancel_pending_work(), but it is > not initialized. Change the order of assignment for 'match' to fix > this problem. > > [...] Applied, thanks! [1/1] io_uring/io-wq: avoid garbge value of 'match' in io_wq_enqueue() commit: e87863ed45a1c36b0d8a5b70134caf8c794d8d57 Best regards, -- Jens Axboe