projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9357bf5
)
ipc/msg: replace one-element array with flexible array member
author
Thorsten Blum
<thorsten.blum@linux.dev>
Mon, 30 Sep 2024 19:58:22 +0000
(21:58 +0200)
committer
Andrew Morton
<akpm@linux-foundation.org>
Wed, 6 Nov 2024 01:12:28 +0000
(17:12 -0800)
Replace the deprecated one-element array with a modern flexible array
member in the struct compat_msgbuf.
There are no binary differences after this conversion.
Link:
https://github.com/KSPP/linux/issues/79
Link:
https://lkml.kernel.org/r/20240930195824.153648-2-thorsten.blum@linux.dev
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Cc: "Sun, Jiebin" <jiebin.sun@intel.com>
Cc: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
ipc/msg.c
patch
|
blob
|
blame
|
history
diff --git
a/ipc/msg.c
b/ipc/msg.c
index fd08b3cb36d798a9b70f30dd5df6f12e68390e39..ee6af4fe52bff59a63c1b7a1806b1ebb4f4e294e 100644
(file)
--- a/
ipc/msg.c
+++ b/
ipc/msg.c
@@
-978,7
+978,7
@@
SYSCALL_DEFINE4(msgsnd, int, msqid, struct msgbuf __user *, msgp, size_t, msgsz,
struct compat_msgbuf {
compat_long_t mtype;
- char mtext[
1
];
+ char mtext[];
};
long compat_ksys_msgsnd(int msqid, compat_uptr_t msgp,