diff options
author | Theodore Ts'o <tytso@mit.edu> | 2010-10-27 21:30:08 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-10-27 21:30:08 -0400 |
commit | 8941ec8bb6443d28d5c25311870aeaa809cf1538 (patch) | |
tree | 5fbd2aff55ff077ec98604b03f6fc9d35a6f081d /net/8021q/vlan_dev.c | |
parent | 640e9396566a1e1f52f2db294755a23f1e62cc97 (diff) | |
download | blackbird-op-linux-8941ec8bb6443d28d5c25311870aeaa809cf1538.tar.gz blackbird-op-linux-8941ec8bb6443d28d5c25311870aeaa809cf1538.zip |
ext4: avoid uninitialized memory references in ext3_htree_next_block()
If the first block of htree directory is missing '.' or '..' but is
otherwise a valid directory, and we do a lookup for '.' or '..', it's
possible to dereference an uninitialized memory pointer in
ext4_htree_next_block().
We avoid this by moving the special case from ext4_dx_find_entry() to
ext4_find_entry(); this also means we can optimize ext4_find_entry()
slightly when NFS looks up "..".
Thanks to Brad Spengler for pointing a Clang warning that led me to
look more closely at this code. The warning was harmless, but it was
useful in pointing out code that was too ugly to live. This warning was
also reported by Roman Borisov.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: Brad Spengler <spender@grsecurity.net>
Diffstat (limited to 'net/8021q/vlan_dev.c')
0 files changed, 0 insertions, 0 deletions