posix lock_timer fails on tgid invalid

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

 



Hello,

On my uClinux nios platform I discovered the following bug:
Suppose the application has a thread, and in this thread the
timer_create function is called
Next in the main thread the timer_settime function is called.
Now, this function will always fail, in sys_settime a lock_timer
function is called.
This lock_timer function checks that timr->it_process->tgid equals
current->tgid else
the function fails. With two threads in the application, this check
always fails!!!

Note: the same code works fine on a desktop linux system. I already
reported this bug to the uClinux forum and the nios forum for a month.
So far, without any response.

Why is the check on tgid needed and why does it fail?

Greetings Gerrit

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux