[PATCH v10 08/10] livepatch: Improve dynamic struct klp_object detection and manipulation

2018-03-07 Thread Petr Mladek
The check for dynamically allocated objects was too optimistic. There might exist livepatches that modify an object only with callbacks. They are statically defined and have "funcs" array empty. A solution would be to check also the callback pointers in klp_is_object_dynamic(). But it still might

[PATCH v10 08/10] livepatch: Improve dynamic struct klp_object detection and manipulation

2018-03-07 Thread Petr Mladek
The check for dynamically allocated objects was too optimistic. There might exist livepatches that modify an object only with callbacks. They are statically defined and have "funcs" array empty. A solution would be to check also the callback pointers in klp_is_object_dynamic(). But it still might