Re: About atags_proc buffer size

2013-09-27 Thread Geert Uytterhoeven
On Fri, Sep 27, 2013 at 10:47 PM, Russell King - ARM Linux wrote: > On Fri, Sep 27, 2013 at 10:25:45PM +0200, Vojtech Bocek wrote: >> I want to ask something about atags_proc.c implementation. Currently, >> it uses a buffer to temporarily store atags. The buffer size is set to >> 1.5kb for some

Re: About atags_proc buffer size

2013-09-27 Thread Vojtech Bocek
Okay then, I suppose there is no nice way around that, or at least none that I can find. I'll just make that initial buffer 12kb big on my kernel for that device and be done with it. Anyway, thanks for the information and help, it is much appreciated. On 27.9.2013 23:15, Russell King - ARM Linux

Re: About atags_proc buffer size

2013-09-27 Thread Russell King - ARM Linux
On Fri, Sep 27, 2013 at 11:09:13PM +0200, Vojtech Bocek wrote: > It only needs to survive until init_atags_procfs is called, because it is > copied to another buffer for procfs entry. Can I be sure it survives until > that? My guess is that it is likely to survive, but not certain. > > I suppose

Re: About atags_proc buffer size

2013-09-27 Thread Vojtech Bocek
It only needs to survive until init_atags_procfs is called, because it is copied to another buffer for procfs entry. Can I be sure it survives until that? My guess is that it is likely to survive, but not certain. I suppose it is possible to somehow protect that bit of ram until it is read by

Re: About atags_proc buffer size

2013-09-27 Thread Russell King - ARM Linux
On Fri, Sep 27, 2013 at 10:25:45PM +0200, Vojtech Bocek wrote: > I want to ask something about atags_proc.c implementation. Currently, > it uses a buffer to temporarily store atags. The buffer size is set to > 1.5kb for some reason, but as far as I know, atag list's size is not > limited in any

About atags_proc buffer size

2013-09-27 Thread Vojtech Bocek
Hello, I want to ask something about atags_proc.c implementation. Currently, it uses a buffer to temporarily store atags. The buffer size is set to 1.5kb for some reason, but as far as I know, atag list's size is not limited in any way. I've got a device (HTC One) which uses about 12kb of tags,

About atags_proc buffer size

2013-09-27 Thread Vojtech Bocek
Hello, I want to ask something about atags_proc.c implementation. Currently, it uses a buffer to temporarily store atags. The buffer size is set to 1.5kb for some reason, but as far as I know, atag list's size is not limited in any way. I've got a device (HTC One) which uses about 12kb of tags,

Re: About atags_proc buffer size

2013-09-27 Thread Russell King - ARM Linux
On Fri, Sep 27, 2013 at 10:25:45PM +0200, Vojtech Bocek wrote: I want to ask something about atags_proc.c implementation. Currently, it uses a buffer to temporarily store atags. The buffer size is set to 1.5kb for some reason, but as far as I know, atag list's size is not limited in any way.

Re: About atags_proc buffer size

2013-09-27 Thread Vojtech Bocek
It only needs to survive until init_atags_procfs is called, because it is copied to another buffer for procfs entry. Can I be sure it survives until that? My guess is that it is likely to survive, but not certain. I suppose it is possible to somehow protect that bit of ram until it is read by

Re: About atags_proc buffer size

2013-09-27 Thread Russell King - ARM Linux
On Fri, Sep 27, 2013 at 11:09:13PM +0200, Vojtech Bocek wrote: It only needs to survive until init_atags_procfs is called, because it is copied to another buffer for procfs entry. Can I be sure it survives until that? My guess is that it is likely to survive, but not certain. I suppose it is

Re: About atags_proc buffer size

2013-09-27 Thread Vojtech Bocek
Okay then, I suppose there is no nice way around that, or at least none that I can find. I'll just make that initial buffer 12kb big on my kernel for that device and be done with it. Anyway, thanks for the information and help, it is much appreciated. On 27.9.2013 23:15, Russell King - ARM Linux

Re: About atags_proc buffer size

2013-09-27 Thread Geert Uytterhoeven
On Fri, Sep 27, 2013 at 10:47 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Fri, Sep 27, 2013 at 10:25:45PM +0200, Vojtech Bocek wrote: I want to ask something about atags_proc.c implementation. Currently, it uses a buffer to temporarily store atags. The buffer size is set to