Searched hist:fd2f7cb5 (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/fs/ |
H A D | namei.c | fd2f7cb5 Sun Feb 22 19:07:13 CST 2015 Al Viro <viro@zeniv.linux.org.uk> kill struct filename.separate
just make const char iname[] the last member and compare name->name with name->iname instead of checking name->separate
We need to make sure that out-of-line name doesn't end up allocated adjacent to struct filename refering to it; fortunately, it's easy to achieve - just allocate that struct filename with one byte in ->iname[], so that ->iname[0] will be inside the same object and thus have an address different from that of out-of-line name [spotted by Boqun Feng <boqun.feng@gmail.com>]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> fd2f7cb5 Sun Feb 22 19:07:13 CST 2015 Al Viro <viro@zeniv.linux.org.uk> kill struct filename.separate just make const char iname[] the last member and compare name->name with name->iname instead of checking name->separate We need to make sure that out-of-line name doesn't end up allocated adjacent to struct filename refering to it; fortunately, it's easy to achieve - just allocate that struct filename with one byte in ->iname[], so that ->iname[0] will be inside the same object and thus have an address different from that of out-of-line name [spotted by Boqun Feng <boqun.feng@gmail.com>] Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
|
/openbmc/linux/include/linux/ |
H A D | fs.h | fd2f7cb5 Sun Feb 22 19:07:13 CST 2015 Al Viro <viro@zeniv.linux.org.uk> kill struct filename.separate
just make const char iname[] the last member and compare name->name with name->iname instead of checking name->separate
We need to make sure that out-of-line name doesn't end up allocated adjacent to struct filename refering to it; fortunately, it's easy to achieve - just allocate that struct filename with one byte in ->iname[], so that ->iname[0] will be inside the same object and thus have an address different from that of out-of-line name [spotted by Boqun Feng <boqun.feng@gmail.com>]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> fd2f7cb5 Sun Feb 22 19:07:13 CST 2015 Al Viro <viro@zeniv.linux.org.uk> kill struct filename.separate just make const char iname[] the last member and compare name->name with name->iname instead of checking name->separate We need to make sure that out-of-line name doesn't end up allocated adjacent to struct filename refering to it; fortunately, it's easy to achieve - just allocate that struct filename with one byte in ->iname[], so that ->iname[0] will be inside the same object and thus have an address different from that of out-of-line name [spotted by Boqun Feng <boqun.feng@gmail.com>] Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
|