]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Fix the afs.cell and afs.volume xattr handlers
authorDavid Howells <dhowells@redhat.com>
Wed, 1 May 2019 12:27:09 +0000 (13:27 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 7 May 2019 15:48:44 +0000 (16:48 +0100)
commitf8374bc10b9231e742eeaaecebf0b6e2e316827c
tree52c5ac7f76e40fca82725f7443aea6cf5288c38c
parentbea1d7f295ad132b88cfb9e2096cf5f84f91c98b
afs: Fix the afs.cell and afs.volume xattr handlers

Fix the ->get handlers for the afs.cell and afs.volume xattrs to pass the
source data size to memcpy() rather than target buffer size.

Overcopying the source data occasionally causes the kernel to oops.

Fixes: 2cf6942dc0a0 ("afs: Add metadata xattrs")
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/xattr.c