public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* regression: /proc/$pid/cmdline lacks trailing '\0' in 4.18-rc1
@ 2018-06-19  6:07 Michal Kubecek
  2018-06-19  9:22 ` Michal Kubecek
  0 siblings, 1 reply; 12+ messages in thread
From: Michal Kubecek @ 2018-06-19  6:07 UTC (permalink / raw)
  To: linux-kernel; +Cc: Alexey Dobriyan, Linus Torvalds

In v4.18-rc1, /proc/$pid/cmdline is missing final null byte which used
to be there in v4.17 and older kernels:

4.17.1:
tweed:~ # cat /proc/self/cmdline | od -t c
0000000   c   a   t  \0   /   p   r   o   c   /   s   e   l   f   /   c
0000020   m   d   l   i   n   e  \0
0000027

4.18-rc1:
lion:~ # cat /proc/self/cmdline | od -t c
0000000   c   a   t  \0   /   p   r   o   c   /   s   e   l   f   /   c
0000020   m   d   l   i   n   e
0000026

The code has been rewritten quite a lot in 4.18-rc1 so I didn't find yet
where exactly does the change come from. Still looking.

Michal Kubecek

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-06-20  9:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-19  6:07 regression: /proc/$pid/cmdline lacks trailing '\0' in 4.18-rc1 Michal Kubecek
2018-06-19  9:22 ` Michal Kubecek
2018-06-19 12:56   ` Michal Kubecek
2018-06-19 16:17     ` [PATCH] proc: add missing '\0' back to /proc/$pid/cmdline kbuild test robot
2018-06-19 16:17   ` Michal Kubecek
2018-06-19 16:28     ` [PATCH v2] " Michal Kubecek
2018-06-19 17:14       ` Alexey Dobriyan
2018-06-19 21:56     ` [PATCH] " Linus Torvalds
2018-06-20  5:08       ` Michal Kubecek
2018-06-20  5:51         ` Linus Torvalds
2018-06-20  6:09           ` Michal Kubecek
2018-06-20  9:22     ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox