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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAD+ocbzHq0rsLvYjtN7YtSPdhTBbs+nJ2RsCR64W-8+WFGWRmQ@mail.gmail.com>
Date:   Thu, 8 Apr 2021 09:26:08 -0700
From:   harshad shirwadkar <harshadshirwadkar@...il.com>
To:     Xu Yihang <xuyihang@...wei.com>
Cc:     "Theodore Y. Ts'o" <tytso@....edu>,
        Andreas Dilger <adilger.kernel@...ger.ca>,
        Ext4 Developers List <linux-ext4@...r.kernel.org>,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH -next] ext4: fix error return code in ext4_fc_perform_commit()

Thanks, this looks good.

Reviewed-by: Harshad Shirwadkar <harshadshirwadkar@...il.com>

On Thu, Apr 8, 2021 at 12:00 AM Xu Yihang <xuyihang@...wei.com> wrote:
>
> In case of if not ext4_fc_add_tlv branch, an error return code is missing.
>
> Fixes: aa75f4d3daae ("ext4: main fast-commit commit path")
> Reported-by: Hulk Robot <hulkci@...wei.com>
> Signed-off-by: Xu Yihang <xuyihang@...wei.com>
> ---
>  fs/ext4/fast_commit.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/fs/ext4/fast_commit.c b/fs/ext4/fast_commit.c
> index 7541d0b5d706..312273ed8a9f 100644
> --- a/fs/ext4/fast_commit.c
> +++ b/fs/ext4/fast_commit.c
> @@ -1088,8 +1088,10 @@ static int ext4_fc_perform_commit(journal_t *journal)
>                 head.fc_tid = cpu_to_le32(
>                         sbi->s_journal->j_running_transaction->t_tid);
>                 if (!ext4_fc_add_tlv(sb, EXT4_FC_TAG_HEAD, sizeof(head),
> -                       (u8 *)&head, &crc))
> +                       (u8 *)&head, &crc)) {
> +                       ret = -ENOSPC;
>                         goto out;
> +               }
>         }
>
>         spin_lock(&sbi->s_fc_lock);
> --
> 2.17.1
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ