* getxattr: kzalloc/vmalloc mismatch
@ 2013-06-19 18:53 Joe Perches
0 siblings, 0 replies; only message in thread
From: Joe Perches @ 2013-06-19 18:53 UTC (permalink / raw)
To: Al Viro; +Cc: LKML
It seems the kzalloc could be kmalloc instead.
(it's filled by xattr_getsecurity)
in fs/xattr.c:
static ssize_t
getxattr(struct dentry *d, const char __user *name, void __user *value,
size_t size)
{
[]
if (size) {
if (size > XATTR_SIZE_MAX)
size = XATTR_SIZE_MAX;
kvalue = kzalloc(size, GFP_KERNEL | __GFP_NOWARN);
if (!kvalue) {
vvalue = vmalloc(size);
if (!vvalue)
return -ENOMEM;
kvalue = vvalue;
}
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-06-19 18:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-19 18:53 getxattr: kzalloc/vmalloc mismatch Joe Perches
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®