)]}'
{
  "commit": "1de405699c62c3a9544bcdcfb9eff8a01cfc7582",
  "tree": "cd8de49f02389f4eef87e2c315e4312d4c5d1ca6",
  "parents": [
    "6386bd772de64e6760306eb91c7e86163af6c22f"
  ],
  "author": {
    "name": "Jakub Kicinski",
    "email": "kuba@kernel.org",
    "time": "Tue May 26 08:35:29 2026 -0700"
  },
  "committer": {
    "name": "Jakub Kicinski",
    "email": "kuba@kernel.org",
    "time": "Wed May 27 17:42:08 2026 -0700"
  },
  "message": "ethtool: tsinfo: fix uninitialized stats on the by-PHC path\n\ntsinfo_prepare_data() has two code paths: a \"by-PHC\" path for\nuser-specified hardware timestamping providers, and the old path.\nCommit 89e281ebff72 (\"ethtool: init tsinfo stats if requested\") added\nethtool_stats_init() to mark stat slots as ETHTOOL_STAT_NOT_SET before\nthe driver callback populates them, but placed the call inside the\nold-path block.\n\nWhen commit b9e3f7dc9ed9 (\"net: ethtool: tsinfo: Enhance tsinfo to\nsupport several hwtstamp by net topology\") added the by-PHC early\nreturn, it landed above the stats initialization. On that path\nthe stats array retains the zero-fill from ethnl_init_reply_data()\u0027s\nzalloc. This leads to the reply including a stats nest with four\nzero-valued attributes that should have been absent.\n\nReject GET requests for stats with HWTSTAMP_PROVIDER or dump.\n\nFixes: b9e3f7dc9ed9 (\"net: ethtool: tsinfo: Enhance tsinfo to support several hwtstamp by net topology\")\nReviewed-by: Maxime Chevallier \u003cmaxime.chevallier@bootlin.com\u003e\nLink: https://patch.msgid.link/20260526153533.2779187-7-kuba@kernel.org\nSigned-off-by: Jakub Kicinski \u003ckuba@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a865f0fdd26b1b3a92fb92c0c91ddfec47854a29",
      "old_mode": 33188,
      "old_path": "net/ethtool/tsinfo.c",
      "new_id": "f54fe6b662b262ae67933e6cdda713e85a6fb011",
      "new_mode": 33188,
      "new_path": "net/ethtool/tsinfo.c"
    }
  ]
}
