)]}'
{"id":"LineageOS%2Fandroid_kernel_xiaomi_earth~474101","triplet_id":"LineageOS%2Fandroid_kernel_xiaomi_earth~lineage-23.2~Ib64319f20fecec1c367bf0167e1b14b47751537a","project":"LineageOS/android_kernel_xiaomi_earth","branch":"lineage-23.2","hashtags":[],"change_id":"Ib64319f20fecec1c367bf0167e1b14b47751537a","subject":"UPSTREAM: fs: fd tables have to be multiples of BITS_PER_LONG","status":"MERGED","created":"2026-02-11 07:06:15.000000000","updated":"2026-02-15 11:26:20.000000000","submitted":"2026-02-15 11:26:20.000000000","submitter":{"_account_id":26349,"name":"Matsvei Niaverau","email":"matvej2002@gmail.com","username":"surblazer","avatars":[{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]},"total_comment_count":0,"unresolved_comment_count":0,"has_review_started":true,"submission_id":"474110","meta_rev_id":"d74ca0b7ed649250cba2897d8c259080bc8034c2","_number":474101,"virtual_id_number":474101,"owner":{"_account_id":26349,"name":"Matsvei Niaverau","email":"matvej2002@gmail.com","username":"surblazer","avatars":[{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]},"actions":{},"labels":{"Verified":{"approved":{"_account_id":26349,"name":"Matsvei Niaverau","email":"matvej2002@gmail.com","username":"surblazer","avatars":[{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]},"all":[{"value":1,"date":"2026-02-15 11:25:49.000000000","permitted_voting_range":{"min":1,"max":1},"_account_id":26349,"name":"Matsvei Niaverau","email":"matvej2002@gmail.com","username":"surblazer","avatars":[{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]}],"values":{"-1":"Fails"," 0":"No score","+1":"Verified"},"description":"","default_value":0},"Code-Review":{"approved":{"_account_id":26349,"name":"Matsvei Niaverau","email":"matvej2002@gmail.com","username":"surblazer","avatars":[{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]},"all":[{"value":2,"date":"2026-02-15 11:25:49.000000000","permitted_voting_range":{"min":2,"max":2},"_account_id":26349,"name":"Matsvei Niaverau","email":"matvej2002@gmail.com","username":"surblazer","avatars":[{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]}],"values":{"-2":"Do not submit","-1":"I would prefer that you didn\u0027t submit this"," 0":"No score","+1":"Looks good to me, but someone else must approve","+2":"Looks good to me, approved"},"description":"","default_value":0},"CI":{"all":[{"value":0,"_account_id":26349,"name":"Matsvei Niaverau","email":"matvej2002@gmail.com","username":"surblazer","avatars":[{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]}],"values":{"-1":"Fail"," 0":"No score","+1":"Pass"},"description":"","default_value":0,"optional":true}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":26349,"name":"Matsvei Niaverau","email":"matvej2002@gmail.com","username":"surblazer","avatars":[{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]}]},"pending_reviewers":{},"reviewer_updates":[],"messages":[{"id":"3b0df904ba4f6d388e0ed67c22650607260211c8","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":26349,"name":"Matsvei Niaverau","email":"matvej2002@gmail.com","username":"surblazer","avatars":[{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]},"date":"2026-02-11 07:06:15.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"7dd224fda011e16f21d9fe15eb82f61ad01279b7","author":{"_account_id":26349,"name":"Matsvei Niaverau","email":"matvej2002@gmail.com","username":"surblazer","avatars":[{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]},"date":"2026-02-15 11:25:49.000000000","message":"Patch Set 1: Code-Review+2 Verified+1","accounts_in_message":[],"_revision_number":1},{"id":"d74ca0b7ed649250cba2897d8c259080bc8034c2","tag":"autogenerated:gerrit:merged","author":{"_account_id":26349,"name":"Matsvei Niaverau","email":"matvej2002@gmail.com","username":"surblazer","avatars":[{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]},"date":"2026-02-15 11:26:20.000000000","message":"Change has been successfully merged","accounts_in_message":[],"_revision_number":1}],"current_revision_number":1,"current_revision":"82226ce472b639a0644b7f14f945fb8b8c8b80c7","revisions":{"82226ce472b639a0644b7f14f945fb8b8c8b80c7":{"kind":"REWORK","_number":1,"created":"2026-02-11 07:06:15.000000000","uploader":{"_account_id":26349,"name":"Matsvei Niaverau","email":"matvej2002@gmail.com","username":"surblazer","avatars":[{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]},"ref":"refs/changes/01/474101/1","fetch":{"anonymous http":{"url":"https://github.com/LineageOS/android_kernel_xiaomi_earth","ref":"refs/changes/01/474101/1","commands":{"Branch":"git fetch https://github.com/LineageOS/android_kernel_xiaomi_earth refs/changes/01/474101/1 \u0026\u0026 git checkout -b change-474101 FETCH_HEAD","Checkout":"git fetch https://github.com/LineageOS/android_kernel_xiaomi_earth refs/changes/01/474101/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://github.com/LineageOS/android_kernel_xiaomi_earth refs/changes/01/474101/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://github.com/LineageOS/android_kernel_xiaomi_earth refs/changes/01/474101/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://github.com/LineageOS/android_kernel_xiaomi_earth refs/changes/01/474101/1","Reset To":"git fetch https://github.com/LineageOS/android_kernel_xiaomi_earth refs/changes/01/474101/1 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"fd833d27889e65d38e124d235b21ec5b01ab0607","subject":"UPSTREAM: file: simplify logic in __close_range()","web_links":[{"name":"GitHub","tooltip":"Open in GitWeb","url":"https://github.com/LineageOS/android_kernel_xiaomi_earth/commit/fd833d27889e65d38e124d235b21ec5b01ab0607"}]}],"author":{"name":"Linus Torvalds","email":"torvalds@linux-foundation.org","date":"2022-03-29 22:06:39.000000000","tz":-420},"committer":{"name":"Matsvei Niaverau","email":"matvej2002@gmail.com","date":"2026-02-10 17:11:38.000000000","tz":60},"subject":"UPSTREAM: fs: fd tables have to be multiples of BITS_PER_LONG","message":"UPSTREAM: fs: fd tables have to be multiples of BITS_PER_LONG\n\n[ Upstream commit 1c24a186398f59c80adb9a967486b65c1423a59d ]\n\nThis has always been the rule: fdtables have several bitmaps in them,\nand as a result they have to be sized properly for bitmaps.  We walk\nthose bitmaps in chunks of \u0027unsigned long\u0027 in serveral cases, but even\nwhen we don\u0027t, we use the regular kernel bitops that are defined to work\non arrays of \u0027unsigned long\u0027, not on some byte array.\n\nNow, the distinction between arrays of bytes and \u0027unsigned long\u0027\nnormally only really ends up being noticeable on big-endian systems, but\nFedor Pchelkin and Alexey Khoroshilov reported that copy_fd_bitmaps()\ncould be called with an argument that wasn\u0027t even a multiple of\nBITS_PER_BYTE.  And then it fails to do the proper copy even on\nlittle-endian machines.\n\nThe bug wasn\u0027t in copy_fd_bitmap(), but in sane_fdtable_size(), which\ndidn\u0027t actually sanitize the fdtable size sufficiently, and never made\nsure it had the proper BITS_PER_LONG alignment.\n\nThat\u0027s partly because the alignment historically came not from having to\nexplicitly align things, but simply from previous fdtable sizes, and\nfrom count_open_files(), which counts the file descriptors by walking\nthem one \u0027unsigned long\u0027 word at a time and thus naturally ends up doing\nsizing in the proper \u0027chunks of unsigned long\u0027.\n\nBut with the introduction of close_range(), we now have an external\nsource of \"this is how many files we want to have\", and so\nsane_fdtable_size() needs to do a better job.\n\nThis also adds that explicit alignment to alloc_fdtable(), although\nthere it is mainly just for documentation at a source code level.  The\narithmetic we do there to pick a reasonable fdtable size already aligns\nthe result sufficiently.\n\nIn fact,clang notices that the added ALIGN() in that function doesn\u0027t\nactually do anything, and does not generate any extra code for it.\n\nIt turns out that gcc ends up confusing itself by combining a previous\nconstant-sized shift operation with the variable-sized shift operations\nin roundup_pow_of_two().  And probably due to that doesn\u0027t notice that\nthe ALIGN() is a no-op.  But that\u0027s a (tiny) gcc misfeature that doesn\u0027t\nmatter.  Having the explicit alignment makes sense, and would actually\nmatter on a 128-bit architecture if we ever go there.\n\nThis also adds big comments above both functions about how fdtable sizes\nhave to have that BITS_PER_LONG alignment.\n\nFixes: 60997c3d45d9 (\"close_range: add CLOSE_RANGE_UNSHARE\")\nReported-by: Fedor Pchelkin \u003caissur0002@gmail.com\u003e\nReported-by: Alexey Khoroshilov \u003ckhoroshilov@ispras.ru\u003e\nLink: https://lore.kernel.org/all/20220326114009.1690-1-aissur0002@gmail.com/\nTested-and-acked-by: Christian Brauner \u003cbrauner@kernel.org\u003e\nChange-Id: Ib64319f20fecec1c367bf0167e1b14b47751537a\nSigned-off-by: Linus Torvalds \u003ctorvalds@linux-foundation.org\u003e\nSigned-off-by: Sasha Levin \u003csashal@kernel.org\u003e\n","web_links":[{"name":"GitHub","tooltip":"Open in GitWeb","url":"https://github.com/LineageOS/android_kernel_xiaomi_earth/commit/82226ce472b639a0644b7f14f945fb8b8c8b80c7"}],"resolve_conflicts_web_links":[{"name":"GitHub","tooltip":"Open in GitWeb","url":"https://github.com/LineageOS/android_kernel_xiaomi_earth/commit/82226ce472b639a0644b7f14f945fb8b8c8b80c7"}]},"branch":"refs/heads/lineage-23.2"}},"requirements":[],"submit_records":[{"rule_name":"gerrit~DefaultSubmitRule","status":"CLOSED","labels":[{"label":"Verified","status":"OK","applied_by":{"_account_id":26349,"name":"Matsvei Niaverau","email":"matvej2002@gmail.com","username":"surblazer","avatars":[{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]}},{"label":"Code-Review","status":"OK","applied_by":{"_account_id":26349,"name":"Matsvei Niaverau","email":"matvej2002@gmail.com","username":"surblazer","avatars":[{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d32","height":32},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d56","height":56},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d100","height":100},{"url":"https://www.gravatar.com/avatar/ed6759ea3299fee01e32d1e8ccf1f75a.jpg?d\u003didenticon\u0026r\u003dpg\u0026s\u003d120","height":120}]}},{"label":"CI","status":"MAY"}]}],"submit_requirements":[{"name":"CI","description":"Prevent submit if CI failed.","status":"SATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"-label:CI\u003dMIN","fulfilled":true,"status":"PASS","passing_atoms":[],"failing_atoms":["label:CI\u003dMIN"],"atom_explanations":{"label:CI\u003dMIN":""}}},{"name":"Verified","status":"SATISFIED","is_legacy":true,"submittability_expression_result":{"expression":"label:Verified\u003dMAX -label:Verified\u003dMIN","fulfilled":true,"status":"PASS","passing_atoms":["label:Verified\u003dMAX","-label:Verified\u003dMIN"],"failing_atoms":[],"atom_explanations":{}}},{"name":"Code-Review","status":"SATISFIED","is_legacy":true,"submittability_expression_result":{"expression":"label:Code-Review\u003dMAX -label:Code-Review\u003dMIN","fulfilled":true,"status":"PASS","passing_atoms":["label:Code-Review\u003dMAX","-label:Code-Review\u003dMIN"],"failing_atoms":[],"atom_explanations":{}}}]}
