On Wed, Mar 28, 2012 at 01:22:17PM +0900, Tetsuo Handa wrote: > security_inode_alloc() is called from inode_init_always(). > inode_init_always() is called from xfs_inode_alloc(). .... > Therefore, should SMACK use GFP_NOFS like SELinux does? Yes, because you have no idea what the calling context is except for the fact that is from somewhere inside filesystem code and the filesystem could be holding locks. Therefore, GFP_NOFS is really the only really safe way to allocate memory here. Cheers, Dave. -- Dave Chinner david@xxxxxxxxxxxxx -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html