zfsonlinux/zfs — Issue #516: Linux 3.2 compat, security_inode_init_security()
Author: behlendorf
Created: 2012-01-05 19:57:13+00:00
State: open
Labels: Bug, Feature

torvalds/linux-2.6@fb88c2b6cbb1265a8bef60694699b37f5cd4ba76

I suspect this is the offending upstream kernel commit. It's now possible for security_inode_init_security() to return success (0) and yet fail to allocate memory for the 'value' and 'name' variables, or set 'len' for that matter. We need to update zpl_xattr_security_init() to handle the new behavior and the old behavior.