lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1550126557-28530-1-git-send-email-huang.zijiang@zte.com.cn>
Date:   Thu, 14 Feb 2019 14:42:37 +0800
From:   Huang Zijiang <huang.zijiang@....com.cn>
To:     mingo@...hat.com
Cc:     peterz@...radead.org, linux-kernel@...r.kernel.org,
        wang.yi59@....com.cn, Huang Zijiang <huang.zijiang@....com.cn>
Subject: [PATCH] sched/core: Remove BUG_ON()

pick_next_task is never return NULL because idle task
will return when cpu is idle.

Signed-off-by: Huang Zijiang <huang.zijiang@....com.cn>
---
 kernel/sched/core.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index dbe9a3f..1de1a85 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -5624,7 +5624,6 @@ static void migrate_tasks(struct rq *dead_rq, struct rq_flags *rf)
  * 		 * pick_next_task() assumes pinned rq->lock:
  * 		 		 */
 		next = pick_next_task(rq, &fake_task, rf);
-		BUG_ON(!next);
 		put_prev_task(rq, next);
 
 		/*
-- 
1.8.3.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ