login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
19
Re: [PATCH] sched: fix to use invalid sched_class
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Ingo Molnar <mingo@...>
To: Hiroshi Shimamoto <h-shimamoto@...>
Cc: <linux-kernel@...>, Peter Zijlstra <a.p.zijlstra@...>, Andrew Morton <akpm@...>
Subject:
Re: [PATCH] sched: fix to use invalid sched_class
Date: Wednesday, September 19, 2007 - 5:37 pm
* Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> wrote:
quoted text
> Hi Ingo, > > I found an issue about the scheduler. > If you need a test case, please let me know. > Here is a patch. > > When using rt_mutex, a NULL pointer dereference is occurred at > enqueue_task_rt. Here is a scenario; > 1) there are two threads, the thread A is fair_sched_class and > thread B is rt_sched_class. > 2) Thread A is boosted up to rt_sched_class, because the thread A > has a rt_mutex lock and the thread B is waiting the lock. > 3) At this time, when thread A create a new thread C, the thread > C has a rt_sched_class. > 4) When doing wake_up_new_task() for the thread C, the priority > of the thread C is out of the RT priority range, because the > normal priority of thread A is not the RT priority. It makes > data corruption by overflowing the rt_prio_array. > The new thread C should be fair_sched_class. > > The new thread should be valid scheduler class before queuing. > This patch fixes to set the suitable scheduler class.
Nice fix! It's a 2.6.23 must-have fix - i'll push it out into the scheduler tree. Thanks! Ingo -
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:
[PATCH] sched: fix to use invalid sched_class
, Hiroshi Shimamoto
, (Wed Sep 19, 5:14 pm)
Re: [PATCH] sched: fix to use invalid sched_class
, Ingo Molnar
, (Wed Sep 19, 5:37 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Alan
Re: [RFC] Heads up on sys_fallocate()
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
Paul Mundt
Re: 2.6.22-rc4-mm2
git
:
openbsd-misc
:
linux-netdev
:
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
Re: [GIT]: Networking
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
Colocation donated by:
Who's online
There are currently
5 users
and
621 guests
online.
Online users
zvivered
cleanairexpert4
lawzcael
lawzcael
sergdesna
Syndicate