[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <741486db-29e8-e24e-32c1-9559e3a76a06@linux.com>
Date: Thu, 27 Aug 2020 18:28:35 +0300
From: Denis Efremov <efremov@...ux.com>
To: Jan Kara <jack@...e.com>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH] udf: Use kvzalloc() in udf_sb_alloc_bitmap()
> @@ -1013,10 +1013,7 @@ static struct udf_bitmap *udf_sb_alloc_bitmap(struct super_block *sb, u32 index)
> size = sizeof(struct udf_bitmap) +
> (sizeof(struct buffer_head *) * nr_groups);
I missed that this size is a good place to use struct_size for
overflow checking. I will send v2 instead.
Powered by blists - more mailing lists