lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 27 Apr 2011 06:18:44 +0300
From:	Alexey Dobriyan <adobriyan@...il.com>
To:	Am??rico Wang <xiyou.wangcong@...il.com>
Cc:	Jidong Xiao <jidong.xiao@...il.com>,
	Kernel development list <linux-kernel@...r.kernel.org>
Subject: Re: How to export information larger than PROC_BLOCK_SIZE via /proc
 file system?

On Wed, Apr 27, 2011 at 11:00:32AM +0800, Am??rico Wang wrote:
> On Wed, Apr 27, 2011 at 8:54 AM, Jidong Xiao <jidong.xiao@...il.com> wrote:
> > Hi,
> >
> > I am tracing some data inside the kernel, and I plan to export the
> > tracing data through /proc file system. I created a file under /proc
> > file system, and I use cat to display the tracing data. However, every
> > time there is only 3072 bytes data displayed, which is the size
> > defined by PROC_BLOCK_SIZE. And I wonder that how to export
> > information more than that limit? Judging from the function
> > fs/proc/generic.c/proc_file_read(), if the size returned by my
> > read_proc function is large than a PAGE_SIZE, then I will get a
> > KERN_ERR message which says "proc_file_read: Apparent buffer
> > overflow!". Any help would be appreciated!
> >
> 
> Why not switch to use debugfs?

Or use seq_file/proc_create.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ