Possible case of Race in kobject_get_path()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux