Race condition in kobject_get_path()
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 8 lines · Mukesh Ojha
Hi All,
We are facing one issue where one driver is trying to register its device from driver probe
and from another pathdev_set_name()done from driver probe of the added device whose
length can be more than earlier which could result in redzone overwritten issue.
What drivers are doing this so we can see the code? This should be happening in order and not at the same time.
Quoted 6 lines
Can we get your suggestion here ? is this case of a race here ?
p1 p2
Quoted 7 lines
*kobject_get_path* <https://opengrok.qualcomm.com/source/s?refs=kobject_get_path&project=KERNEL.PLATFORM.1.0>
=> get_kobj_path_length (length is calculated from this path)
dev_set_name(same dev name)
=> fill_kobj_path (path is copied here)
I do not understand this trace, sorry. What code are you referring to?
confused,
greg k-h
Quoted 22 lines · Greg KH
Quoted 8 lines · Mukesh Ojha
Hi All,
We are facing one issue where one driver is trying to register its device from driver probe
and from another pathdev_set_name()done from driver probe of the added device whose
length can be more than earlier which could result in redzone overwritten issue.What drivers are doing this so we can see the code? This should be happening in order and not at the same time.
Quoted 9 lines
Can we get your suggestion here ? is this case of a race here ?
p1 p2
*kobject_get_path* <https://opengrok.qualcomm.com/source/s?refs=kobject_get_path&project=KERNEL.PLATFORM.1.0>
Quoted 6 lines
Quoted 4 lines
=> get_kobj_path_length (length is calculated from this path)
dev_set_name(same dev name)
=> fill_kobj_path (path is copied here)I do not understand this trace, sorry. What code are you referring to?
Also, the above link does not work for me :(