AR# 53926


PetaLinux v12.12 - Kernel API: strncpy_from_user() incorrect behavior on Microblaze


When compiling a third-party Kernel module against Petalinux for Microblaze, there seems to be a deviation of the behavior of function strncpy_from_user() to the description of the Kernel API According
The function strncpy_from_user() should return the length of the string (not including the trailing NULL). However, the length of the string including the trailing NULL is returned.
How can I fix this?


This is a known issue that has been fixed in the latest version of the PetaLinux. However, if you believe you are seeing the issue, please patchthe uaccess_old.S into your environment.


Associated Attachments

Name File Size File Type 2 KB ZIP
AR# 53926
Date 03/02/2013
Status Active
Type General Article
People Also Viewed