Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jul 2013 08:30:02 GMT
From:      Petr Salinger <Petr.Salinger@seznam.cz>
To:        freebsd-threads@FreeBSD.org
Subject:   Re: threads/180652: compat32 problem in clock_getcpuclockid2
Message-ID:  <201307210830.r6L8U27O097537@freefall.freebsd.org>

Next in thread | Raw E-Mail | Index | Archive | Help
The following reply was made to PR threads/180652; it has been noted by GNATS.

From: Petr Salinger <Petr.Salinger@seznam.cz>
To: Konstantin Belousov <kostikbel@gmail.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: threads/180652: compat32 problem in clock_getcpuclockid2
Date: Sun, 21 Jul 2013 10:23:54 +0200 (CEST)

   This message is in MIME format.  The first part should be readable text,
   while the remaining parts are likely unreadable without MIME-aware tools.
 
 --8323328-1230774450-1374395034=:23067
 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
 
 >>  I only tested with adapted tst-timer2.c.  I hope you would do the rest.
 > I tried. The tst-timer4.c timed out. I will look at it later.
 
 There have been two problems:
 
 a) sigev_value.sival_ptr have not been copied
 b) the code misshandles timer_create() with NULL struct sigevent
 
 With attached patch, it passes our tests.
 
 I think, that there is a similar bug in both new
 freebsd32_kmq_notify() and sys_kmq_notify().
 They do not handle NULL in struct sigevent, it might suffice to
 
 - return (kern_kmq_notify(td, uap->mqd, &ev));
 + return (kern_kmq_notify(td, uap->mqd, uap->sigev == NULL ? NULL : &ev));
 
 But this seems not be covered by our testsuite.
 
 Petr
 --8323328-1230774450-1374395034=:23067
 Content-Type: TEXT/plain; name=kt2.diff
 Content-Transfer-Encoding: BASE64
 Content-ID: <alpine.LNX.2.00.1307211023540.23067@contest.felk.cvut.cz>
 Content-Description: 
 Content-Disposition: attachment; filename=kt2.diff
 
 ZGlmZiAtLWdpdCBhL3N5cy9jb21wYXQvZnJlZWJzZDMyL2ZyZWVic2QzMi5o
 IGIvc3lzL2NvbXBhdC9mcmVlYnNkMzIvZnJlZWJzZDMyLmgNCmluZG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W50KTsNCitpbnQJa2Vybl9rdGltZXJfc2V0dGltZShzdHJ1Y3Qg
 dGhyZWFkICp0ZCwgaW50IHRpbWVyX2lkLCBpbnQgZmxhZ3MsDQorCSAgICBz
 dHJ1Y3QgaXRpbWVyc3BlYyAqdmFsLCBzdHJ1Y3QgaXRpbWVyc3BlYyAqb3Zh
 bCk7DQoraW50CWtlcm5fa3RpbWVyX2dldHRpbWUoc3RydWN0IHRocmVhZCAq
 dGQsIGludCB0aW1lcl9pZCwNCisJICAgIHN0cnVjdCBpdGltZXJzcGVjICp2
 YWwpOw0KIGludAlrZXJuX3Rocl9uZXcoc3RydWN0IHRocmVhZCAqdGQsIHN0
 cnVjdCB0aHJfcGFyYW0gKnBhcmFtKTsNCiBpbnQJa2Vybl90aHJfc3VzcGVu
 ZChzdHJ1Y3QgdGhyZWFkICp0ZCwgc3RydWN0IHRpbWVzcGVjICp0c3ApOw0K
 IGludAlrZXJuX3RydW5jYXRlKHN0cnVjdCB0aHJlYWQgKnRkLCBjaGFyICpw
 YXRoLCBlbnVtIHVpb19zZWcgcGF0aHNlZywNCg==
 
 --8323328-1230774450-1374395034=:23067--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201307210830.r6L8U27O097537>