Skip to content

Fix unlocked call to idr_find()

[email protected] lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2fixing idr_find() lockingipc/msg.c ipc/sem.c ipc/shm.c +2 more+198 -704 replies
2/2Removing unneeded parametersipc/msg.c ipc/sem.c ipc/shm.c +1 more+12 -170 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchJarek Poplawski
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH -mm1 0/2] Fix unlocked call to idr_find()

This a series of 2 patches that should be applied on top of the other ipc patches, in 2.6.23-rc6-mm1.

The first one is an answer to the following issue pointed out by Jarek:

Quoted 5 lines

Jarek Poplawski wrote:
1. ipc_lock() and ipc_lock_check() are used without ipc_ids.mutex, but it's probably wrong: they call idr_find() with ipc_ids pointer which needs this mutex, just like in similar code in: ipc_findkey(), ipc_get_maxid() or sysvipc_find_ipc().

The second one is a trivial patch that removes an unneeded parameter for 2 routines.

They should be applied to 2.6.23-rc6-mm1, in the following order:

[PATCH 1/2]: ipc_fix_idr_find_locking.patch
[PATCH 2/2]: ipc_remove_unneeded_params.patch

Regards,
Nadia

--