mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: greenuser <greenuser@nl.thalesgroup.com>
To: linux-kernel@vger.kernel.org
Subject: posix lock_timer fails on tgid invalid
Date: Wed, 11 Jul 2007 11:56:42 +0200	[thread overview]
Message-ID: <4694A95A.85155DAE@nl.thalesgroup.com> (raw)

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


                 reply	other threads:[~2007-07-11 15:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4694A95A.85155DAE@nl.thalesgroup.com \
    --to=greenuser@nl.thalesgroup.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®