lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <96e96c16-7fcc-48d1-a858-7d8d52208fa4@gmail.com>
Date: Wed, 26 Feb 2025 16:01:11 +0530
From: Pranjal Prasad <prasadpranjal213@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Al Viro <viro@...iv.linux.org.uk>, linux-fsdevel@...r.kernel.org
Subject: [PATCH] fs/hfsplus: Improve btree clump size calculation and fix
 parameter parsing

Hi all,

This patch improves the robustness and correctness of the HFS+ 
filesystem implementation by addressing issues in |btree.c| and |options.c|.


        *Changes in fs/hfsplus/btree.c:*

  * Removed unused |mod| variable.
  * Fixed potential out-of-bounds access in |clumptbl|.
  * Made clump size calculation more precise (0.8% explicitly).
  * Ensured clump size is properly aligned to block/node size.
  * Improved loop readability for exponent calculation.
  * Added a fallback to prevent invalid clump sizes.
  * Updated comment link to Apple's new OSS repository.


        *Changes in fs/hfsplus/options.c:*


  * Properly check the |"force"| option during remount.
  * Validate string lengths safely using |strnlen()|.
  * Ensure previous NLS mappings are unloaded before loading new ones.
  * Improve error messages for clarity.

*Summary of Changes*

**fs/hfsplus/btree.c   | 176 +++++++++++++++++++++++--------------------
  fs/hfsplus/options.c | 120 ++++++++++++++---------------
  2 files changed, 154 insertions(+), 142 deletions(-)

Please find the patch attached

Best Regards,
Pranjal Prasad

*
*
Content of type "text/html" skipped

View attachment "0001-fs-hfsplus-Improve-btree-clump-size-calculation-etc.patch" of type "text/x-patch" (14095 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ