kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Change proc/<pid>/cmdline to 8k
@ 2015-06-04  4:22 Navin P
  2015-06-04  5:17 ` Greg KH
  0 siblings, 1 reply; 11+ messages in thread
From: Navin P @ 2015-06-04  4:22 UTC (permalink / raw)
  To: kernelnewbies

Hi,

  I want to change the cmdline of a process to support 8096 . It works
well on ppc where the page size is 65k.
  But when i try to increase it on x86 (i686)

http://lxr.free-electrons.com/source/fs/proc/base.c  by doing
6*PAGE_SIZE, i get kernel panic after some time

199 static int proc_pid_cmdline(struct seq_file *m, struct pid_namespace *ns,
200                             struct pid *pid, struct task_struct *task)
201 {
202         /*
203          * Rely on struct seq_operations::show() being called once
204          * per internal buffer allocation. See single_open(), traverse().
205          */
206         BUG_ON(m->size < PAGE_SIZE);
207         m->count += get_cmdline(task, m->buf, 6*PAGE_SIZE);
208         return 0;
209 }
210


Regards,
Navin

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

end of thread, other threads:[~2015-06-16 10:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-04  4:22 Change proc/<pid>/cmdline to 8k Navin P
2015-06-04  5:17 ` Greg KH
2015-06-04  7:41   ` Navin P
2015-06-04  8:04     ` Greg KH
2015-06-04 15:36       ` Navin P
2015-06-04 22:07         ` Greg KH
2015-06-04 22:18           ` Valdis.Kletnieks at vt.edu
2015-06-04 22:38             ` Greg KH
2015-06-04 22:19         ` Valdis.Kletnieks at vt.edu
2015-06-05  3:21           ` Navin P
2015-06-16 10:34             ` Navin P

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).