Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1704726
| From | Theodore Ts'o <tytso@mit.edu> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/2] ext4: fix warning about stack corruption |
| Date | 2017-08-06 04:00 +0200 |
| Message-ID | <ubj1f-4fc-1@gated-at.bofh.it> (permalink) |
| References | <u7zHk-3ZT-15@gated-at.bofh.it> <u9E9S-3Rb-37@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Aug 01, 2017 at 02:04:03PM +0200, Arnd Bergmann wrote: > There is one remaining issue with the function that I'm not addressing > here: With s_blocksize_bits==16, we don't actually print the last two > members of the array, as we loop though just the first 14 members. > This could be easily addressed by adding two extra columns in the output, > but that could in theory break parsers in user space, and should be > a separate patch if we decide to modify it. Actually, the counters array is blocksize_bits+2 in length. So for all block sizes greater than 4k (blocksize_bits == 12), we're not iterating over all of the free space counters maintained by mballoc. However, since most Linux systems run architectures where the page size is 4k, and the Linux VM really doesn't easily support file system block sizes greater than the page size, this really isn't an issue except on Itanics and Power systems. I very much doubt there are userspace parsers who depend on this, since far too many programmers subscribe to the "All the world's an x86" theory, in direct contravention of Henry Spencer's Tenth commandment: https://www.lysator.liu.se/c/ten-commandments.html But indeed, it's a separate patch for another day. Thanks, I'll apply this patch. - Ted
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/2] ext4: fix warning about stack corruption Arnd Bergmann <arnd@arndb.de> - 2017-08-01 14:10 +0200
[PATCH 2/2] adfs: use 'unsigned' types for memcpy length Arnd Bergmann <arnd@arndb.de> - 2017-08-01 14:10 +0200
Re: [PATCH 2/2] adfs: use 'unsigned' types for memcpy length Kees Cook <keescook@chromium.org> - 2017-08-01 20:30 +0200
Re: [PATCH 2/2] adfs: use 'unsigned' types for memcpy length Stephen Rothwell <sfr@canb.auug.org.au> - 2017-08-01 23:50 +0200
Re: [PATCH 1/2] ext4: fix warning about stack corruption Kees Cook <keescook@chromium.org> - 2017-08-01 20:30 +0200
Re: [PATCH 1/2] ext4: fix warning about stack corruption Theodore Ts'o <tytso@mit.edu> - 2017-08-06 04:00 +0200
Re: [PATCH 1/2] ext4: fix warning about stack corruption Arnd Bergmann <arnd@arndb.de> - 2017-08-06 22:40 +0200
Re: [PATCH 1/2] ext4: fix warning about stack corruption Chandan Rajendra <chandan@linux.vnet.ibm.com> - 2017-08-07 08:50 +0200
csiph-web