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] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091012094334.GA928@elte.hu>
Date:	Mon, 12 Oct 2009 11:43:34 +0200
From:	Ingo Molnar <mingo@...e.hu>
To:	Alexey Dobriyan <adobriyan@...il.com>
Cc:	Linus Torvalds <torvalds@...ux-foundation.org>,
	Thomas Gleixner <tglx@...utronix.de>,
	Peter Zijlstra <a.p.zijlstra@...llo.nl>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: Linux 2.6.32-rc4


* Alexey Dobriyan <adobriyan@...il.com> wrote:

> On Mon, Oct 12, 2009 at 10:29:50AM +0200, Ingo Molnar wrote:
> > * Linus Torvalds <torvalds@...ux-foundation.org> wrote:
> > 
> > > Alexey Dobriyan (2):
> > >       headers: remove sched.h from interrupt.h
> > 
> > This commit broke the -rc4 build in numerous ways on x86:
> > 
> >   drivers/pci/hotplug/cpqphp.h: In function ???wait_for_ctrl_irq???:
> >   drivers/pci/hotplug/cpqphp.h:730: error: implicit declaration of function ???signal_pending???
> > 
> >   drivers/char/rtc.c: In function 'rtc_interrupt':
> >   drivers/char/rtc.c:271: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
> >   drivers/char/rtc.c:271: error: (Each undeclared identifier is reported only once
> > 
> > (I'll send fixes for the build failures as followups to this mail.)
> > 
> > Beyond being buggy there's two workflow problems with the commit.
> > 
> > Firstly, the commit log concentrates on the m68k situation while in 
> > reality more testing on x86 would have been much more important to the 
> > end result. If we break m68k with a header cleanup it's far less of a 
> > practical problem than if we break thousands of x86 boxes. I find this 
> > kind of artificially inflated focus on cross-testing (without properly 
> > weighting platforms) harmful.
> > 
> > Secondly, i'm wondering why the original mail to lkml:
> > 
> >   Date: Wed, 7 Oct 2009 17:09:06 +0400
> >   From: Alexey Dobriyan <adobriyan@...il.com>
> >   To: torvalds@...ux-foundation.org
> >   Subject: [PATCH] headers: remove sched.h from interrupt.h
> >   Cc: linux-kernel@...r.kernel.org
> > 
> > Wasnt Cc:-ed to the affected maintainers?
> 
> To whom? All 42 of them?

Nope. If you dont know who generally tends to modify a file you can use 
scripts/get_maintainer.pl, which gives you applicable Cc lines:

 earth4:~/tip> scripts/get_maintainer.pl -f include/linux/sched.h 
 Ingo Molnar <mingo@...e.hu>
 Peter Zijlstra <peterz@...radead.org>
 Andrew Morton <akpm@...ux-foundation.org>
 linux-kernel@...r.kernel.org

 earth4:~/tip> scripts/get_maintainer.pl -f include/linux/interrupt.h 
 Ingo Molnar <mingo@...e.hu>
 Thomas Gleixner <tglx@...utronix.de>
 Yinghai Lu <yinghai@...nel.org>
 Rusty Russell <rusty@...tcorp.com.au>
 Peter Zijlstra <a.p.zijlstra@...llo.nl>
 linux-kernel@...r.kernel.org

> > As a result the patch wasnt tested by any maintainer tree before it 
> > was sent to Linus. The change is good but obviously needs to be done 
> > more carefully, there are a _lot_ of hidden header dependencies in 
> > the kernel, especially related to sched.h.
> > 
> > We are doing regular header cleanup patches in -tip and have the 
> > infrastructure to test them properly as well, so this change could 
> > have been done via either the scheduler tree and the interrupt tree. 
> > We also cross-test to all other architectures.
> 
> Me too.

The problem is that you dont test carefully enough and that you avoid 
maintainer trees that do.

> This patch was tested on ~300 configs (allmodconfigs and defconfigs) 
> _and_ randconfigs on i386 and x86_64. I'm sorry I don't have more 
> compile time.
> 
> > Alexey, could you please Cc: affected maintainers in the future, so 
> > that we can avoid such problems?
> 
> Probably.

Probably? You dont know for sure whether you will be able to Cc: 
affected maintainers in the future?

> The problem I have with -tip is that god knows what's in there,

git log?

> [...] so any header dependency removed might very well be unrelated to 
> mainline.

That's nonsense. It's trivial to tell whether a build failure is caused 
by a commit in a maintainer tree or whether it came from upstream. 
Maintainers do this all the time, it's not specific to -tip at all.

All the 5 build fixes i sent today were for mainline build breakages you 
introduced via that patch.

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