Re: Possible race in printk?

Rogier Wolff (R.E.Wolff@BitWizard.nl)
Thu, 11 Nov 1999 15:58:52 +0100 (MET)


Andrea Arcangeli wrote:
> On Thu, 11 Nov 1999, Rogier Wolff wrote:
>
> > __save_flags(flags);
> > __cli();
> > count = len;
> > if (count > LOG_BUF_LEN)
> > count = LOG_BUF_LEN;
> > if (count > logged_chars)
> > count = logged_chars;
> > j = log_start + log_size - count;
> > __restore_flags(flags);
>
> This race is fixed in latest 2.2.x and 2.3.x kernels.

Woops. Sorry everyone, I seem to have been looking at an older
source. (2.2.10).

Roger.

-- 
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2137555 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
 "I didn't say it was your fault. I said I was going to blame it on you."

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