)]}'
{
  "commit": "be8ab8cc2a1759a6b06a46edbd8ad9c80190c0da",
  "tree": "31f7722e76ce9896604f1787db14732061b562ec",
  "parents": [
    "9af9b855872be5470767b7c93bba2b7c893094cd"
  ],
  "author": {
    "name": "Kees Cook",
    "email": "keescook@chromium.org",
    "time": "Fri Feb 17 16:24:40 2023 -0800"
  },
  "committer": {
    "name": "Chenglong Tang",
    "email": "chenglongtang@google.com",
    "time": "Tue Apr 16 06:16:29 2024 +0000"
  },
  "message": "smb3: Replace smb2pdu 1-element arrays with flex-arrays\n\ncommit eb3e28c1e89b4984308777231887e41aa8a0151f upstream.\n\nThe kernel is globally removing the ambiguous 0-length and 1-element\narrays in favor of flexible arrays, so that we can gain both compile-time\nand run-time array bounds checking[1].\n\nReplace the trailing 1-element array with a flexible array in the\nfollowing structures:\n\n\tstruct smb2_err_rsp\n\tstruct smb2_tree_connect_req\n\tstruct smb2_negotiate_rsp\n\tstruct smb2_sess_setup_req\n\tstruct smb2_sess_setup_rsp\n\tstruct smb2_read_req\n\tstruct smb2_read_rsp\n\tstruct smb2_write_req\n\tstruct smb2_write_rsp\n\tstruct smb2_query_directory_req\n\tstruct smb2_query_directory_rsp\n\tstruct smb2_set_info_req\n\tstruct smb2_change_notify_rsp\n\tstruct smb2_create_rsp\n\tstruct smb2_query_info_req\n\tstruct smb2_query_info_rsp\n\nReplace the trailing 1-element array with a flexible array, but leave\nthe existing structure padding:\n\n\tstruct smb2_file_all_info\n\tstruct smb2_lock_req\n\nAdjust all related size calculations to match the changes to sizeof().\n\nNo machine code output or .data section differences are produced after\nthese changes.\n\n[1] For lots of details, see both:\n    https://docs.kernel.org/process/deprecated.html#zero-length-and-one-element-arrays\n    https://people.kernel.org/kees/bounded-flexible-arrays-in-c\n\nCc: Steve French \u003csfrench@samba.org\u003e\nCc: Paulo Alcantara \u003cpc@cjr.nz\u003e\nCc: Ronnie Sahlberg \u003clsahlber@redhat.com\u003e\nCc: Shyam Prasad N \u003csprasad@microsoft.com\u003e\nCc: Tom Talpey \u003ctom@talpey.com\u003e\nCc: Namjae Jeon \u003clinkinjeon@kernel.org\u003e\nCc: Sergey Senozhatsky \u003csenozhatsky@chromium.org\u003e\nCc: linux-cifs@vger.kernel.org\nCc: samba-technical@lists.samba.org\n\nBUG\u003db/330618063\nTEST\u003dpresubmit\nRELEASE_NOTE\u003dFixed a crash during CIFS volumes mount.\n\nReviewed-by: Namjae Jeon \u003clinkinjeon@kernel.org\u003e\ncos-patch: bug\nChange-Id: I4f3b4c677640ee81002fe3dffe37daaab8659349\nSigned-off-by: Kees Cook \u003ckeescook@chromium.org\u003e\nSigned-off-by: Steve French \u003cstfrench@microsoft.com\u003e\nSigned-off-by: Vasiliy Kovalev \u003ckovalev@altlinux.org\u003e\nSigned-off-by: Greg Kroah-Hartman \u003cgregkh@linuxfoundation.org\u003e\nReviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/69373\nTested-by: Cusky Presubmit Bot \u003cpresubmit@cos-infra-prod.iam.gserviceaccount.com\u003e\nReviewed-by: Oleksandr Tymoshenko \u003covt@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e2f401c8c5ce718f0b28bbf4663edb6d79655367",
      "old_mode": 33188,
      "old_path": "fs/cifs/smb2misc.c",
      "new_id": "8f409404aee1e24910264a52b6bac90f8decfda5",
      "new_mode": 33188,
      "new_path": "fs/cifs/smb2misc.c"
    },
    {
      "type": "modify",
      "old_id": "bad09d7ee0f01da2eb9a76f68eb5af0fb638ea79",
      "old_mode": 33188,
      "old_path": "fs/cifs/smb2ops.c",
      "new_id": "38a7481fbcc2fa62c97c5da1cd60954ec370c637",
      "new_mode": 33188,
      "new_path": "fs/cifs/smb2ops.c"
    },
    {
      "type": "modify",
      "old_id": "541f7d6aaf3d1fab04577c96332e07a8fb04d0fc",
      "old_mode": 33188,
      "old_path": "fs/cifs/smb2pdu.c",
      "new_id": "18c639a1d7ab98e1cc73aa4d7048061e3121e35a",
      "new_mode": 33188,
      "new_path": "fs/cifs/smb2pdu.c"
    },
    {
      "type": "modify",
      "old_id": "301c155c52677938848d07cf496c95c74fbc4235",
      "old_mode": 33188,
      "old_path": "fs/cifs/smb2pdu.h",
      "new_id": "812a1b564fb2093e6d3a90d1bb78688fc5439717",
      "new_mode": 33188,
      "new_path": "fs/cifs/smb2pdu.h"
    }
  ]
}
