From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.182 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795883542; b=ykgvRLHTZPX8mk34TWM8PcFAKY/O3lZl/FwKs5Q0WMjcqehLtZUSllGg5UdON0BJ+Kz7 Se9bE1DqB008FLj0KWmznFO6EA2UcdECcjF8gfEj9OEoZEn0Twvd2Z+6srON8zt4XuIFi 5hJ6T9mnoDAP9Qk7+qGdqiSbYU57lyk81modoJu0Zaocg4hkwp9T7OTVKmdeIPDGl8nam 8JUkqqo6sUwmZCtgBYEnzombqHGY8mJP9RJCVphfqvZWnr8f8VYbVv3X7XN1hPeYz4sp0 q4/NkQvXqMbVhW6ddwkrjonjVSOL9Gc0/o36GC8FI7CM0C5dni3R3ZJskTzTEKRykQw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795883542; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Mime-Version: Content-Transfer-Encoding:Content-Type:Date:Message-Id:From:To:Cc: Subject:X-Mailer:References:In-Reply-To; bh=q2ScJVk2OS/7xp3AyABI4uI5iUTIjSSg8o/3Gx9ey4M=; b=oP9Ed1T6ex5kH6PF6PwttlUw36gKlzDRyOet7I2ggbbdEEaH90lr52NmzV9JFFd3Q/48 /H8A6axfeYxQk6RQ2wVYAbuXB2EjkkhuopGyyNNZIV+YxA/MqkU9vmfZ0hO1LeoQn/q/a 2YtMEc01rEuH/JrOdITxy0I2KCna6yUvYnpsH76emKn3iYNuXxKqjG9pqUaxhgsjVkFlA S+NrlIlCzSK69fkGGvudX7/SeFV4R8LuaEmI76MeXVQ/sLlD6EhKvoSXoVwXkgd/hvDVn hbHQuMwBCTDENU9CIOyjmTJI3qbIhKxnhjwKFTWcEwZ336YaXs1/3rdys6g8vb4aYBw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=mrZyRUqy; arc=none smtp.remote-ip=209.85.214.182 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 80962606A31C for ; Sat, 28 Nov 2026 16:32:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 80962606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=mrZyRUqy Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-2f0621eec70so64462995ad.2 for ; Sat, 28 Nov 2026 08:32:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795883542; x=1796488342; darn=vger.kernel.org; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-type:content-transfer-encoding:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=q2ScJVk2OS/7xp3AyABI4uI5iUTIjSSg8o/3Gx9ey4M=; b=mrZyRUqyhEkqSCXenaNv+Zc2UvdbeIPf1C22uTGD9v03ytWY/wYkGfTfPZQ2egT+mP mNMD6YpSySZm9w0aMYqejybUQaXy2jGU1iF3g1T8Us5sij9aR6uFMoHMR8IXZy28Vgxw +CaMJkCe1fDJdn3iftxZNlT92MxdH1e5kzZMmBSg0c54G0rQy4YAZUDLqTdbXLuFsytZ pDF0CwT7/nvg05DGn/P2s6NzUCotXG2pOq4VaLndQiAkMK3xkUP52vEYZplT29uuf4gv iahCgg3UHpx0U3xqgpETx9hrx3Z+qiyUujJQFgygSxb7b90e4MIoyOsKKgCiwRgsrI3Q Ci1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795883542; x=1796488342; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-type:content-transfer-encoding:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=q2ScJVk2OS/7xp3AyABI4uI5iUTIjSSg8o/3Gx9ey4M=; b=aXYBkYp+UoRYYq1Yuom74nM4t2RkllrrJ98fUjM2qzZzMKAtQmdU5c0VDn7M1tyUiW cK4JDfiw5/WTa00IJiAQ9reL8/AVk0gzvK18levNtnqhOs3hn5qK4i9Zw6K4WfKIyaLU e43AwMVJq6Zfi/8jphX8cK2xkhNU5SSLTp5FUuRoLAxp1JFKR93lfAz+n4vKSlK3MSuJ kRRlD8BoBnhHWTGSh4GxDc2lwjl2vI7mYBS7VHTjH8vFAcgVfme2n75wQUWtZUguR6OF VnPms45Lk25++p5k/XuguznvwcLpVUhNTKNAATF/xZaOdcrJ9W1+O1rscZzAItlFg93n LAeg== X-Gm-Message-State: APuU4Z8irz95rUu+0v96rmD3+X4Ncm0ruFgMPnnAqg/XEjZUmDKcWqtS MQ6UuuDJpgPpHZCpBHE+fNyzqszHxGYkXKUs4S1dLnBHjJQagnM6mX6G X-Gm-Gg: AZFdTZfQvGPbJEDUoi1YvWCGFuJoINPRgEIcr+P6Ma4nbzTU8eyHrM4sZZR5IGTl7gX Nbeh++X42D20iT5CEJGM4P/x04McJMaXuoI2OVknh8Fq8W9DsGLT04QnUwe16mGR1eNSXxp9PWe ZpsBQEjXDB5832c49vuyZt1xZSHpzk/3H04Uf4jFVONOGWony3m12ZZoqw2fqDvw76ra5RzpsXr DrwDhPKi+h564tkJihqgpuFISL0HTJIR9IweTOLkKEL6m9/OUY1IunzgsM2eo2zSB69k0yc1ERS om8o+wwgq14ckWn7R52CIf0Fsc196Wk3QcggNWPVvz8FEQGvUY1jsT5umfgF5Gn/yVwdwP6kZeV 7U0p6IcV5SKSfV13najoKt6jC/Y+pEwDzX4cb5F52WVeTuUoLiZf6wVGecJ/Hn0GXy4DwbDljjS 1Xy+WeegIBvEo2vdSDn/07eB7FzoIAfe352YxjkiZPGisJWteEbB5ocX6dJg+4rG9HSpmSoT5wn S0ywT/Ukb6CZpuT4vr/xvnqkukSMqAR1Hc1g+wz5Monij3uOqzSWhSp8wpzN/pXymTmD25tXkti 3tZP0nVgbhxGojZtASlRD7diX7e2NwFPKQ== X-Received: by 2002:a17:90a:e705:b0:3ad:aa1a:312e with SMTP id 98e67ed59e1d1-3b41c7e127cmr28015155a91.3.1795883541834; Sat, 28 Nov 2026 08:32:21 -0800 (PST) Received: from localhost ([172.56.108.68]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b41aab4729sm43465799a91.0.2026.11.28.08.32.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 28 Nov 2026 08:32:21 -0800 (PST) X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sat, 28 Nov 2026 08:32:20 -0800 Message-Id: From: "David Westen" To: , Cc: , , , , , , , , , Subject: Re: [PATCH net] net: wwan: iosm: return the callback result of synchronous tasks X-Mailer: aerc 0.22.0-0-gc2f86b7abde3 References: <20261127034849.11770-1-davidlwesten@gmail.com> <179583775492.3135.6308026077719961194@kernel.org> In-Reply-To: <179583775492.3135.6308026077719961194@kernel.org> On Sat, Nov 28, 2026 at 03:49:14AM +0000, netdev-bot+sashiko@kernel.org wro= te: > [Severity: High] > The index is now correct. Can a late reply still call complete() on a > returned stack frame if the remove task itself fails to queue? Yes, but this isn't new. Before this patch, a timeout cleared slot 0 if the remove task was queued and nothing if it wasn't, so unless the message was in slot 0, a late reply could reach the stack frame either way. This patch fixes the queued case. The queue-full case is a separate bug, where the return value of the remove task is ignored, and is unchanged here. > [Severity: Medium] > Now that the exact callback result is used as an rsp_ring index, is the > read of that result in ipc_task_queue_add_task() safe? No, but this patch doesn't make it worse. A waiter that reads -1 already returned an error while rsp_ring[index] still pointed at its response. Before this patch, any other value led to slot 0 being cleared on a timeout, which was already wrong. Thanks, David