Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
3
-
9223372036854775807
Description
__getname used in ll_getname allocated PATH_MAX sized 4k buffer that is overkill.
In fact we only need a single component of the pathname that could not be longer than 255 bytes, so only allocating 256 bytes should be enough.
Additionally need to check for strncpy_from_user negative return values while at that.