From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) (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 010C730C174 for ; Sat, 6 Jun 2026 19:14:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780773270; cv=none; b=LlTBy+GCZhVWEGhXr/jBMAx6g4HZJGqxQ2qajTqJpuWrD05s4ZOYXw6ASQfpO2wq61Veo/p3WGGbDPxhWazIpRdIrbfBt8JMdppxVZQsQ0g/3fzPnBoJ+rxhJNaDflcVQCxoL+PLNiBFQEUQ00s4UXP+BEIBi2vCRAs2rLGLVlc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780773270; c=relaxed/simple; bh=zbxDd2fSSMbWNrrHr2w5nmZ9TgC5bQrbH1CWRzoEtJk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=M2lax1z0slUgZt5PjvVBfygRZVupVtC3C7zD4W/2XWRorsKO2DoG7/bzwMvEXy6OgPb3mNGcLKiAdJYli/grPyDQtmhIFqhCk9QPb6a3y8yiOud8gh54VdAQzGAhUFpIGaf71cUsEJpWHPD2DaJxQoWpu9B/pipgry4WCngCTKM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=J6A4CyUy; arc=none smtp.client-ip=209.85.222.175 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.b="J6A4CyUy" Received: by mail-qk1-f175.google.com with SMTP id af79cd13be357-915ab38ac14so291885785a.0 for ; Sat, 06 Jun 2026 12:14:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780773268; x=1781378068; 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=/T7YMHG1P2X6CbLgyAdfZNnGyycwtC+2WHfMvNyBlpQ=; b=J6A4CyUynWBJHEpHjdADENApYDs6w/kd7rvR3tFXjO8pM3RSsTMDkqqYqpreIEt0wg ZhaQPuS7Yz5Gfw60G973yu8yw7kX9JneXjd01+2BXS+Yoasxtaso52YlgvY25nY53Jhb 3D2NFVor5H9cYP8zznoCfWPyXITL9Llib52aiybysWDsPw+Y4vUIDJncbnh1XRl7P/3D PCIy1a+8ILNLcyGgb+RUCsVPIWywlGZCHPkz0R9wRwleZ4FSYHSLM6HBXNogiJHslK3v FBtDDqbmP8f+mCSDqV1KaZfgYjiLF1/UvAJPTgy+sjdm+Ti6A6/qXyWUJLSk93pP0htZ 9RnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780773268; x=1781378068; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/T7YMHG1P2X6CbLgyAdfZNnGyycwtC+2WHfMvNyBlpQ=; b=LGaNjhtGUM/mySWMeC9gOWUxPFVckkokVgAYuFkctXn0d2PW4J4lHbJdumZ1m3ekBj gcG5gg2voNIvu3fQyvgzX/l+51oq85T0pS/ETiuWpEfE0LI7vaWo2plthazOmFxKl0F6 movGoetgmoUvfU6XKbLEKhKEsIiz7tX8yu+R3G9L9Ig0yJXzxPGSGAYD2rbRZkBKK7Mp 7yX6vePcHB5L84WekbVHAPTUVKdq1exsneotMovfMXiO8wSDulPCXjf7HzteuKWBIPCo WVaeJhghm89dDilrsJtR0ZweemRg+1+mX2/x9a8awpWna+npuxolVee8qXyOixMVZ+ZV Y6Gw== X-Forwarded-Encrypted: i=1; AFNElJ9YJ18LRAsTQqGGYlAy8e2/XPQrVniznjjX7BNCG9vCLY+ohZqCweLXYmx1MIeZoBs7+peKSbtf87L8gu8=@vger.kernel.org X-Gm-Message-State: AOJu0Yw43bpL10IATl5ATLEZo9yVta/MdcXMvtFELf63vfHNX7dxlBss jnRbEKkXlMz1LzXv+B9+zSFICOPPi2rkICSgaBqN9DjSmlFZoyC1VV6N X-Gm-Gg: Acq92OFm6nsgN5hrN+zb7HozNjPd1i9IruVlRoivH/0AEdVrD7juRmH67MzlUjqbPhL uW023O3GKUDQTosyyRMy6KwsRCFyrOZ6UOtMI7gRR9Px5PS7/j4wxo63WtMfqtuLxfuTO570kJH M0zl8xR7n2xcQWNDWSZqLtZFei/JmTbxxa2tGmXp0Q0ANkzf7jETvuwFck2hjSGjpTj+SFaHaPh ZGIbYfvIncs5wl42MjBAt3ZxAFS8z7l1TMW8ov62ewWFktg+8heje2MEoiESS0j1tt1djQBThJA seFuUsI7Yq7WDlVbBzES1+iS6wxae56PtDB45sXurKDmEG5q0D2/oOkdFxI82PMOYUpADm7Chrz C/PGUpQK5i45WTwu0xUKhvZWg0fQ+1a3T0SK7LlDI2mEMUJHNyDwHW5IVZ1a1O6I2jRRcOD5rSb 8mwMIEn6hSlTHalhmIIAw7IObve7s7cwtmT7daDtxtOycvL2B+p7e8D6oZUuamaiklB3xr1bgSj KhoZZfHNYuP14OM5+kFMHZU9tA9s2f4nHkW81kLZQ== X-Received: by 2002:a05:620a:bc5:b0:915:5215:d90c with SMTP id af79cd13be357-915a9ddb310mr1602454085a.51.1780773267902; Sat, 06 Jun 2026 12:14:27 -0700 (PDT) Received: from server0 (c-68-48-65-54.hsd1.mi.comcast.net. [68.48.65.54]) by smtp.gmail.com with ESMTPSA id af79cd13be357-9158a00a4f4sm1311699285a.3.2026.06.06.12.14.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jun 2026 12:14:27 -0700 (PDT) From: Michael Bommarito To: Jon Maloy , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Simon Horman , Ying Xue , netdev@vger.kernel.org, tipc-discussion@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH net v2 0/4] tipc: fix netlink gate and receive-path bugs Date: Sat, 6 Jun 2026 15:14:09 -0400 Message-ID: X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit This is v2 of the public TIPC series. Patches 1 and 2 are the same fixes as before, with patch 1 updated to use GENL_ADMIN_PERM for TIPC_NL_MEDIA_SET after the duplicate public patch pointed out that the media defaults are global rather than per-netns state. Patches 3 and 4 address Tung's review feedback. Changes in v2: - Patch 1 uses GENL_ADMIN_PERM for TIPC_NL_MEDIA_SET and GENL_UNS_ADMIN_PERM for the netns-scoped mutators. - Patch 3 validates msg_conn_ack() at the start of the CONN_ACK block and drops invalid messages instead of capping the value. - Patch 4 reorders the new u32 declarations in reverse-Xmas-tree order. Michael Bommarito (4): tipc: require net admin for TIPCv2 netlink mutators tipc: validate discovery message length before reading media address tipc: prevent snt_unacked underflow on CONN_ACK tipc: reject inverted service ranges from peer bindings net/tipc/discover.c | 14 ++++++++++++++ net/tipc/name_distr.c | 11 ++++++++++- net/tipc/netlink.c | 12 ++++++++++++ net/tipc/socket.c | 7 ++++++- 4 files changed, 42 insertions(+), 2 deletions(-) base-commit: e7ae89a0c97ce2b68b0983cd01eda67cf373517d -- 2.53.0