From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932368AbXGKPOG (ORCPT ); Wed, 11 Jul 2007 11:14:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761090AbXGKPN4 (ORCPT ); Wed, 11 Jul 2007 11:13:56 -0400 Received: from mailgate2.nl.thalesgroup.com ([193.67.31.101]:49299 "EHLO mailgate2.signaal.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758534AbXGKPNz (ORCPT ); Wed, 11 Jul 2007 11:13:55 -0400 X-Greylist: delayed 18966 seconds by postgrey-1.27 at vger.kernel.org; Wed, 11 Jul 2007 11:13:55 EDT Message-ID: <4694A95A.85155DAE@nl.thalesgroup.com> Date: Wed, 11 Jul 2007 11:56:42 +0200 From: greenuser Organization: Thales Nederland B.V. X-Mailer: Mozilla 4.77 [en] (WinNT; U) X-Accept-Language: en To: linux-kernel@vger.kernel.org Subject: posix lock_timer fails on tgid invalid MIME-Version: 1.0 (Generated by Clearswift ES version 4.8.1.149) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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