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]
Date:	Tue, 25 Aug 2009 15:50:17 +0200
From:	Ingo Molnar <mingo@...e.hu>
To:	Paul Mackerras <paulus@...ba.org>
Cc:	Martin Schwidefsky <schwidefsky@...ibm.com>, dwalker@...o99.com,
	mingo@...hat.com, hpa@...or.com, linux-kernel@...r.kernel.org,
	johnstul@...ibm.com, tglx@...utronix.de,
	linux-tip-commits@...r.kernel.org
Subject: Re: [tip:timers/core] timekeeping: Increase granularity of
	read_persistent_clock()


* Paul Mackerras <paulus@...ba.org> wrote:

> Ingo Molnar writes:
> 
> > * Paul Mackerras <paulus@...ba.org> wrote:
> > 
> > > Ingo Molnar writes:
> > > 
> > > > If you suggest that each and every subsystem maintainer who 
> > > > touches code that can be built on non-x86 architectures has to 
> > > > cross-build to 20+ architectures to be able to push out a tree, 
> > > > all the time, and has to rebase if this ever gets omitted, you 
> > > > are really defying reality and are hurting Linux.
> > > 
> > > Nice straw man, but I never said or even suggested anything like 
> > > that. :)
> > 
> > ... but what you say in essence amounts to that. Every change to a 
> > file that is built on an architecture 'affects' that architecture so 
> > your arguments can be repeated for that one. It's a slippery slope 
> > built on a wrong premise.
> 
> Not at all.  I'm saying that committing code, some of which has 
> never ever been compiled on any architecture, is just sloppy.

But this is not what happened. We committed it because it was a good 
patch and this _enabled_ the wider testing of it, even in areas that 
developers dont normally use.

In other words while i do a lot of cross-testing and applied your 
fix immediately i'm not willing to whitewash the "PowerPC is rarely 
used" fact out of Git trees via ugly rebasing - especially if the 
distance between the original commit and the fix is just 4 hops.

Nor am i going to require people/developers to test on a dozen of 
architectures or more before we can commit something - it's not 
reasonable.

( Nor is there any real upside to rebasing for this reason alone,
  and there's a lot of downsides to it, many of which i already
  mentioned in my prior replies. )

> It's basic good engineering practice to have at least compiled the 
> code you're committing - at least once on at least one 
> architecture. [...]

And i very much do that before i push such changes to Linus.

It's a push show-stopper but not a commit show-stopper.

You chose to see the intermediate steps by checking the development 
stage, why are you surprised that less used and less tested areas of 
the code breaks?

Everything that happens rarely, such as big pushes to Linus, can be 
(and does get) tested widely like that. For for the most critical 
part of the workflow, the commit latency, we dont want extra 
buerocracy that buys us nothing.

Let the platforms do their own testing and _provide developers_ who 
will make it damn sure new bits work on their architecture out of 
box. Or if they dont (or cannot) and just sit there expecting the 
upstream kernel to do development for them, let them deal with the 
consequences.

> [...]  It's like making changes inside #ifdef CONFIG_FOO but never 
> testing with CONFIG_FOO turned on.  You'd complain, and rightly, 
> if someone did that.

You again seem to ignore the very valid case i pointed out: if i 
change generic code (or an include, an inline function or a define) 
which somehow affects an architecture, by your logic i'd be 
compelled to test it on that architecture - because it affects it. 
That's not reasonable overhead.

> > I can only repeat what i said because i did not see you really 
> > counter the core of my argument (you snipped out much of my mail 
> > that details this and only replied to the last paragraph):
> 
> Well, though much of what you said is true, in the end it seems to 
> boil down to saying that non-x86 architectures don't have any 
> right to expect any degree of care or attention from you, because 
> only x86 is important.  And of course you have a perfect right to 
> pay attention to whatever you find interesting and ignore anything 
> else, including difficulties that you cause along the way for 
> other kernel developers.
> 
> There doesn't seem to be any useful response to that.

You paraphrased my opinion into something i did not say.

Exactly which bit of "i cross-build test every architecture that 
builds fine upstream before i push out to linux-next" do you 
understand as me not caring?

But it does not get as strong testing, it's not a commit 
show-stopper (unless coupled with other badness) and sometimes bugs 
slip through and get fixed after (quickly).

> > Say that patch also touches arch/xtensa/. Can you cross-build to 
> > xtensa?
> 
> Sure, I just ask Michael Ellerman to point kisskb at a tree with 
> my proposed patch in it.

FYI, would be a challenge, xtensa's defconfig didnt build upstream 
for quite a long time:

/home/mingo/tip/arch/xtensa/kernel/pci.c: In function '__pci_mmap_set_pgprot':
/home/mingo/tip/arch/xtensa/kernel/pci.c:362: error: '_PAGE_NO_CACHE' undeclared (first use in this function)
/home/mingo/tip/arch/xtensa/kernel/pci.c:362: error: (Each undeclared identifier is reported only once
/home/mingo/tip/arch/xtensa/kernel/pci.c:362: error: for each function it appears in.)

> > > Patches which touch multiple architecture's arch-specific code 
> > > should also get sent to the maintainers of the affected 
> > > architectures and the linux-arch mailing list.  I don't recall 
> > > seeing this patch on linux-arch, though I may have missed it 
> > > (and anyway that would be Martin's responsibility not yours, 
> > > but it does contribute to the sense of being blindsided).
> > > 
> > > More generally - if you don't have the resources to do regular 
> > > build testing for powerpc or other architectures, then publish 
> > > a testing branch and we'll get kisskb 
> > > (http://kisskb.ellerman.id.au/) to build a selection of 
> > > configs and architectures automatically.
> > 
> > Slowing down patches via buerocracy like that is not acceptable 
> > at all. Make developers care more about your architecture via 
> > natural means, not via buerocratic measures.
> 
> The "should" in what I said is just good manners, not bureaucracy.
> 
> The stuff about kisskb was an offer to help, not bureaucracy. 
> No-one's forcing you to do anything.

Well, me pointing out that such measures slow down the critical path 
of patch submission is a valid concern - and "you are not forced to 
do that" pretty much defeats you having suggested it, doesnt it? (i 
hope i'm not misprepresenting your words)

	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