All of lore.kernel.org
 help / color / mirror / Atom feed
* Possible case of Race in kobject_get_path()
@ 2022-03-30 10:11 Mukesh Ojha
  2022-03-30 10:16 ` Greg KH
  0 siblings, 1 reply; 9+ messages in thread
From: Mukesh Ojha @ 2022-03-30 10:11 UTC (permalink / raw)
  To: Rafael J. Wysocki, gregkh, linux-remoteproc

Hi All,

We are facing one issue where one driver (p1) is trying to register its 
device from driver probe
and from another path (p2) dev_set_name(new name) done from driver probe 
of the added device whose
new name length can be more than earlier done in (p1 path) which could 
result in redzone overwritten issue.

Can we get your suggestion here ? is this case of a race here ?

             p1                                                   p2

  device_register()
     kobject_get_path()
             =>  get_kobj_path_length
             (length is calculated from this path)

                                                  dev_set_name()

             => fill_kobj_path
               (path is copied here)


Thanks,
-Mukesh


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-03-30 14:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-30 10:11 Possible case of Race in kobject_get_path() Mukesh Ojha
2022-03-30 10:16 ` Greg KH
     [not found]   ` <148f4e9b-0584-ccc1-1443-30d41190dfd3@quicinc.com>
2022-03-30 11:01     ` Greg KH
2022-03-30 11:14       ` Mukesh Ojha
2022-03-30 11:19         ` Greg KH
2022-03-30 11:23           ` Mukesh Ojha
2022-03-30 11:31             ` Greg KH
2022-03-30 12:55               ` Mukesh Ojha
2022-03-30 14:22                 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.