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] [day] [month] [year] [list]
Message-ID: <alpine.SOC.1.00.0804091524290.6438@piorun>
Date:	Wed, 9 Apr 2008 15:35:17 +0100 (BST)
From:	"Maciej W. Rozycki" <macro@...ux-mips.org>
To:	Johannes Weiner <hannes@...urebad.de>
cc:	Roel Kluin <12o3l@...cali.nl>, lkml <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] dz: test after postfix decrement fails in
 dz_console_putchar()

On Wed, 9 Apr 2008, Johannes Weiner wrote:

> The intention was probably that this gets executed if the break in the
> loop (trdy == dport->port.line) is reached.  Without your fix, this
> branch is also taken if the while-loop terminates with loops == -1
> because of the postfix dec.

 You are right about the intention -- you cannot send a character to the 
transmitter unless the intended line has been reported as selected for 
transmission by the serial controller.  Otherwise it will go to the wrong 
line -- this is a serial multiplexer that selects transmission lines by 
itself.

 It used to be the other kind of a "while" loop.  This is a cut & paste 
bug -- I noticed the problem with the terminating condition of the loop 
and correctly moved it to the end, but forgot to adjust the 
decrementation.

> Your fix is correct but your changelog entry is wrong.

 s/fails/incorrectly succeeds/

  Maciej
--
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