From: Andrew Morton <akpm@linux-foundation.org>
To: Alexey Dobriyan <adobriyan@gmail.com>
Cc: davem@davemloft.net, mingo@elte.hu, nhorman@tuxdriver.com,
simon@fire.lp0.eu, linux-kernel@vger.kernel.org,
herbert@gondor.apana.org.au
Subject: Re: BUG: unable to handle kernel NULL pointer dereference at 000000000000000e (reset_prng_context)
Date: Tue, 15 Jul 2008 15:11:10 -0700 [thread overview]
Message-ID: <20080715151110.d7a17c89.akpm@linux-foundation.org> (raw)
In-Reply-To: <20080715214929.GA18268@martell.zuzino.mipt.ru>
On Wed, 16 Jul 2008 01:49:30 +0400
Alexey Dobriyan <adobriyan@gmail.com> wrote:
> On Tue, Jul 15, 2008 at 01:44:07PM -0700, David Miller wrote:
> > From: Ingo Molnar <mingo@elte.hu>
> >
> > > i have just triggered this crash too. Please, when you know about bootup
> > > crashes in your code send a patch to the lkml thread so that people can
> > > apply it and have a working system.
> > >
> > > Note that the new crypto/prng.c driver has very bad quality:
> > >
> > > total: 45 errors, 21 warnings, 1 checks, 410 lines checked
> > >
> > > It has tons of completely unacceptable code mistakes in it.
> >
> > I think we should merge new drivers as aggressively as possible.
>
> Well, I don't have strong opinion about this exact statement, but
>
> Ingo, COULD YOU PLEASE PERSONALLY FUCKING STOP THIS
> CHECKPATCH.PL-AS-INDICATOR HORSESHIT !
Well I wouldn't put it that way but sure, there is no clear correlation.
Except that such a high density of coding-style errors is an indication
that the code was not closely and critically reviewed by an experienced
kernel developer.
> Every damn single warning in this case is about whitespace or 80 column limit.
>
> Every damn single one!
>
> The hacker of your calibre should know the difference between whitespace-bad code
> and bug-ridden-bad code.
>
>
> What are those unacceptable mistakes?
>
> Don't read the code again, what are those mistakes?
>
Sleeping inside spinlock?
>
> I _very_ briefly looked at prng.c and place I find wrong it passing
> "int nbytes" to get_prng_bytes(). It should be unsigned at least.
>
> checkpatch.pl says about this? Suuuure, it does...
If we're going to merge code which has zillions of trivially-detectable
coding-style errors and which hasn't been runtime tested with very
mainstream kernel debug options enabled and which afacit hasn't been
reviewed then we have no standards at all.
next prev parent reply other threads:[~2008-07-15 22:12 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-14 23:25 BUG: unable to handle kernel NULL pointer dereference at 000000000000000e (reset_prng_context) Simon Arlott
2008-07-15 2:04 ` Neil Horman
2008-07-15 11:33 ` Ingo Molnar
2008-07-15 11:49 ` Ingo Molnar
2008-07-15 11:51 ` Ingo Molnar
2008-07-15 14:21 ` Neil Horman
2008-07-15 20:44 ` David Miller
2008-07-15 21:49 ` Alexey Dobriyan
2008-07-15 22:11 ` Andrew Morton [this message]
2008-07-15 22:36 ` Alexey Dobriyan
2008-07-16 0:04 ` Neil Horman
2008-07-16 2:08 ` Herbert Xu
2008-07-16 4:07 ` Herbert Xu
2008-07-16 4:25 ` Andrew Morton
2008-07-16 4:33 ` Herbert Xu
2008-07-16 4:51 ` Andrew Morton
2008-07-16 5:34 ` Herbert Xu
2008-07-16 6:17 ` Andrew Morton
2008-07-16 6:35 ` Herbert Xu
2008-07-16 16:57 ` Joe Perches
2008-07-18 22:16 ` Ingo Molnar
2008-07-15 2:16 ` Neil Horman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080715151110.d7a17c89.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=adobriyan@gmail.com \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=nhorman@tuxdriver.com \
--cc=simon@fire.lp0.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox