Re: [PATCH 0/3] mount.cifs: minor buflen tracking cleanups

Henrique Carvalho
2026-03-31T18:06:29Z

Reviewed-by: Henrique Carvalho <henrique.carvalho@suse.com>

On Tue, Mar 31, 2026 at 11:37:50AM +1100, David Disseldorp wrote:
> These changes are minor cleanups to go atop the bugfix
> "mount.cifs: fix buffer overrun in set_password"
> https://lore.kernel.org/linux-cifs/20260331000911.16062-1-ddiss@suse.de/T/#u
>
> David Disseldorp (3):
> build_assert: add ccan build_assert.h header
> mount.cifs: adjust get_password_from_file() buf size
> mount.cifs: remove runtime pass_length calculation
>
> build_assert.h | 40 ++++++++++++++++++++++++++++++++++++++++
> mount.cifs.c | 18 ++++++++----------
> 2 files changed, 48 insertions(+), 10 deletions(-)
> create mode 100644 build_assert.h
>
>