Re: bug reading /proc/sys/kernel/*: only first byte read.



Eric W. Biederman wrote:
[]
However as far as I can tell the code has this limitation
deliberately for simplicity.

Getting the string side of this fixed even by itself is
worthwhile, although it might be worth teach people
about sys_uname and /bin/uname. It seems is the biggest thing
people look at /proc/sys/ for...

I come across this very issue when I discovered another bug,
using un-initialized pipefs structures during early hotplug
calls. I know about /bin/uname, but it requires a pipe, so
wont work. Obvious alternative is /proc/sys/version, which
is alot faster too (no fork+exec overhead).

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



Relevant Pages

  • Re: Upright question
    ... Most cheapo basses need about $300-500 worth of work out of the box to even ... I bought a cheapo Chinese bass off ebay for $400. ... So I took the bass to my buddy Ron Brendle, who does string repairs. ... Then he discovered a crackon the heel of the neck that went ...
    (alt.guitar.bass)
  • Re: [PATCH] Smack: Simplified Mandatory Access Control Kernel
    ... Casey Schaufler wrote: ... It's almost worth considering the change for the joke. ... proposes const struct. ... Small string stuck in a large integer. ...
    (Linux-Kernel)
  • Re: Query not returning all the rows
    ... As I said, these changes won't fix anything, but still worth doing. ... Is Selection the right range here? ... > Dim sqlString As String ...
    (microsoft.public.excel.programming)
  • new post,old obsessions................
    ... Well.......I bought a bunch of boutique stomp boxes, ... Right around Fathers Day an amazing hand made 4 string was offered to ... I only lost about $100 on $1200 worth of stuff, ... and Ive learned that my control over this technique can vary wildly night ...
    (alt.guitar.bass)
  • Re: Like this tremolo - Recuerdes
    ... The proposed hypothetical involved voicing the contour of a chord ... below a tonic on the sixth string, and you want not to be able support ... It's no overstatement to speak of instruments' limitations, ... I agree with you about gain, loss, and simplicity. ...
    (rec.music.classical.guitar)