)]}'
{
  "commit": "dec24b3b339487e58ce2da2875e9ee0316cc7e70",
  "tree": "0bdbdcd85ea7f552dcc2c67707690fb38deb68bd",
  "parents": [
    "2174a08db80d1efeea382e25ac41c4e7511eb6d6"
  ],
  "author": {
    "name": "Kees Cook",
    "email": "keescook@chromium.org",
    "time": "Tue Jun 20 12:42:38 2023 -0700"
  },
  "committer": {
    "name": "Paolo Abeni",
    "email": "pabeni@redhat.com",
    "time": "Thu Jun 22 11:27:47 2023 +0200"
  },
  "message": "net: wwan: iosm: Convert single instance struct member to flexible array\n\nstruct mux_adth actually ends with multiple struct mux_adth_dg members.\nThis is seen both in the comments about the member:\n\n/**\n * struct mux_adth - Structure of the Aggregated Datagram Table Header.\n ...\n * @dg:\t\tdatagramm table with variable length\n */\n\nand in the preparation for populating it:\n\n                        adth_dg_size \u003d offsetof(struct mux_adth, dg) +\n                                        ul_adb-\u003edg_count[i] * sizeof(*dg);\n\t\t\t...\n                        adth_dg_size -\u003d offsetof(struct mux_adth, dg);\n                        memcpy(\u0026adth-\u003edg, ul_adb-\u003edg[i], adth_dg_size);\n\nThis was reported as a run-time false positive warning:\n\nmemcpy: detected field-spanning write (size 16) of single field \"\u0026adth-\u003edg\" at drivers/net/wwan/iosm/iosm_ipc_mux_codec.c:852 (size 8)\n\nAdjust the struct mux_adth definition and associated sizeof() math; no binary\noutput differences are observed in the resulting object file.\n\nReported-by: Florian Klink \u003cflokli@flokli.de\u003e\nCloses: https://lore.kernel.org/lkml/dbfa25f5-64c8-5574-4f5d-0151ba95d232@gmail.com/\nFixes: 1f52d7b62285 (\"net: wwan: iosm: Enable M.2 7360 WWAN card support\")\nCc: M Chetan Kumar \u003cm.chetan.kumar@intel.com\u003e\nCc: Bagas Sanjaya \u003cbagasdotme@gmail.com\u003e\nCc: Intel Corporation \u003clinuxwwan@intel.com\u003e\nCc: Loic Poulain \u003cloic.poulain@linaro.org\u003e\nCc: Sergey Ryazanov \u003cryazanov.s.a@gmail.com\u003e\nCc: Johannes Berg \u003cjohannes@sipsolutions.net\u003e\nCc: \"David S. Miller\" \u003cdavem@davemloft.net\u003e\nCc: Eric Dumazet \u003cedumazet@google.com\u003e\nCc: Jakub Kicinski \u003ckuba@kernel.org\u003e\nCc: Paolo Abeni \u003cpabeni@redhat.com\u003e\nCc: \"Gustavo A. R. Silva\" \u003cgustavoars@kernel.org\u003e\nCc: netdev@vger.kernel.org\nSigned-off-by: Kees Cook \u003ckeescook@chromium.org\u003e\nReviewed-by: Gustavo A. R. Silva \u003cgustavoars@kernel.org\u003e\nReviewed-by: Simon Horman \u003csimon.horman@corigine.com\u003e\nLink: https://lore.kernel.org/r/20230620194234.never.023-kees@kernel.org\nSigned-off-by: Paolo Abeni \u003cpabeni@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d6b166fc5c0ef5ae86e04ee0f225b583aed0ac7a",
      "old_mode": 33188,
      "old_path": "drivers/net/wwan/iosm/iosm_ipc_mux_codec.c",
      "new_id": "bff46f7ca59f3ffa086e2155edcc1990ef214203",
      "new_mode": 33188,
      "new_path": "drivers/net/wwan/iosm/iosm_ipc_mux_codec.c"
    },
    {
      "type": "modify",
      "old_id": "5d4e3b89542cc42c43f7008cbe4e70feb6b65550",
      "old_mode": 33188,
      "old_path": "drivers/net/wwan/iosm/iosm_ipc_mux_codec.h",
      "new_id": "f8df88f816c4cc88bfc61af2093d0b11c5318a07",
      "new_mode": 33188,
      "new_path": "drivers/net/wwan/iosm/iosm_ipc_mux_codec.h"
    }
  ]
}
