Bug 194695
Summary: | size overflow detected in function ext4_mb_new_group_pa | ||
---|---|---|---|
Product: | File System | Reporter: | Matthijs Möhlmann (matthijs) |
Component: | ext4 | Assignee: | fs_ext4 (fs_ext4) |
Status: | NEW --- | ||
Severity: | normal | CC: | adilger.kernelbugzilla, pageexec, tytso |
Priority: | P1 | ||
Hardware: | x86-64 | ||
OS: | Linux | ||
Kernel Version: | 4.9.10-1+grsec201702162016+1 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Matthijs Möhlmann
2017-02-24 13:11:16 UTC
Definitely looks like a real bug in: pa->pa_pstart = ext4_grp_offs_to_block(sb, &ac->ac_b_ex); pa->pa_lstart = pa->pa_pstart; pa_pstart is 64-bit, pa_lstart is 32-bit. I don't think we use the pa_lstart value for group preallocations --- a logical number doesn't really have meaning for group pa's. That being said, the preallocation code is really quite a mess, and it makes it hard to follow. We should really look at cleaning it up.... |