Re: [PATCH] drm/i915: Fix CFI violation with show_dynamic_id()

2022-05-13 Thread Tvrtko Ursulin
On 12/05/2022 22:17, Nathan Chancellor wrote: When an attribute group is created with sysfs_create_group(), the ->sysfs_ops() callback is set to kobj_sysfs_ops, which sets the ->show() callback to kobj_attr_show(). kobj_attr_show() uses container_of() to get the ->show() callback from the

Re: [PATCH] drm/i915: Fix CFI violation with show_dynamic_id()

2022-05-12 Thread Kees Cook
On May 12, 2022 2:17:04 PM PDT, Nathan Chancellor wrote: >When an attribute group is created with sysfs_create_group(), the >->sysfs_ops() callback is set to kobj_sysfs_ops, which sets the ->show() >callback to kobj_attr_show(). kobj_attr_show() uses container_of() to >get the ->show()