chushi: kabi: add reserved fields for core structure of message queue

add reserved fields to msg_msg for kernel binary interface compatibility
or emergency bug fix. and initialize them to zero when allocated.

Signed-off-by: Jiaolong He <hejiaolong@kernelsoft.com>
This commit is contained in:
Jiaolong He 2023-07-12 14:13:57 +08:00 committed by Xinpeng Liu
parent 71d84b1ac1
commit 39e7ddce21
2 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,10 @@ struct msg_msg {
size_t m_ts; /* message text size */
struct msg_msgseg *next;
void *security;
unsigned long chushi_reserve1;
unsigned long chushi_reserve2;
/* the actual message follows immediately */
};

View File

@ -56,6 +56,8 @@ static struct msg_msg *alloc_msg(size_t len)
msg->next = NULL;
msg->security = NULL;
msg->chushi_reserve1 = 0;
msg->chushi_reserve2 = 0;
len -= alen;
pseg = &msg->next;