Re: [RFC]Something wrong with my module

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

 



On 2012-04-12 22:08:08 (+0800), harryxiyou <harryxiyou@xxxxxxxxx> wrote:
> On Thu, Apr 12, 2012 at 10:04 PM, harryxiyou <harryxiyou@xxxxxxxxx> wrote:
> > On Thu, Apr 12, 2012 at 9:59 PM, Frank Ch. Eigler <fche@xxxxxxxxxx> wrote:
> >>
> >> kristof wrote:
> >>
> >>> [...]
> >>> You're iterating over the tasks list without locking it.
> >>> [...]
> >>> Try to take the tasklist_lock.
> >>
> >> Unfortunately, tasklist_lock is not SYMBOL_EXPORT*'d to modules.
> >
> > What about other ones? Do you have any other suggestions?
> 
> What about task_lock() ?
> 
task_lock() locks a single task, not the list of tasks.

I'd be included to take the fact that tasklist_lock is not exported as a
hint that you're not supposed to be messing with the list of tasks from
kernel modules.

Regards,
Kristof


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux