From patchwork Fri Dec 6 19:00:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Yushchenko X-Patchwork-Id: 13897579 Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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 33B9A153836 for ; Fri, 6 Dec 2024 19:00:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733511644; cv=none; b=nXW0QZH7vXt9PuRifwGorSfzgtI0n0bGHhXl5jrQPOP9pXz1I8eKGwH/kG0WLmuojdEkpAJuu20gdScbWBitBpzdkiWLF82JAIcrixCzIQXtEfvG5AEFShGJxa6LlTKxM9+7TGDju09QZ3IqiQTSnDJA0loxTBRZ6ryS1UpYdIc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733511644; c=relaxed/simple; bh=fYGGX/ZIjr25jHps8aP27kpRV4o8UzLZ5+Xqi8vgWes=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=mkMQvjj0EJblMtoWbSjpcRLrGSbj7WnKiFe4kSQ5i8VOK27zYyMoX42En0q7wBCI126uWn3n42bLftEHap8wRR3gTbxFwff0lE64CraN2yLqEPj5FDtvF9epT4dkLXf6hBO6TnccRwuOEe9iF2kVylUFuT169A4LVBtQ+RV61PY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cogentembedded.com; spf=pass smtp.mailfrom=cogentembedded.com; dkim=pass (2048-bit key) header.d=cogentembedded-com.20230601.gappssmtp.com header.i=@cogentembedded-com.20230601.gappssmtp.com header.b=vn4CRw9Q; arc=none smtp.client-ip=209.85.208.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cogentembedded.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cogentembedded.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cogentembedded-com.20230601.gappssmtp.com header.i=@cogentembedded-com.20230601.gappssmtp.com header.b="vn4CRw9Q" Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2ffa8df8850so28182461fa.3 for ; Fri, 06 Dec 2024 11:00:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20230601.gappssmtp.com; s=20230601; t=1733511641; x=1734116441; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Nq340wsMOiDxkES6WvooIBHYHuwTpA7AHoxGHwGVI1g=; b=vn4CRw9QZF5bvD+tU4sNHa924Gat4RAYVE7QH/bNfJ6taNU3h1Y3eMfkoYgqKcX8Ss uGJjTXCW8L3u8d9hFJ2i3PHchhHytSbiVbJnGsoNzTcx1pqFIcHax8lRMtW3/OrhFCZK AYIZMPTgR/Xavd6pQ5yEpEx57hTQxtZ41oTVsyqXGCOR/PHuSQgYBuARbJHQRQWizlwI of/FLN/9YyB/SMnApPY4hfspnrHhruuTJdrtq2lWcDjCZOsvL4lI9VpjWbGj3q+jXeTd qWA6TVqM1/Jki3vAgXUgLGQsb/JFNLpU0RM6ZMgTpnsLnnsRVDD54hqWvO2yCwq9fXtj rDtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733511641; x=1734116441; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Nq340wsMOiDxkES6WvooIBHYHuwTpA7AHoxGHwGVI1g=; b=v4Dn6c7HAR+xKyqJdmXv4iFwOdrGfGyugYVQUEf4WJsC/7CcCNN/oxnPCr/8KBU8El RiCrWOGSqy75K4ZLZ1IeqR5Qa3hUVHK1yFpLb3KyDcaWC/56XjEiEcy7sdOLaPL91Rvg QOGXP84qt2fvHUae5BQklxMovfgYoDGUUShh20+m2AxSO6A4s9Bcjuqm5y9PwW3OICIH dxTH7iA+DHOziDmKyNfpFtE2cXZdd5E2K2Wde7y4aP3lFnTAIxWE89LdiL9Utz5k5T7P 5q/jRcRCoj4YKA/fxD+Kxckr8FRR8o6wFeJB75cDLjrHwIswY+w/8Tpw9sjzFs0hbfYg 296A== X-Forwarded-Encrypted: i=1; AJvYcCVaQTI/kqkegMhbbJ7aqip/bM2EKmEK8pLn5Rc0+dSDLWEW+obB4lgS3JTx2jwh58R3c9ur3Nkm6sTnS1EXNwrWMQ==@vger.kernel.org X-Gm-Message-State: AOJu0Yy1B3ucveLJvhTqyJCoT9N2UhmRH2Q33qKrzX23ae0uVtbChD8c /RWtTfNEZaSv76bkcKy6IfIDW5aMOtqz+g+6EVdxlGT18PBkUWs0CN83kjGm9Co= X-Gm-Gg: ASbGnct/uPevIZs2vor5eG/2aP9pV7MKZaLREbrx1+5SomgShVU9EWjiwXIzlXJKadK 56anbMcwHTeGHm1vDIMzItV1r2cmd7bRTqom2t45vR4gFoyb8kI6JPT6qkMipQQ6H2jF77K0L5x V55MOltyxyd9YR5iMusxfLaxkR5xWZy50MzE0bKMyq7sZbagqF4yn5KE79rktmIFDI5sn5OOqO9 yUaMrQ05CIvEWqPscA4ARecQWgw7isS4lFpAKWrnwtiD980e0XgPcL5skAIhtis X-Google-Smtp-Source: AGHT+IFSZlnyUJt9yV4TtsQshdUhz5mox7mBKmBdxeNkbktuFfubOANHhifT2kzCUe5QBoiQybC1PA== X-Received: by 2002:a2e:a807:0:b0:300:4028:b6cf with SMTP id 38308e7fff4ca-3004028c5aemr965581fa.24.1733511641309; Fri, 06 Dec 2024 11:00:41 -0800 (PST) Received: from cobook.home ([91.198.101.25]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-30020e58200sm5523201fa.113.2024.12.06.11.00.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Dec 2024 11:00:40 -0800 (PST) From: Nikita Yushchenko To: Yoshihiro Shimoda , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Geert Uytterhoeven Cc: netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Dege , Christian Mardmoeller , Dennis Ostermann , Nikita Yushchenko Subject: [PATCH net v2 0/4] net: renesas: rswitch: several fixes Date: Sat, 7 Dec 2024 00:00:11 +0500 Message-Id: <20241206190015.4194153-1-nikita.yoush@cogentembedded.com> X-Mailer: git-send-email 2.39.5 Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 This series fixes several glitches found in the rswitch driver. Nikita Yushchenko (4): net: renesas: rswitch: fix possible early skb release net: renesas: rswitch: fix race window between tx start and complete net: renesas: rswitch: fix leaked pointer on error path net: renesas: rswitch: avoid use-after-put for a device tree node drivers/net/ethernet/renesas/rswitch.c | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) --- v1: https://lore.kernel.org/lkml/20241202134904.3882317-1-nikita.yoush@cogentembedded.com/ Changes since v1: - changed target tree to -net, - do not group together bugfixes and improvements so those could go via different trees, - added a new patch that fixes a race.