3 * Copyright (C) 1992 Krishna Balasubramanian
5 * Removed all the remaining kerneld mess
6 * Catch the -EFAULT stuff properly
7 * Use GFP_KERNEL for messages as in 1.2
8 * Fixed up the unchecked user space derefs
9 * Copyright (C) 1998 Alan Cox & Andi Kleen
11 * /proc/sysvipc/msg support (c) 1999 Dragos Acostachioaie <dragos@iname.com>
13 * mostly rewritten, threaded and wake-one semantics added
14 * MSGMAX limit removed, sysctl's added
15 * (c) 1999 Manfred Spraul <manfred@colorfullife.com>
17 * support for audit of ipc object properties and permission changes
18 * Dustin Kirkland <dustin.kirkland@us.ibm.com>
22 * Pavel Emelianov <xemul@openvz.org>
25 #include <linux/capability.h>
26 #include <linux/slab.h>
27 #include <linux/msg.h>
28 #include <linux/spinlock.h>
29 #include <linux/init.h>
30 #include <linux/proc_fs.h>
31 #include <linux/list.h>
32 #include <linux/security.h>
33 #include <linux/sched.h>
34 #include <linux/syscalls.h>
35 #include <linux/audit.h>
36 #include <linux/seq_file.h>
37 #include <linux/mutex.h>
38 #include <linux/nsproxy.h>
40 #include <asm/current.h>
41 #include <asm/uaccess.h>
45 * one msg_receiver structure for each sleeping receiver:
48 struct list_head r_list
;
49 struct task_struct
*r_tsk
;
55 struct msg_msg
*volatile r_msg
;
58 /* one msg_sender for each sleeping sender */
60 struct list_head list
;
61 struct task_struct
*tsk
;
65 #define SEARCH_EQUAL 2
66 #define SEARCH_NOTEQUAL 3
67 #define SEARCH_LESSEQUAL 4
69 static atomic_t msg_bytes
= ATOMIC_INIT(0);
70 static atomic_t msg_hdrs
= ATOMIC_INIT(0);
72 static struct ipc_ids init_msg_ids
;
74 #define msg_ids(ns) (*((ns)->ids[IPC_MSG_IDS]))
76 #define msg_unlock(msq) ipc_unlock(&(msq)->q_perm)
77 #define msg_buildid(ns, id, seq) \
78 ipc_buildid(&msg_ids(ns), id, seq)
80 static void freeque(struct ipc_namespace
*, struct msg_queue
*);
81 static int newque(struct ipc_namespace
*, struct ipc_params
*);
83 static int sysvipc_msg_proc_show(struct seq_file
*s
, void *it
);
86 static void __msg_init_ns(struct ipc_namespace
*ns
, struct ipc_ids
*ids
)
88 ns
->ids
[IPC_MSG_IDS
] = ids
;
89 ns
->msg_ctlmax
= MSGMAX
;
90 ns
->msg_ctlmnb
= MSGMNB
;
91 ns
->msg_ctlmni
= MSGMNI
;
95 int msg_init_ns(struct ipc_namespace
*ns
)
99 ids
= kmalloc(sizeof(struct ipc_ids
), GFP_KERNEL
);
103 __msg_init_ns(ns
, ids
);
107 void msg_exit_ns(struct ipc_namespace
*ns
)
109 struct msg_queue
*msq
;
113 mutex_lock(&msg_ids(ns
).mutex
);
115 in_use
= msg_ids(ns
).in_use
;
117 for (total
= 0, next_id
= 0; total
< in_use
; next_id
++) {
118 msq
= idr_find(&msg_ids(ns
).ipcs_idr
, next_id
);
121 ipc_lock_by_ptr(&msq
->q_perm
);
125 mutex_unlock(&msg_ids(ns
).mutex
);
127 kfree(ns
->ids
[IPC_MSG_IDS
]);
128 ns
->ids
[IPC_MSG_IDS
] = NULL
;
131 void __init
msg_init(void)
133 __msg_init_ns(&init_ipc_ns
, &init_msg_ids
);
134 ipc_init_proc_interface("sysvipc/msg",
135 " key msqid perms cbytes qnum lspid lrpid uid gid cuid cgid stime rtime ctime\n",
136 IPC_MSG_IDS
, sysvipc_msg_proc_show
);
139 static inline struct msg_queue
*msg_lock(struct ipc_namespace
*ns
, int id
)
141 struct kern_ipc_perm
*ipcp
= ipc_lock(&msg_ids(ns
), id
);
143 return container_of(ipcp
, struct msg_queue
, q_perm
);
146 static inline struct msg_queue
*msg_lock_check(struct ipc_namespace
*ns
,
149 struct kern_ipc_perm
*ipcp
= ipc_lock_check(&msg_ids(ns
), id
);
151 return container_of(ipcp
, struct msg_queue
, q_perm
);
154 static inline void msg_rmid(struct ipc_namespace
*ns
, struct msg_queue
*s
)
156 ipc_rmid(&msg_ids(ns
), &s
->q_perm
);
159 static int newque(struct ipc_namespace
*ns
, struct ipc_params
*params
)
161 struct msg_queue
*msq
;
163 key_t key
= params
->key
;
164 int msgflg
= params
->flg
;
166 msq
= ipc_rcu_alloc(sizeof(*msq
));
170 msq
->q_perm
.mode
= msgflg
& S_IRWXUGO
;
171 msq
->q_perm
.key
= key
;
173 msq
->q_perm
.security
= NULL
;
174 retval
= security_msg_queue_alloc(msq
);
181 * ipc_addid() locks msq
183 id
= ipc_addid(&msg_ids(ns
), &msq
->q_perm
, ns
->msg_ctlmni
);
185 security_msg_queue_free(msq
);
190 msq
->q_perm
.id
= msg_buildid(ns
, id
, msq
->q_perm
.seq
);
191 msq
->q_stime
= msq
->q_rtime
= 0;
192 msq
->q_ctime
= get_seconds();
193 msq
->q_cbytes
= msq
->q_qnum
= 0;
194 msq
->q_qbytes
= ns
->msg_ctlmnb
;
195 msq
->q_lspid
= msq
->q_lrpid
= 0;
196 INIT_LIST_HEAD(&msq
->q_messages
);
197 INIT_LIST_HEAD(&msq
->q_receivers
);
198 INIT_LIST_HEAD(&msq
->q_senders
);
202 return msq
->q_perm
.id
;
205 static inline void ss_add(struct msg_queue
*msq
, struct msg_sender
*mss
)
208 current
->state
= TASK_INTERRUPTIBLE
;
209 list_add_tail(&mss
->list
, &msq
->q_senders
);
212 static inline void ss_del(struct msg_sender
*mss
)
214 if (mss
->list
.next
!= NULL
)
215 list_del(&mss
->list
);
218 static void ss_wakeup(struct list_head
*h
, int kill
)
220 struct list_head
*tmp
;
224 struct msg_sender
*mss
;
226 mss
= list_entry(tmp
, struct msg_sender
, list
);
229 mss
->list
.next
= NULL
;
230 wake_up_process(mss
->tsk
);
234 static void expunge_all(struct msg_queue
*msq
, int res
)
236 struct list_head
*tmp
;
238 tmp
= msq
->q_receivers
.next
;
239 while (tmp
!= &msq
->q_receivers
) {
240 struct msg_receiver
*msr
;
242 msr
= list_entry(tmp
, struct msg_receiver
, r_list
);
245 wake_up_process(msr
->r_tsk
);
247 msr
->r_msg
= ERR_PTR(res
);
252 * freeque() wakes up waiters on the sender and receiver waiting queue,
253 * removes the message queue from message queue ID
254 * IDR, and cleans up all the messages associated with this queue.
256 * msg_ids.mutex and the spinlock for this message queue are held
257 * before freeque() is called. msg_ids.mutex remains locked on exit.
259 static void freeque(struct ipc_namespace
*ns
, struct msg_queue
*msq
)
261 struct list_head
*tmp
;
263 expunge_all(msq
, -EIDRM
);
264 ss_wakeup(&msq
->q_senders
, 1);
268 tmp
= msq
->q_messages
.next
;
269 while (tmp
!= &msq
->q_messages
) {
270 struct msg_msg
*msg
= list_entry(tmp
, struct msg_msg
, m_list
);
273 atomic_dec(&msg_hdrs
);
276 atomic_sub(msq
->q_cbytes
, &msg_bytes
);
277 security_msg_queue_free(msq
);
281 static inline int msg_security(struct kern_ipc_perm
*ipcp
, int msgflg
)
283 struct msg_queue
*msq
= container_of(ipcp
, struct msg_queue
, q_perm
);
285 return security_msg_queue_associate(msq
, msgflg
);
288 asmlinkage
long sys_msgget(key_t key
, int msgflg
)
290 struct ipc_namespace
*ns
;
291 struct ipc_ops msg_ops
;
292 struct ipc_params msg_params
;
294 ns
= current
->nsproxy
->ipc_ns
;
296 msg_ops
.getnew
= newque
;
297 msg_ops
.associate
= msg_security
;
298 msg_ops
.more_checks
= NULL
;
300 msg_params
.key
= key
;
301 msg_params
.flg
= msgflg
;
303 return ipcget(ns
, &msg_ids(ns
), &msg_ops
, &msg_params
);
306 static inline unsigned long
307 copy_msqid_to_user(void __user
*buf
, struct msqid64_ds
*in
, int version
)
311 return copy_to_user(buf
, in
, sizeof(*in
));
316 memset(&out
, 0, sizeof(out
));
318 ipc64_perm_to_ipc_perm(&in
->msg_perm
, &out
.msg_perm
);
320 out
.msg_stime
= in
->msg_stime
;
321 out
.msg_rtime
= in
->msg_rtime
;
322 out
.msg_ctime
= in
->msg_ctime
;
324 if (in
->msg_cbytes
> USHRT_MAX
)
325 out
.msg_cbytes
= USHRT_MAX
;
327 out
.msg_cbytes
= in
->msg_cbytes
;
328 out
.msg_lcbytes
= in
->msg_cbytes
;
330 if (in
->msg_qnum
> USHRT_MAX
)
331 out
.msg_qnum
= USHRT_MAX
;
333 out
.msg_qnum
= in
->msg_qnum
;
335 if (in
->msg_qbytes
> USHRT_MAX
)
336 out
.msg_qbytes
= USHRT_MAX
;
338 out
.msg_qbytes
= in
->msg_qbytes
;
339 out
.msg_lqbytes
= in
->msg_qbytes
;
341 out
.msg_lspid
= in
->msg_lspid
;
342 out
.msg_lrpid
= in
->msg_lrpid
;
344 return copy_to_user(buf
, &out
, sizeof(out
));
352 unsigned long qbytes
;
358 static inline unsigned long
359 copy_msqid_from_user(struct msq_setbuf
*out
, void __user
*buf
, int version
)
364 struct msqid64_ds tbuf
;
366 if (copy_from_user(&tbuf
, buf
, sizeof(tbuf
)))
369 out
->qbytes
= tbuf
.msg_qbytes
;
370 out
->uid
= tbuf
.msg_perm
.uid
;
371 out
->gid
= tbuf
.msg_perm
.gid
;
372 out
->mode
= tbuf
.msg_perm
.mode
;
378 struct msqid_ds tbuf_old
;
380 if (copy_from_user(&tbuf_old
, buf
, sizeof(tbuf_old
)))
383 out
->uid
= tbuf_old
.msg_perm
.uid
;
384 out
->gid
= tbuf_old
.msg_perm
.gid
;
385 out
->mode
= tbuf_old
.msg_perm
.mode
;
387 if (tbuf_old
.msg_qbytes
== 0)
388 out
->qbytes
= tbuf_old
.msg_lqbytes
;
390 out
->qbytes
= tbuf_old
.msg_qbytes
;
399 asmlinkage
long sys_msgctl(int msqid
, int cmd
, struct msqid_ds __user
*buf
)
401 struct kern_ipc_perm
*ipcp
;
402 struct msq_setbuf
uninitialized_var(setbuf
);
403 struct msg_queue
*msq
;
405 struct ipc_namespace
*ns
;
407 if (msqid
< 0 || cmd
< 0)
410 version
= ipc_parse_version(&cmd
);
411 ns
= current
->nsproxy
->ipc_ns
;
417 struct msginfo msginfo
;
423 * We must not return kernel stack data.
424 * due to padding, it's not enough
425 * to set all member fields.
427 err
= security_msg_queue_msgctl(NULL
, cmd
);
431 memset(&msginfo
, 0, sizeof(msginfo
));
432 msginfo
.msgmni
= ns
->msg_ctlmni
;
433 msginfo
.msgmax
= ns
->msg_ctlmax
;
434 msginfo
.msgmnb
= ns
->msg_ctlmnb
;
435 msginfo
.msgssz
= MSGSSZ
;
436 msginfo
.msgseg
= MSGSEG
;
437 mutex_lock(&msg_ids(ns
).mutex
);
438 if (cmd
== MSG_INFO
) {
439 msginfo
.msgpool
= msg_ids(ns
).in_use
;
440 msginfo
.msgmap
= atomic_read(&msg_hdrs
);
441 msginfo
.msgtql
= atomic_read(&msg_bytes
);
443 msginfo
.msgmap
= MSGMAP
;
444 msginfo
.msgpool
= MSGPOOL
;
445 msginfo
.msgtql
= MSGTQL
;
447 max_id
= ipc_get_maxid(&msg_ids(ns
));
448 mutex_unlock(&msg_ids(ns
).mutex
);
449 if (copy_to_user(buf
, &msginfo
, sizeof(struct msginfo
)))
451 return (max_id
< 0) ? 0 : max_id
;
453 case MSG_STAT
: /* msqid is an index rather than a msg queue id */
456 struct msqid64_ds tbuf
;
462 if (cmd
== MSG_STAT
) {
463 msq
= msg_lock(ns
, msqid
);
466 success_return
= msq
->q_perm
.id
;
468 msq
= msg_lock_check(ns
, msqid
);
474 if (ipcperms(&msq
->q_perm
, S_IRUGO
))
477 err
= security_msg_queue_msgctl(msq
, cmd
);
481 memset(&tbuf
, 0, sizeof(tbuf
));
483 kernel_to_ipc64_perm(&msq
->q_perm
, &tbuf
.msg_perm
);
484 tbuf
.msg_stime
= msq
->q_stime
;
485 tbuf
.msg_rtime
= msq
->q_rtime
;
486 tbuf
.msg_ctime
= msq
->q_ctime
;
487 tbuf
.msg_cbytes
= msq
->q_cbytes
;
488 tbuf
.msg_qnum
= msq
->q_qnum
;
489 tbuf
.msg_qbytes
= msq
->q_qbytes
;
490 tbuf
.msg_lspid
= msq
->q_lspid
;
491 tbuf
.msg_lrpid
= msq
->q_lrpid
;
493 if (copy_msqid_to_user(buf
, &tbuf
, version
))
495 return success_return
;
500 if (copy_msqid_from_user(&setbuf
, buf
, version
))
509 mutex_lock(&msg_ids(ns
).mutex
);
510 msq
= msg_lock_check(ns
, msqid
);
518 err
= audit_ipc_obj(ipcp
);
521 if (cmd
== IPC_SET
) {
522 err
= audit_ipc_set_perm(setbuf
.qbytes
, setbuf
.uid
, setbuf
.gid
,
529 if (current
->euid
!= ipcp
->cuid
&&
530 current
->euid
!= ipcp
->uid
&& !capable(CAP_SYS_ADMIN
))
531 /* We _could_ check for CAP_CHOWN above, but we don't */
534 err
= security_msg_queue_msgctl(msq
, cmd
);
542 if (setbuf
.qbytes
> ns
->msg_ctlmnb
&& !capable(CAP_SYS_RESOURCE
))
545 msq
->q_qbytes
= setbuf
.qbytes
;
547 ipcp
->uid
= setbuf
.uid
;
548 ipcp
->gid
= setbuf
.gid
;
549 ipcp
->mode
= (ipcp
->mode
& ~S_IRWXUGO
) |
550 (S_IRWXUGO
& setbuf
.mode
);
551 msq
->q_ctime
= get_seconds();
552 /* sleeping receivers might be excluded by
553 * stricter permissions.
555 expunge_all(msq
, -EAGAIN
);
556 /* sleeping senders might be able to send
557 * due to a larger queue size.
559 ss_wakeup(&msq
->q_senders
, 0);
569 mutex_unlock(&msg_ids(ns
).mutex
);
579 static int testmsg(struct msg_msg
*msg
, long type
, int mode
)
585 case SEARCH_LESSEQUAL
:
586 if (msg
->m_type
<=type
)
590 if (msg
->m_type
== type
)
593 case SEARCH_NOTEQUAL
:
594 if (msg
->m_type
!= type
)
601 static inline int pipelined_send(struct msg_queue
*msq
, struct msg_msg
*msg
)
603 struct list_head
*tmp
;
605 tmp
= msq
->q_receivers
.next
;
606 while (tmp
!= &msq
->q_receivers
) {
607 struct msg_receiver
*msr
;
609 msr
= list_entry(tmp
, struct msg_receiver
, r_list
);
611 if (testmsg(msg
, msr
->r_msgtype
, msr
->r_mode
) &&
612 !security_msg_queue_msgrcv(msq
, msg
, msr
->r_tsk
,
613 msr
->r_msgtype
, msr
->r_mode
)) {
615 list_del(&msr
->r_list
);
616 if (msr
->r_maxsize
< msg
->m_ts
) {
618 wake_up_process(msr
->r_tsk
);
620 msr
->r_msg
= ERR_PTR(-E2BIG
);
623 msq
->q_lrpid
= task_pid_vnr(msr
->r_tsk
);
624 msq
->q_rtime
= get_seconds();
625 wake_up_process(msr
->r_tsk
);
636 long do_msgsnd(int msqid
, long mtype
, void __user
*mtext
,
637 size_t msgsz
, int msgflg
)
639 struct msg_queue
*msq
;
642 struct ipc_namespace
*ns
;
644 ns
= current
->nsproxy
->ipc_ns
;
646 if (msgsz
> ns
->msg_ctlmax
|| (long) msgsz
< 0 || msqid
< 0)
651 msg
= load_msg(mtext
, msgsz
);
658 msq
= msg_lock_check(ns
, msqid
);
668 if (ipcperms(&msq
->q_perm
, S_IWUGO
))
669 goto out_unlock_free
;
671 err
= security_msg_queue_msgsnd(msq
, msg
, msgflg
);
673 goto out_unlock_free
;
675 if (msgsz
+ msq
->q_cbytes
<= msq
->q_qbytes
&&
676 1 + msq
->q_qnum
<= msq
->q_qbytes
) {
680 /* queue full, wait: */
681 if (msgflg
& IPC_NOWAIT
) {
683 goto out_unlock_free
;
690 ipc_lock_by_ptr(&msq
->q_perm
);
692 if (msq
->q_perm
.deleted
) {
694 goto out_unlock_free
;
698 if (signal_pending(current
)) {
699 err
= -ERESTARTNOHAND
;
700 goto out_unlock_free
;
704 msq
->q_lspid
= task_tgid_vnr(current
);
705 msq
->q_stime
= get_seconds();
707 if (!pipelined_send(msq
, msg
)) {
708 /* noone is waiting for this message, enqueue it */
709 list_add_tail(&msg
->m_list
, &msq
->q_messages
);
710 msq
->q_cbytes
+= msgsz
;
712 atomic_add(msgsz
, &msg_bytes
);
713 atomic_inc(&msg_hdrs
);
728 sys_msgsnd(int msqid
, struct msgbuf __user
*msgp
, size_t msgsz
, int msgflg
)
732 if (get_user(mtype
, &msgp
->mtype
))
734 return do_msgsnd(msqid
, mtype
, msgp
->mtext
, msgsz
, msgflg
);
737 static inline int convert_mode(long *msgtyp
, int msgflg
)
740 * find message of correct type.
741 * msgtyp = 0 => get first.
742 * msgtyp > 0 => get first message of matching type.
743 * msgtyp < 0 => get message with least type must be < abs(msgtype).
749 return SEARCH_LESSEQUAL
;
751 if (msgflg
& MSG_EXCEPT
)
752 return SEARCH_NOTEQUAL
;
756 long do_msgrcv(int msqid
, long *pmtype
, void __user
*mtext
,
757 size_t msgsz
, long msgtyp
, int msgflg
)
759 struct msg_queue
*msq
;
762 struct ipc_namespace
*ns
;
764 if (msqid
< 0 || (long) msgsz
< 0)
766 mode
= convert_mode(&msgtyp
, msgflg
);
767 ns
= current
->nsproxy
->ipc_ns
;
769 msq
= msg_lock_check(ns
, msqid
);
774 struct msg_receiver msr_d
;
775 struct list_head
*tmp
;
777 msg
= ERR_PTR(-EACCES
);
778 if (ipcperms(&msq
->q_perm
, S_IRUGO
))
781 msg
= ERR_PTR(-EAGAIN
);
782 tmp
= msq
->q_messages
.next
;
783 while (tmp
!= &msq
->q_messages
) {
784 struct msg_msg
*walk_msg
;
786 walk_msg
= list_entry(tmp
, struct msg_msg
, m_list
);
787 if (testmsg(walk_msg
, msgtyp
, mode
) &&
788 !security_msg_queue_msgrcv(msq
, walk_msg
, current
,
792 if (mode
== SEARCH_LESSEQUAL
&&
793 walk_msg
->m_type
!= 1) {
795 msgtyp
= walk_msg
->m_type
- 1;
805 * Found a suitable message.
806 * Unlink it from the queue.
808 if ((msgsz
< msg
->m_ts
) && !(msgflg
& MSG_NOERROR
)) {
809 msg
= ERR_PTR(-E2BIG
);
812 list_del(&msg
->m_list
);
814 msq
->q_rtime
= get_seconds();
815 msq
->q_lrpid
= task_tgid_vnr(current
);
816 msq
->q_cbytes
-= msg
->m_ts
;
817 atomic_sub(msg
->m_ts
, &msg_bytes
);
818 atomic_dec(&msg_hdrs
);
819 ss_wakeup(&msq
->q_senders
, 0);
823 /* No message waiting. Wait for a message */
824 if (msgflg
& IPC_NOWAIT
) {
825 msg
= ERR_PTR(-ENOMSG
);
828 list_add_tail(&msr_d
.r_list
, &msq
->q_receivers
);
829 msr_d
.r_tsk
= current
;
830 msr_d
.r_msgtype
= msgtyp
;
832 if (msgflg
& MSG_NOERROR
)
833 msr_d
.r_maxsize
= INT_MAX
;
835 msr_d
.r_maxsize
= msgsz
;
836 msr_d
.r_msg
= ERR_PTR(-EAGAIN
);
837 current
->state
= TASK_INTERRUPTIBLE
;
842 /* Lockless receive, part 1:
843 * Disable preemption. We don't hold a reference to the queue
844 * and getting a reference would defeat the idea of a lockless
845 * operation, thus the code relies on rcu to guarantee the
847 * Prior to destruction, expunge_all(-EIRDM) changes r_msg.
848 * Thus if r_msg is -EAGAIN, then the queue not yet destroyed.
849 * rcu_read_lock() prevents preemption between reading r_msg
850 * and the spin_lock() inside ipc_lock_by_ptr().
854 /* Lockless receive, part 2:
855 * Wait until pipelined_send or expunge_all are outside of
856 * wake_up_process(). There is a race with exit(), see
857 * ipc/mqueue.c for the details.
859 msg
= (struct msg_msg
*)msr_d
.r_msg
;
860 while (msg
== NULL
) {
862 msg
= (struct msg_msg
*)msr_d
.r_msg
;
865 /* Lockless receive, part 3:
866 * If there is a message or an error then accept it without
869 if (msg
!= ERR_PTR(-EAGAIN
)) {
874 /* Lockless receive, part 3:
875 * Acquire the queue spinlock.
877 ipc_lock_by_ptr(&msq
->q_perm
);
880 /* Lockless receive, part 4:
881 * Repeat test after acquiring the spinlock.
883 msg
= (struct msg_msg
*)msr_d
.r_msg
;
884 if (msg
!= ERR_PTR(-EAGAIN
))
887 list_del(&msr_d
.r_list
);
888 if (signal_pending(current
)) {
889 msg
= ERR_PTR(-ERESTARTNOHAND
);
898 msgsz
= (msgsz
> msg
->m_ts
) ? msg
->m_ts
: msgsz
;
899 *pmtype
= msg
->m_type
;
900 if (store_msg(mtext
, msg
, msgsz
))
908 asmlinkage
long sys_msgrcv(int msqid
, struct msgbuf __user
*msgp
, size_t msgsz
,
909 long msgtyp
, int msgflg
)
913 err
= do_msgrcv(msqid
, &mtype
, msgp
->mtext
, msgsz
, msgtyp
, msgflg
);
917 if (put_user(mtype
, &msgp
->mtype
))
923 #ifdef CONFIG_PROC_FS
924 static int sysvipc_msg_proc_show(struct seq_file
*s
, void *it
)
926 struct msg_queue
*msq
= it
;
929 "%10d %10d %4o %10lu %10lu %5u %5u %5u %5u %5u %5u %10lu %10lu %10lu\n",