[PATCH 0/5] ipc: cleanups & bugfixes

From: Manfred Spraul
Date: Thu Jul 05 2018 - 01:59:41 EST


Hi,

Dmitry convinced me that I should properly review the initialization
of new ipc objects, and I found another issue.

The series corrects 3 issues with ipc_addid(), and also renames
two functions and corrects a wrong comment.

0001-ipc-reorganize-initialization-of-kern_ipc_perm.id:
Access kern_ipc_perm.id under the IPC spinlock.
My original idea of removing kern_ipc_perm entirely
is not possible, e.g. the proc interface needs the id.

0002-ipc-reorganize-initialization-of-kern_ipc_perm.seq:
Bugfix for the syzbot finding

0003-ipc-util.c-Use-ipc_rcu_putref-for-failues-in-ipc_add:
Bugfix from code review

0004-ipc-Rename-ipcctl_pre_down_nolock.patch:
Comment update & function rename from code review

0005-ipc-rename-ipc_lock-to-ipc_lock_idr:
Function rename from code review

0006-ipc-util.c-correct-comment-in-ipc_obtain_object_che
Comment correction from code review

The patches are lightly tested, especially I have not tested
the checkpoint/restore code or tested the failure cases.

--
Manfred