Bad or missing usercopy whitelist? Kernel memory overwrite attempt detected to SLUB object
Linux内核有一个usercopy whitelist机制,只允许这里面的region来做usercopy。如果是用kmem_cache_create申请的kmem_cache申请的内存空间来copy to user或者copy from user,那么就会报这个错。这时要用kmem_cache_create_usercopy,来将申请的区域加入到usercopy whitelist中。/** * kmem_cache_create_usercopy - Create a cache with