From nobody Fri Apr 28 14:05:50 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q7DsV3Vh1z48Wgm; Fri, 28 Apr 2023 14:05:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q7DsV307Yz3wC1; Fri, 28 Apr 2023 14:05:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682690750; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5tNDP0VGef7HIx/JeHCkgmWTeN69y0mMFoMxkOUvmoY=; b=p6wjEk0rk9AO3dtBxzXh40t2HcBWYcYafUWyjHlmhrq2/E6US3TGf44XKZ58keqj/hGK/b DBUHHDdI5rJc8UnlBToJlGCUMvtU+3wyCdj/IKiB2o9+AryqmHTYgb0aF6+z3rqyfUXHLZ 6fuIP9AObmAQUpLLt9XXunrwDmpgRcPGgA79J0hj/E8S0O2tuFd95HAD3qtKfrV4xfI449 BrocGWgBqWU7N2o9dDrkMIKC2Xd/GPIWN3gxwyJhaycbYzmdnW8sIZdZpbv4BxKGo/TgKE Rhlcj7tGvBO0nwaEdWaX9aiXi/G6Bn8ZqeUTLwudZHNqC7nKRiKPMEyiLYRoWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682690750; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5tNDP0VGef7HIx/JeHCkgmWTeN69y0mMFoMxkOUvmoY=; b=uwxwao1+7bav3rSF9bZOSBkrDa3MCDYYnF9jjLsv2LOuLiO/oMF6E1KORtcrozlQupVL1Y aMXPjnOXEDWTAKSlG4+m4Vzt8c0nJnB4MYiU2nl/oWUypv9t6tgrzV0QWqqbkICP6NmmNl qzwOY2OkM3TumargcQ4stIwUpjLVtR3MIap/EkJW3524KhMbkiV/eK1ZqZpm1hU22L4uuX 5/l5RlBoRpiEIYGgpI421BQEvLvRDVB3v8mlRo8yJi/RiQRs+QEUUtodhgOPa9H+mvFS3D cu6GOUrRcQFE2rIAg0XTihtveIrWBUd+B/Ihb5yGUN0L/skAbGPnvN1cvxL1/Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682690750; a=rsa-sha256; cv=none; b=twOeWlpJuwk7OHJW70cLPTZnS0TUel053bXemT4q0l5IVkl5r9QelZ4MNn5LNXbzU6Z/4n qEczn7jdJsMfyTzWgwgnSHe/1nS0Lpssa8Y9gwcdny4UljL8Gi1+jQNg1SzW8SsRAm8hVH COB96aJRSvw1YtSUBr2NoRCD/Rz4pXYTblDpNvIsyUU4lMprw8LhnTYRimoIGmUg5KOMvV 7X0SrHp3nd9+WzEqEKO4HjPOwysu3d9cAD04e+z4FRR7np/AFcYdx3crLi4uvHsylmPkV+ w3+S5ORBwWRcq56Yz25H9FMLKr5eaTTxzOvnAWFV4JcjaqAMcZPb209Tntwb2Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q7DsV259tz12bL; Fri, 28 Apr 2023 14:05:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33SE5o4g029890; Fri, 28 Apr 2023 14:05:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33SE5oMe029889; Fri, 28 Apr 2023 14:05:50 GMT (envelope-from git) Date: Fri, 28 Apr 2023 14:05:50 GMT Message-Id: <202304281405.33SE5oMe029889@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Alexander V. Chernikov" Subject: git: dc818134974a - main - netlink: properly zero all fields in the ndmsg header. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: melifaro X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dc818134974a6ed33c3af4c4fb15a47980093aef Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=dc818134974a6ed33c3af4c4fb15a47980093aef commit dc818134974a6ed33c3af4c4fb15a47980093aef Author: Alexander V. Chernikov AuthorDate: 2023-04-28 14:04:47 +0000 Commit: Alexander V. Chernikov CommitDate: 2023-04-28 14:04:47 +0000 netlink: properly zero all fields in the ndmsg header. MFC after: 3 days --- sys/netlink/route/neigh.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/netlink/route/neigh.c b/sys/netlink/route/neigh.c index db72bc9bfd4e..807c125cc3f0 100644 --- a/sys/netlink/route/neigh.c +++ b/sys/netlink/route/neigh.c @@ -156,9 +156,12 @@ dump_lle_locked(struct llentry *lle, void *arg) ndm = nlmsg_reserve_object(nw, struct ndmsg); ndm->ndm_family = wa->family; + ndm->ndm_pad1 = 0; + ndm->ndm_pad2 = 0; ndm->ndm_ifindex = wa->ifp->if_index; ndm->ndm_state = lle_state_to_nl_state(wa->family, lle); ndm->ndm_flags = lle_flags_to_nl_flags(lle); + ndm->ndm_type = 0; switch (wa->family) { #ifdef INET