login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
October
»
25
Re: [2.6.28-rc1 regression] wmifinfo dockapp takes 100% of cpu (bisected)
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Carlos R. Mafra
Subject:
Re: [2.6.28-rc1 regression] wmifinfo dockapp takes 100% of cpu (bisected)
Date: Saturday, October 25, 2008 - 11:29 am
On Sat 25.Oct'08 at 20:03:27 +0200, Marcin Slusarz wrote:
quoted text
> On Sat, Oct 25, 2008 at 06:25:05PM +0200, Carlos R. Mafra wrote: > > On Sat 25.Oct'08 at 7:13:48 -0700, Arjan van de Ven wrote: > > > On Sat, 25 Oct 2008 07:05:42 -0700 > > > Arjan van de Ven <arjan@linux.intel.com> wrote: > > > > > > > Carlos R. Mafra wrote: > > > > > > > > > > > > Hi, > > > > > > > > the line below is the key one: > > > > > > > > > select(4, [3], NULL, NULL, {0, 5000000}) = -1 EINVAL (Invalid > > > > > argument) > > > > > > > > the application gives us an invalid timeval; it should have been (5, > > > > 0) However, if the kernel accepted this before the kernel needs to > > > > now also accept it obviously, I'll look into it > > > > > > This patch should fix it; I'm a bit worried that I need to fix up > > > userlands "mess", but ok. I also checked all other converted functions, > > > and only select has this problem. The problem is that the conversion > > > from microseconds to nanoseconds is overflowing ;-( > > > > > > can you give this one a test? > > > > Your patch did not solve it. > > > > But you are right that the program I use is a mess, it was doing > > > > tv.tv_sec = 0; > > tv.tv_usec = 5000000L; > > > > So I changed it to > > > > tv.tv_sec = 5; > > tv.tv_usec = 0; > > > > and it worked (with and without your patch). > > > > From what I understand this is what your patch does, > > so it is strange that it didn't work... > > > > > diff --git a/fs/compat.c b/fs/compat.c > > > index fe3c9bf..95ceee6 100644 > > > --- a/fs/compat.c > > > +++ b/fs/compat.c > > > @@ -1680,9 +1680,16 @@ asmlinkage long compat_sys_select(int n, compat_ulong_t __user *inp, > > > int ret; > > > > > > if (tvp) { > > > + int i; > > > if (copy_from_user(&tv, tvp, sizeof(tv))) > > > return -EFAULT; > > > > > > + while (tv.tv_usec > USEC_PER_SEC && i < 1000) { > ^ > should be >= > > > > + i++; > > > + tv.tv_sec ++; > > > + tv.tv_usec -= USEC_PER_SEC; > > > + } > > > + > > > to = &end_time; > > > if (poll_select_set_timeout(to, tv.tv_sec, > > > tv.tv_usec * NSEC_PER_USEC)) > > > diff --git a/fs/select.c b/fs/select.c > > > index 448e440..e4e7cdb 100644 > > > --- a/fs/select.c > > > +++ b/fs/select.c > > > @@ -515,9 +515,16 @@ asmlinkage long sys_select(int n, fd_set __user *inp, fd_set __user *outp, > > > int ret; > > > > > > if (tvp) { > > > + int i = 0; > > > if (copy_from_user(&tv, tvp, sizeof(tv))) > > > return -EFAULT; > > > > > > + while (tv.tv_usec > USEC_PER_SEC && i < 1000) { > > and here too
Yes, changing to >= solves the problem here. Thanks Arjan and Marcin!
quoted text
> > > + i++; > > > + tv.tv_sec ++; > > > + tv.tv_usec -= USEC_PER_SEC; > > > + } > > > + > > > to = &end_time; > > > if (poll_select_set_timeout(to, tv.tv_sec, > > > tv.tv_usec * NSEC_PER_USEC)) > > > > > > --
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[2.6.28-rc1 regression] wmifinfo dockapp takes 100% of cpu ...
, Carlos R. Mafra
, (Sat Oct 25, 2:40 am)
Re: [2.6.28-rc1 regression] wmifinfo dockapp takes 100% of ...
, Arjan van de Ven
, (Sat Oct 25, 7:05 am)
Re: [2.6.28-rc1 regression] wmifinfo dockapp takes 100% of ...
, Arjan van de Ven
, (Sat Oct 25, 7:13 am)
Re: [2.6.28-rc1 regression] wmifinfo dockapp takes 100% of ...
, Carlos R. Mafra
, (Sat Oct 25, 9:25 am)
Re: [2.6.28-rc1 regression] wmifinfo dockapp takes 100% of ...
, Marcin Slusarz
, (Sat Oct 25, 11:03 am)
Re: [2.6.28-rc1 regression] wmifinfo dockapp takes 100% of ...
, Carlos R. Mafra
, (Sat Oct 25, 11:29 am)
Re: [2.6.28-rc1 regression] wmifinfo dockapp takes 100% of ...
, Marcin Slusarz
, (Sat Oct 25, 11:39 am)
Re: [2.6.28-rc1 regression] wmifinfo dockapp takes 100% of ...
, Arjan van de Ven
, (Sat Oct 25, 12:12 pm)
Re: [2.6.28-rc1 regression] wmifinfo dockapp takes 100% of ...
, Ray Lee
, (Sat Oct 25, 12:38 pm)
Re: [2.6.28-rc1 regression] wmifinfo dockapp takes 100% of ...
, Andrew Morton
, (Thu Oct 30, 12:04 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Pete/Piet Delaney
Re: [Kgdb-bugreport] 2.6.23-rc3-mm1: kgdb build failure on powerpc
H. Peter Anvin
Re: [patch 0/2] Immediate Values - jump patching update
Adrian Bunk
2.6.23-rc3-mm1: m32r defconfig compile error
Hugh Dickins
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys_msync()
git
:
Han-Wen Nienhuys
Re: Cleaning up git user-interface warts
Brandon Casey
Re: [PATCH] git-relink: avoid hard linking in objects/info directory
Johannes Schindelin
Re: [PATCH] Documentation: config: add 'help.*' and 'instaweb.*' variables.
Steffen Prohaska
Re: best git practices, was Re: Git User's Survey 2007 unfinished summary continued
Felipe Contreras
Re: [PATCH v3 01/10] config: Codestyle cleanups.
git-commits-head
:
Linux Kernel Mailing List
ALSA: hda - Enable beep on Realtek codecs with PCI SSID override
Linux Kernel Mailing List
vhost: Fix host panic if ioctl called with wrong index
Linux Kernel Mailing List
ACPI : Disable the device's ability to wake the sleeping system in the boot phase
Linux Kernel Mailing List
Staging: add poch driver
Linux Kernel Mailing List
Staging: epl: remove NEAR
linux-netdev
:
Marcel Holtmann
Re: [PATCH 1/1] iwmc3200: add more SDIO device ids
David Miller
Re: [PATCH 1/3] f_phonet: dev_kfree_skb instead of dev_kfree_skb_any in TX callback
Eric Dumazet
Re: TCP-MD5 checksum failure on x86_64 SMP
Jarek Poplawski
Re: rib_trie / Fix inflate_threshold_root. Now=15 size=11 bits
Ilpo Järvinen
Re: [RFC] TCP illinois max rtt aging
freebsd-current
:
Rui Paulo
802.11s (wireless mesh) project status report
Andrew Thompson
Re: Apparent moused regression since r189490
Aryeh Friedman
SATA and PATA drives are mutually exclusive
Robert Kent
Re: [HEADSUP] amd64 suspend/resume code to be comitted
Remko Lodder
[Fwd: Re: kern/118258 sysctl causing panics on 7.0-xxx]
Colocation donated by:
Syndicate