Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1287448

Re: [patch RESEND] atp870u: 64 bit bug in atp885_init()

From Ondrej Zary <linux@rainbow-software.org>
Newsgroups linux.kernel
Subject Re: [patch RESEND] atp870u: 64 bit bug in atp885_init()
Date 2015-12-09 13:10 +0100
Message-ID <qDLJg-8df-15@gated-at.bofh.it> (permalink)
References <qDKau-75S-13@gated-at.bofh.it> <qDKau-75S-11@gated-at.bofh.it> <qDLzz-7Ue-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wednesday 09 December 2015 12:53:39 One Thousand Gnomes wrote:
> On Wed, 9 Dec 2015 13:24:53 +0300
> Dan Carpenter <dan.carpenter@oracle.com> wrote:
> 
> > On 64 bit CPUs there is a memory corruption bug on probe().  It should
> > be a u32 pointer instead of an unsigned long pointer or we write past
> > the end of the setupdata[] array.
> > 
> > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> > Reviewed-by: Hannes Reinecke <hare@suse.com>
> > ---
> > Resending because we have shuffled the code around so the patch needed
> > to be refreshed against linux-next.  Although I do wonder why we are
> > still working on this code since it has never worked on 64 bit systems
> > so probably all the users gave up a decade ago.
> 
> So this is untested ? If so please make it very clear in the commit
> message because the kernel is IMHO getting too full of polished, neat,
> recently modified, never tested, never used code.
> 
> I agree it would be better if the driver was simply deleted. I've not
> even seen an ATP870 bug report in years.

Maybe because it worked. Although the code was horrible. I've done some big changes to this driver recently (tested, of course).
I can't test this patch as I don't have ATP885 card, only ATP870.

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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[patch RESEND] atp870u: 64 bit bug in atp885_init() Dan Carpenter <dan.carpenter@oracle.com> - 2015-12-09 11:30 +0100
  Re: [patch RESEND] atp870u: 64 bit bug in atp885_init() One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2015-12-09 13:00 +0100
    Re: [patch RESEND] atp870u: 64 bit bug in atp885_init() Ondrej Zary <linux@rainbow-software.org> - 2015-12-09 13:10 +0100
    Re: [patch RESEND] atp870u: 64 bit bug in atp885_init() Dan Carpenter <dan.carpenter@oracle.com> - 2015-12-09 14:50 +0100
      Re: [patch RESEND] atp870u: 64 bit bug in atp885_init() One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2015-12-09 15:20 +0100
        Re: [patch RESEND] atp870u: 64 bit bug in atp885_init() Dan Carpenter <dan.carpenter@oracle.com> - 2015-12-09 18:50 +0100
          Re: [patch RESEND] atp870u: 64 bit bug in atp885_init() Julia Lawall <julia.lawall@lip6.fr> - 2015-12-09 19:20 +0100
            Re: [patch RESEND] atp870u: 64 bit bug in atp885_init() Dan Carpenter <dan.carpenter@oracle.com> - 2015-12-09 19:30 +0100
              Re: [patch RESEND] atp870u: 64 bit bug in atp885_init() One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2015-12-09 20:40 +0100

csiph-web