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: Marcin Slusarz
Subject:
Re: [2.6.28-rc1 regression] wmifinfo dockapp takes 100% of cpu (bisected)
Date: Saturday, October 25, 2008 - 11:03 am
On Sat, Oct 25, 2008 at 06:25:05PM +0200, Carlos R. Mafra wrote:
quoted text
> 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 >=
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)) > > 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
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
:
Fortier,Vincent [Montreal]
2.6.21.5 june 30th to july 1st date hang?
Jeff Dike
[ PATCH 2/6 ] UML - Formatting fixes around os_{read_write}_file callers
Liam Girdwood
[PATCH 07/13] regulator: regulator test harness
Oleg Nesterov
Re: Getting the new RxRPC patches upstream
Stefan Seyfried
Re: 2.6.19-rc5: grub is much slower resuming from suspend-to-disk than in 2.6.18
linux-netdev
:
Arnaud Ebalard
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b58019f0
Jan Engelhardt
Re: [PATCH iptables] extension: add xt_cpu match
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Sebastian Andrzej Siewior
[PATCH 8/8] net/emergency: remove locking from reycling pool if emergncy pools are...
David Miller
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2
git
:
Jakub Narebski
Re: git on MacOSX and files with decomposed utf-8 file names
Brandon Casey
Re: Thunderbird and patches (was Re: [PATCH v2] Enable setting attach as the def...
Christian Couder
[PATCH 1/3] rev-parse: add test script for "--verify"
Ramkumar Ramachandra
Re: [GSoC update] git-remote-svn: The final one
Junio C Hamano
Re: git-rm isn't the inverse action of git-add
openbsd-misc
:
Joachim Schipper
Re: UVC Webcams
Florin Andrei
SOLVED [was: firewall is very slow, something's wrong]
Todd Alan Smith
Re: Microsoft gets the Most Secure Operating Systems award
Neal Hogan
Re: Need Advice: Thinkpad T60 or T61?
Sam Fourman Jr.
Re: Real men don't attack straw men
git-commits-head
:
Linux Kernel Mailing List
ACPI: Disable ARB_DISABLE on platforms where it is not needed
Linux Kernel Mailing List
m68knommu: add read_barrier_depends() and irqs_disabled_flags()
Linux Kernel Mailing List
[MTD] Add mtd panic_write function pointer
Linux Kernel Mailing List
[ARM] pxa: remove duplicate select statements from Kconfig
Linux Kernel Mailing List
mlx4_core: Don't read reserved fields in mlx4_QUERY_ADAPTER()
Colocation donated by:
Syndicate