)]}'
{
  "commit": "162cf592b577cccf04515100563e819d9eba5c4a",
  "tree": "e34d2fbe4f38641ae762f866eb2f914592f3cf73",
  "parents": [
    "7b29287b182fc50518e9e65c41f86d24a05b7205"
  ],
  "author": {
    "name": "Fernando Fernandez Mancera",
    "email": "fmancera@suse.de",
    "time": "Wed Oct 28 23:53:50 2026 +0100"
  },
  "committer": {
    "name": "Jakub Kicinski",
    "email": "kuba@kernel.org",
    "time": "Fri Oct 30 16:25:14 2026 -0700"
  },
  "message": "net/smc: fix limit_smc_hs sysctl on big-endian architecture\n\nnet-\u003esmc.limit_smc_hs is a bool, but its sysctl entry uses\nproc_dointvec_minmax() with .maxlen \u003d sizeof(int), so the handler\naccesses four bytes at the address of a one-byte field.\n\nOn little-endian this works with the extra bytes being written in struct\npadding. On big-endian (tested on s390x) the bool sits at the most\nsignificant byte of the int therefore the bool stays false and the \"1\"\ngoes into padding. The sysctl reads back 1 but SMC sockets created\nafterwards see limit_smc_hs as disabled.\n\nFix this by using proc_dobool() handler and adjust the maxlen to the\nright value.\n\nFixes: f8406a2fd279 (\"net/smc: add sysctl for smc_limit_hs\")\nSigned-off-by: Fernando Fernandez Mancera \u003cfmancera@suse.de\u003e\nLink: https://patch.msgid.link/20261028225350.3753-1-fmancera@suse.de\nSigned-off-by: Jakub Kicinski \u003ckuba@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "09dad48337f6164f5765fa793412bdebf47e61ca",
      "old_mode": 33188,
      "old_path": "net/smc/smc_sysctl.c",
      "new_id": "f58cf256f61abe46ada53862e3db9996d4507030",
      "new_mode": 33188,
      "new_path": "net/smc/smc_sysctl.c"
    }
  ]
}
