Skip to content
Snippets Groups Projects
Commit db42549d authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Add a better limit for maximum number of buckets


The bucket_gens array is a single array allocation (one byte per
bucket), and kernel allocations are still limited to INT_MAX.

Check this limit to avoid failing the bucket_gens array allocation.

Reported-by: default avatar <syzbot+b29f436493184ea42e2b@syzkaller.appspotmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 18b4abce
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment