ipc: IPCMNI limit check for *mni & increase that limit
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v9 Latest4 patches 0 repliesNew
- v85 patches 11 repliesSuperseded
- v74 patches 6 repliesSuperseded
Changes in v9 from the cover letter
- Rebased to 4.19-rc2 (changes needed only in patches 3 & 4).
- Drop patch 5 "ipc: Add a new ipcmni_compat sysctl to fall back to old behavior" as this patch may not really be needed.
- Move 1 byte from sequence number to index in extended mode leading to 8M IPCMNI limit in extended mode.
- Change some macro names to avoid name collision.
Patches in v9 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | ipc: IPCMNI limit check for msgmni and shmmniipc/ | +5 | 0 replies | |
| 2/4 | ipc: IPCMNI limit check for semmniipc/ ipc/ | +31 | 0 replies | |
| 3/4 | ipc: Allow boot time extension of IPCMNI from 32k to 8MDocumentation/ ipc/ ipc/ +1 more | +54 | 0 replies | |
| 4/4 | ipc: Conserve sequence numbers in extended IPCMNI modeinclude/ ipc/ ipc/ +1 more | +20 | 0 replies |
Reviews trailers per patch
2 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Davidlohr Bueso | Luis R. Rodriguez |
|---|---|---|
| 1/4 | R-b | A-b |
| 2/4 | R-b | |
| 3/4 | ||
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v9 0/4] ipc: IPCMNI limit check for *mni & increase that limit
v8->v9:
- Rebased to 4.19-rc2 (changes needed only in patches 3 & 4).
- Drop patch 5 "ipc: Add a new ipcmni_compat sysctl to fall back to old behavior" as this patch may not really be needed.
- Move 1 byte from sequence number to index in extended mode leading to 8M IPCMNI limit in extended mode.
- Change some macro names to avoid name collision.
v6 patch: https://lkml.org/lkml/2018/4/27/1094
v7 patch: https://lkml.org/lkml/2018/5/7/666
v8 patch: https://lkml.org/lkml/2018/6/18/706
The sysctl parameters msgmni, shmmni and semmni have an inherent limit of IPC_MNI (32k). However, users may not be aware of that because they can write a value much higher than that without getting any error or notification. Reading the parameters back will show the newly written values which are not real.
The real IPCMNI limit is now enforced to make sure that users won't put in an unrealistic value. The first 2 patches enforce the limits.
There are also users out there requesting increase in the IPCMNI value. The last 2 patches attempt to do that by using a boot kernel parameter "ipcmni_extend" to increase the IPCMNI limit from 32k to 8M if the users really want the extended value.
Waiman Long (4):
ipc: IPCMNI limit check for msgmni and shmmni
ipc: IPCMNI limit check for semmni
ipc: Allow boot time extension of IPCMNI from 32k to 8M
ipc: Conserve sequence numbers in extended IPCMNI mode
Documentation/admin-guide/kernel-parameters.txt | 3 ++ include/linux/ipc_namespace.h | 1 + ipc/ipc_sysctl.c | 42 ++++++++++++++++++-- ipc/util.c | 29 +++++++++----- ipc/util.h | 51 +++++++++++++++++++++---- 5 files changed, 107 insertions(+), 19 deletions(-)
Signature · 1 line
1.8.3.1