• R/O
  • SSH
  • HTTPS

akari: Commit


Commit MetaInfo

Revision586 (tree)
Time2018-03-26 19:49:37
Authorkumaneko

Log Message

(empty log message)

Change Summary

Incremental Difference

--- trunk/akari/lsm-2.6.0-vfs.c (revision 585)
+++ trunk/akari/lsm-2.6.0-vfs.c (revision 586)
@@ -1506,7 +1506,8 @@
15061506 struct list_head *list = &ccs_task_security_list
15071507 [hash_ptr((void *) task, CCS_TASK_SECURITY_HASH_BITS)];
15081508 /* Make sure INIT_LIST_HEAD() in ccs_mm_init() takes effect. */
1509- while (!list->next);
1509+ while (!list->next)
1510+ smp_rmb();
15101511 rcu_read_lock();
15111512 list_for_each_entry_rcu(ptr, list, list) {
15121513 if (ptr->task != task)
--- trunk/akari/lsm-2.6.0.c (revision 585)
+++ trunk/akari/lsm-2.6.0.c (revision 586)
@@ -1486,7 +1486,8 @@
14861486 struct list_head *list = &ccs_task_security_list
14871487 [hash_ptr((void *) task, CCS_TASK_SECURITY_HASH_BITS)];
14881488 /* Make sure INIT_LIST_HEAD() in ccs_mm_init() takes effect. */
1489- while (!list->next);
1489+ while (!list->next)
1490+ smp_rmb();
14901491 rcu_read_lock();
14911492 list_for_each_entry_rcu(ptr, list, list) {
14921493 if (ptr->task != task)
--- trunk/akari/lsm-2.6.29.c (revision 585)
+++ trunk/akari/lsm-2.6.29.c (revision 586)
@@ -2041,7 +2041,8 @@
20412041 struct list_head *list = &ccs_task_security_list
20422042 [hash_ptr((void *) task, CCS_TASK_SECURITY_HASH_BITS)];
20432043 /* Make sure INIT_LIST_HEAD() in ccs_mm_init() takes effect. */
2044- while (!list->next);
2044+ while (!list->next)
2045+ smp_rmb();
20452046 rcu_read_lock();
20462047 list_for_each_entry_rcu(ptr, list, list) {
20472048 if (ptr->pid != task->pids[PIDTYPE_PID].pid)
--- trunk/akari/lsm-4.12.c (revision 585)
+++ trunk/akari/lsm-4.12.c (revision 586)
@@ -1231,7 +1231,8 @@
12311231 struct list_head *list = &ccs_task_security_list
12321232 [hash_ptr((void *) task, CCS_TASK_SECURITY_HASH_BITS)];
12331233 /* Make sure INIT_LIST_HEAD() in ccs_mm_init() takes effect. */
1234- while (!list->next);
1234+ while (!list->next)
1235+ smp_rmb();
12351236 rcu_read_lock();
12361237 list_for_each_entry_rcu(ptr, list, list) {
12371238 if (ptr->task != task)
--- trunk/akari/lsm-4.2.c (revision 585)
+++ trunk/akari/lsm-4.2.c (revision 586)
@@ -1312,7 +1312,8 @@
13121312 struct list_head *list = &ccs_task_security_list
13131313 [hash_ptr((void *) task, CCS_TASK_SECURITY_HASH_BITS)];
13141314 /* Make sure INIT_LIST_HEAD() in ccs_mm_init() takes effect. */
1315- while (!list->next);
1315+ while (!list->next)
1316+ smp_rmb();
13161317 rcu_read_lock();
13171318 list_for_each_entry_rcu(ptr, list, list) {
13181319 if (ptr->pid != task->pids[PIDTYPE_PID].pid)
--- trunk/akari/lsm-4.7.c (revision 585)
+++ trunk/akari/lsm-4.7.c (revision 586)
@@ -1315,7 +1315,8 @@
13151315 struct list_head *list = &ccs_task_security_list
13161316 [hash_ptr((void *) task, CCS_TASK_SECURITY_HASH_BITS)];
13171317 /* Make sure INIT_LIST_HEAD() in ccs_mm_init() takes effect. */
1318- while (!list->next);
1318+ while (!list->next)
1319+ smp_rmb();
13191320 rcu_read_lock();
13201321 list_for_each_entry_rcu(ptr, list, list) {
13211322 if (ptr->pid != task->pids[PIDTYPE_PID].pid)
--- trunk/akari/memory.c (revision 585)
+++ trunk/akari/memory.c (revision 586)
@@ -257,7 +257,8 @@
257257 struct list_head *list = &ccs_task_security_list
258258 [hash_ptr((void *) task, CCS_TASK_SECURITY_HASH_BITS)];
259259 /* Make sure INIT_LIST_HEAD() in ccs_mm_init() takes effect. */
260- while (!list->next);
260+ while (!list->next)
261+ smp_rmb();
261262 rcu_read_lock();
262263 list_for_each_entry_rcu(ptr, list, list) {
263264 if (ptr->task != task)
Show on old repository browser