Skip to contentSkip to conversation

Explicitly documenting patch submission

RFD Andi Kleen 13 participants 21 messages May 24, 2004 – Jun 10, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andi Kleen

author
#1 lore raw
Quoted 3 lines · Linus Torvalds

Hola!

This is a request for discussion..

What's not completely clear to me is how the Signed-off-by header is related to this:

Quoted 1 line

Developer's Certificate of Origin 1.0

[...]

I assume you're not expecting that people actually print out and sign this and send it somewhere?

You're just asking that they read it and confirm to the maintainer that they did, right?

e.g. consider some first contributor sends a maintainer a patch to be incorporated. Do you expect people now to send them this Certification of Origin back and ask "Do you agree to this?" and only add the patch after they sent back an email "Yes I agree to this"?

That sounds quite involved to me. I bet in some companies this Certificate would first be sent to the legal department for approval, delaying the patch for a long time

Even without such an explicit agreement it could get quite complicated to figure out what to put into the Signed-off-by lines if they're not already there.

e.g. normally the maintainer would just answer "ok, looks good, applied". Now they would need to ask "ok, did you write this. if not through which hands did it pass"? and wait for a reply and then only add the patch when you know whom to put into all these Signed-off-by lines.

This is not unrealistic, For example for patches that are "official projects" by someone it often happens that not the actual submitter sends the patch, but his manager (often not even cc'ing the original developer). In some cases companies even go through huge efforts to keep the original developers secret (I won't give names here, but it happens). That's of course not because they stole anything, but because they have some silly NDAs in place regarding not giving out names of partners they're talking to or they just don't want you to learn too much about their internals.

I would have no problems with just putting a Signed-Off-By for me and for the person who sent me the patch, but trying to find out all the people through whose mailboxes the patch travelled earlier is potentially quite a lot of work. I am not sure I really want to get into that business.

I also don't think it's realistic to expect that everybody who submits patches will put in all the right Signed-Off-Bys on their own, so requiring the full path would put the maintainers into the situation outlined above.

Just alone asking them to agree to the Certificate of Origin would be probably a lot of work.

I don't think any solution that requires significantly more work on part of the maintainer will be a good idea.

-Andi

#2 lore raw
Quoted 25 lines · Andi Kleen

What's not completely clear to me is how the Signed-off-by header is related to this:

Quoted 1 line

Developer's Certificate of Origin 1.0

[...]

I assume you're not expecting that people actually print out and sign this and send it somewhere?

You're just asking that they read it and confirm to the maintainer that they did, right?

e.g. consider some first contributor sends a maintainer a patch to be incorporated. Do you expect people now to send them this Certification of Origin back and ask "Do you agree to this?" and only add the patch after they sent back an email "Yes I agree to this"?

That sounds quite involved to me. I bet in some companies this Certificate would first be sent to the legal department for approval, delaying the patch for a long time

Even without such an explicit agreement it could get quite complicated to figure out what to put into the Signed-off-by lines if they're not already there.

Quoted 5 lines

e.g. normally the maintainer would just answer "ok, looks good, applied". Now they would need to ask "ok, did you write this. if not through which hands did it pass"? and wait for a reply and then only add the patch when you know whom to put into all these Signed-off-by lines.

IANAL, but I don't think they have to ask. As with GPL, you not required to sign anything to be able to use the software. By using the software you agree on the license. By submitting a patch to a maintainer, you agree with the Developer's Certificate of Origin.

- Davide

#3 lore raw
Quoted 2 lines · Davide Libenzi

By submitting a patch to a maintainer, you agree
with the Developer's Certificate of Origin.

I rather doubt this myself.
If submitted via public list, then perhaps.
Otherwise? perhaps not.

#4 lore raw
In reply to Davide Libenzi
Quoted 5 lines · Davide Libenzi

IANAL, but I don't think they have to ask. As with GPL, you not required to sign anything to be able to use the software. By using the software you agree on the license. By submitting a patch to a maintainer, you agree with the Developer's Certificate of Origin.

No, the thing is, we want your name to show up, and we do want you to explicitly state that not only do you know about the license, you also have the right to release your code under the license.

Yes, that was all implied before. This is nothing new. The only new thing is to _document_ it, and make it _explicit_.

And that means that submitters should read the DCO, and add the extra line. That's kind of the whole point of it - making a very ingrained and implicit assumption be explicitly documented.

In other words: this is not about changing the way we work. It's about documenting the things we take for granted. So that outsiders can be shown how it works.

Linus

#5 lore raw
Quoted 16 lines · Linus Torvalds
Quoted 5 lines · Davide Libenzi

IANAL, but I don't think they have to ask. As with GPL, you not required to sign anything to be able to use the software. By using the software you agree on the license. By submitting a patch to a maintainer, you agree with the Developer's Certificate of Origin.

No, the thing is, we want your name to show up, and we do want you to explicitly state that not only do you know about the license, you also have the right to release your code under the license.

Yes, that was all implied before. This is nothing new. The only new thing is to _document_ it, and make it _explicit_.

Quoted 7 lines

And that means that submitters should read the DCO, and add the extra line. That's kind of the whole point of it - making a very ingrained and implicit assumption be explicitly documented.

In other words: this is not about changing the way we work. It's about documenting the things we take for granted. So that outsiders can be shown how it works.

That was what I was implying. Example:

me: Andrew this is the quit-smoking-patch-0.1.diff
Andrew: Where's your signature? Go read Documentation/xxx and repost the signed version
me: Oke doke. Reading ...
me: There you go, here's quit-smoking-patch-0.2.diff with the required signature

- Davide

#6 lore raw
Quoted 7 lines · Davide Libenzi

That was what I was implying. Example:

me: Andrew this is the quit-smoking-patch-0.1.diff
Andrew: Where's your signature? Go read Documentation/xxx and repost the signed version
me: Oke doke. Reading ...
me: There you go, here's quit-smoking-patch-0.2.diff with the required signature

Yes. On the other hand, I'm really hoping that since the whole procedure is so simple, after a few times this has happened, people will just do the sign-off without even thinking about it. So the "come back with a signed-off version" case hopoefully doesn't happen too much.

So we'll have it for a while (and I'll probably add a check to my "apply" scripts to _check_ for the sign-off thing at least for anything bigger than a few lines), but I'm _hoping_ that in half a year people will wonder why we even discussed this.

And I might be wrong. Maybe it's just going to be a constant irritant, and we'll have to just revisit the issue and decide that it was a stupid idea.

Linus

#7 lore raw
In reply to Linus Torvalds
Quoted 5 lines · On Mon, 24 May 2004 13:45:33 -0700 (PDT) Linus Torvalds <[email protected]>…

In other words: this is not about changing the way we work. It's about documenting the things we take for granted. So that outsiders can be shown how it works.

Personally, I'd like to see this evolve into something along the lines of ISO-9000. If linux development can have the ability to create detailed audit trails of code changes there would never be a question about who contributed what and who owns it.

It would be nice if some sort of ISO-9000 compliance were a long term goal here. The proprietary software houses would go nuts.

Quoted 1 line
Quoted 1 line
Quoted 1 line

---fja->

Signature · 6 lines
If you think what I'm saying is "politically incorrect",
you've got the wrong politics.

Tired of `netiquette'? Fed up with endless discussion of
what is '[OT]'? Linux, Free/Open Source discussion without
the "political correctness:" http://linuxdoctor.dyndns.org/list.html
#8 lore raw
Quoted 7 lines · Francis J. A. Pinteric

Personally, I'd like to see this evolve into something along the lines of ISO-9000. If linux development can have the ability to create detailed audit trails of code changes there would never be a question about who contributed what and who owns it.

It would be nice if some sort of ISO-9000 compliance were a long term goal here. The proprietary software houses would go nuts.

Why would we care whether they go nuts or not? We would go nuts, now _that_ I do care about.

Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

---fja->

Signature · 1 line
If you think what I'm saying is "politically incorrect",

No, just plain stupid.

Quoted 3 lines

you've got the wrong politics.

Tired of `netiquette'?

Not really. *plonk*

#9 lore raw
In reply to Andi Kleen
Quoted 7 lines · Andi Kleen
Quoted 3 lines · Linus Torvalds

Hola!

This is a request for discussion..

Quoted 8 lines

What's not completely clear to me is how the Signed-off-by header is related to this:

Quoted 1 line

Developer's Certificate of Origin 1.0

[...]

I assume you're not expecting that people actually print out and sign this and send it somewhere?

No.

Quoted 2 lines

You're just asking that they read it and confirm to the maintainer that they did, right?

Right. We'd add it to the Documentation directory, and add pointers to it to anything that mentions the "Signed-off-by:" thing (eg things like SubmittingPatches). All just to make sure that people are aware of what it means to say "Signed-off-by:"

Quoted 3 lines

That sounds quite involved to me. I bet in some companies this Certificate would first be sent to the legal department for approval, delaying the patch for a long time

Having worked at a company like that, I can say that that is true pretty much regardless of what the patch submission is (it's about a million times _worse_ if you have something like the FSF copyright assignment thing, but it's certainly true even for random open source things that don't have the physical paperwork and copyright assignment).

Quoted 5 lines

e.g. normally the maintainer would just answer "ok, looks good, applied". Now they would need to ask "ok, did you write this. if not through which hands did it pass"? and wait for a reply and then only add the patch when you know whom to put into all these Signed-off-by lines.

No. The point is that a maintainer does NOT need to do this, exactly because we'd try to educate people to have the "Signed-off-by:" line pass with the patch from the very beginning.

Quoted 6 lines

This is not unrealistic, For example for patches that are "official projects" by someone it often happens that not the actual submitter sends the patch, but his manager (often not even cc'ing the original developer). In some cases companies even go through huge efforts to keep the original developers secret (I won't give names here, but it happens).

Absolutely. And the whole sign-off procedure is _designed_ for this.

The person who signs off on a patch does not need to be the author: in fact at a company that has "release people", it's not _supposed_ to be the author, it's supposed to be the company release person (although the original author may well have signed off on it internally - but that's not somethign that an external maintainer would know about or even care about).

Linus

author
#10 lore raw
Quoted 7 lines · Linus Torvalds
Quoted 2 lines

You're just asking that they read it and confirm to the maintainer that they did, right?

Right. We'd add it to the Documentation directory, and add pointers to it to anything that mentions the "Signed-off-by:" thing (eg things like SubmittingPatches). All just to make sure that people are aware of what it means to say "Signed-off-by:"

Hmm, but it would still take a long time until everybody does this by default (and there will be always people who don't read all the instructions before sending a patch, so it's not that this will stop at some point). Would you require maintainers
to reject patches when the signoff lines are missing?

I personally would hate to reject a value bug fix because of a policy like this...

In practice I guess it would end up with that maintainers would spend a lot of time explaining to everybody what this new policy is about and possibly are forced to reject a lot of patches initially.

-Andi

#11 lore raw
Quoted 4 lines · Andi Kleen

In practice I guess it would end up with that maintainers would spend a lot of time explaining to everybody what this new policy is about and possibly are forced to reject a lot of patches initially.

...which is why we want to have a wide discussion of it now, the less to have to explain to people ;)

I don't expect this process to start taking effect for a while. Not only do we need to come to some level of agreement about it, but we need to give people the time to learn about it _without_ rejecting patches in the meantime.

There is no real "flag-day" (and it's certainly not today), although I'm hoping that by the time I start up 2.7.x we'd have this in place.

Linus

#12 lore raw
In reply to Andi Kleen
Quoted 9 lines · Andi Kleen
Quoted 2 lines · Linus Torvalds

Hola!
This is a request for discussion..

e.g. normally the maintainer would just answer "ok, looks good, applied". Now they would need to ask "ok, did you write this. if not through which hands did it pass"? and wait for a reply and then only add the patch when you know whom to put into all these Signed-off-by lines.

What I'm missing in this discussion is a clear distinction between patches and contributions.

A patch is usually a more or less small fix / improvement of existing code and should be treated accordingly. Recording "signed-off" chains for those would just using up repository space and could be used just for another type of useless statistics.

Contributions are larger pieces of code introducing new functionalities or algorithms and contain probably stuff which could be classified as "Intellectual Property" and therefor Linus' proposal is surely appropriate.

I'm not sure how to distinguish exactly between patches and contributions, but I'm not convinced, that

- (if x > 0)
+ (if x >= 0)
signed-off hacker
signed-off module-maintainer
signed-off subsystem-maintainer
signed-off linus / andrea /...

would really be helpful and desired.

Quoted 4 lines

This is not unrealistic, For example for patches that are "official projects" by someone it often happens that not the actual submitter sends the patch, but his manager (often not even cc'ing the original developer). ....

If the manager or who ever ensures by signing off that this code is according to the submission rules, then it should be sufficient for the maintainer.

Signature · 9 lines
Thomas
________________________________________________________________________
Steve Ballmer quotes the statistic that IT pros spend 70 percent of their 
time managing existing systems. That couldn’t have anything to do with 
the fact that 99 percent of these systems run Windows, could it?
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: [email protected]
#13 lore raw
Quoted 3 lines · Thomas Gleixner

What I'm missing in this discussion is a clear distinction between patches and contributions.

Well, I'm not sure such a clear distinction exists.

Clearly there are patches that are so trivial that we simply don't care about the process, because they don't contain any "new work". Spelling fixes, and trivial one-liners.

On the other hand, I'd rather have the process be "we always have the sign-off", coupled with just plain common sense.

Any process that doesn't allow for common sense is just broken, and clearly from a _legal_ standpoint it doesn't matter if we track who fixed out (atrocious) spelling errors.

On the other hand, it if becomes a habit, and we just sign-off even on the trivial stuff, that's actually going to make the whole process a lot easier - simply by avoiding the bother of even having to think about it.

So I'd rather encourage people to sign off on even the silly stuff, than to have to constantly make a judgement call. At the same time, I think that if somebody _didn't_ sign off on the simple stuff, we shouldn't just run around in circles like hens in a hen-house, we should just say "hey, we've got brains, the process isn't meant to be _stupid_".

Linus

#14 lore raw
Quoted 2 lines · Linus Torvalds

On the other hand, I'd rather have the process be "we always have the sign-off", coupled with just plain common sense.

Makes sense

Quoted 5 lines

So I'd rather encourage people to sign off on even the silly stuff, than to have to constantly make a judgement call. At the same time, I think that if somebody _didn't_ sign off on the simple stuff, we shouldn't just run around in circles like hens in a hen-house, we should just say "hey, we've got brains, the process isn't meant to be _stupid_".

:)

One more practical point.

Module maintainers receive patches from various hackers and commit them after review with the appropriate "sign-offs" to a subsystem repository.

Subsystem maintainer makes his monthly / whatever upstream update.

Until now he just reviews the total changes from his last update til now. To keep your proposed procedure consistent he would be forced now to go through the "trusted" step by step commitments of his module maintainers, extract the "sign-offs" and add his own "sign-off" to each single step before pushing the improvements upstream.

IMHO it would suffice for this situation, if the "sign-offs" are tracked in the subsystem repository and the subsystem maintainer signs off for the overall patch / contribution which is sent upstream.

Signature · 9 lines
Thomas
________________________________________________________________________
Steve Ballmer quotes the statistic that IT pros spend 70 percent of their 
time managing existing systems. That couldn’t have anything to do with 
the fact that 99 percent of these systems run Windows, could it?
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: [email protected]
#15 lore raw

Hi!

Quoted 21 lines
Quoted 5 lines

So I'd rather encourage people to sign off on even the silly stuff, than to have to constantly make a judgement call. At the same time, I think that if somebody _didn't_ sign off on the simple stuff, we shouldn't just run around in circles like hens in a hen-house, we should just say "hey, we've got brains, the process isn't meant to be _stupid_".

:)

One more practical point.

Module maintainers receive patches from various hackers and commit them after review with the appropriate "sign-offs" to a subsystem repository.

Subsystem maintainer makes his monthly / whatever upstream update.

Until now he just reviews the total changes from his last update til now. To keep your proposed procedure consistent he would be forced now to go through the "trusted" step by step commitments of his module maintainers, extract the "sign-offs" and add his own "sign-off" to each single step before pushing the improvements upstream.

Quoted 4 lines

IMHO it would suffice for this situation, if the "sign-offs" are tracked in the subsystem repository and the subsystem maintainer signs off for the overall patch / contribution which is sent upstream.

This is actually a problem. It forces subsystem maintainer to have version control system and not to rm -rf it when he needs disk space.

Signature · 1 line
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms         
#16 lore raw
In reply to Linus Torvalds
Quoted 8 lines · Linus Torvalds
Quoted 3 lines · Thomas Gleixner

What I'm missing in this discussion is a clear distinction between patches and contributions.

Well, I'm not sure such a clear distinction exists.

Actually, there is a question as to how to sign off on something that eventually gets rolled into something larger? Simply collect all the signatories? Andrew aggregates patches on a fairly regular basis. How about stuff that gets merged from the CVS trees of public projects? I think we need a way to say "this came from an aggregate external source" for patches that aren't simply passed along one by one. Perhaps something like:

Signed-off-by J Random hacker <[email protected]> from http://baz.sourceforge.net
Quoted 3 lines

Any process that doesn't allow for common sense is just broken, and clearly from a _legal_ standpoint it doesn't matter if we track who fixed out (atrocious) spelling errors.

"our"

Signature · 1 line
Mathematics is the supreme nostalgia of our time.
#17 lore raw
Quoted 4 lines · Matt Mackall

Actually, there is a question as to how to sign off on something that eventually gets rolled into something larger? Simply collect all the signatories?

Yup.

This is indeed common for people like Andrew (or anybody else who collects patches). The only sane thing to do is to just merge the signatories from any merged patches.

Quoted 5 lines
Quoted 3 lines

Any process that doesn't allow for common sense is just broken, and clearly from a _legal_ standpoint it doesn't matter if we track who fixed out (atrocious) spelling errors.

"our"

Ahem.

"I did that on purpose to make a point".

Sure, that's the ticket.

Linus "ehh, good save" Torvalds

#18 lore raw
Quoted 6 lines · Linus Torvalds
Quoted 5 lines
Quoted 3 lines

Any process that doesn't allow for common sense is just broken, and clearly from a _legal_ standpoint it doesn't matter if we track who fixed out (atrocious) spelling errors.

"our"

Quoted 7 lines

Ahem.

"I did that on purpose to make a point".

Sure, that's the ticket.

Linus "ehh, good save" Torvalds

Maybe in English "fix out" is a phrasal verb? Uh? Can we make it up like that? Any native speaker?

Signature · 7 lines
Giuseppe "Oblomov" Bilotta

Can't you see
It all makes perfect sense
Expressed in dollar and cents
Pounds shillings and pence
                  (Roger Waters)
#19 lore raw
Quoted 9 lines · Giuseppe Bilotta
Quoted 8 lines · Linus Torvalds
Quoted 5 lines
Quoted 3 lines

Any process that doesn't allow for common sense is just broken, and clearly from a _legal_ standpoint it doesn't matter if we track who fixed out (atrocious) spelling errors.

"our"

Ahem.

Quoted 8 lines
Quoted 5 lines

"I did that on purpose to make a point".

Sure, that's the ticket.

Linus "ehh, good save" Torvalds

Maybe in English "fix out" is a phrasal verb? Uh? Can we make it up like that? Any native speaker?

To avoid being punched out, I plan on waiting until about a year into the 2.7.x series before submitting patches (via the maintainers this time) to change out the accumulating speling erors. That will hopefully* minimize conflict with the initial surge of patches at the beginning and the stabilization period near the end.

*hopefully used as a sentence adverb.

Steven

#20 lore raw
In reply to Giuseppe Bilotta
Quoted 15 lines · Giuseppe Bilotta
Quoted 12 lines · Linus Torvalds
Quoted 8 lines
Quoted 5 lines

Any process that doesn't allow for common sense is just broken, and clearly from a _legal_ standpoint it doesn't matter if we track who fixed out (atrocious) spelling errors.

"our"

Ahem.

"I did that on purpose to make a point".

Quoted 9 lines
Quoted 5 lines

Sure, that's the ticket.

Linus "ehh, good save" Torvalds

Maybe in English "fix out" is a phrasal verb? Uh? Can we make it up like that? Any native speaker?

It is now. On behalf of native speakers of English I hereby welcome the phrasal verb "fix out" to the language. I even offer a defintion and an etymological reference:

fix out: To fix or repair by removing. E.g. "It doesn't matter if we track who fixed out spelling errors." (Torvalds, lkml, 2004)

See, it's official now.

Signature · 1 line
 Anyone who quotes me in their sig is an idiot. -- Rusty Russell's sig
#21 lore raw
In reply to Andi Kleen

Andi Kleen <[email protected]> said:

[...]

Quoted 4 lines

e.g. consider some first contributor sends a maintainer a patch to be incorporated. Do you expect people now to send them this Certification of Origin back and ask "Do you agree to this?" and only add the patch after they sent back an email "Yes I agree to

this"?

Yep. That's exactly the point: That they don't come back later and scream they just patented the for loop, and that its inclusion wasn't legitimate.

Quoted 3 lines

That sounds quite involved to me. I bet in some companies this Certificate would first be sent to the legal department for approval, delaying the patch for a long time

Tough luck, IMEHO.

Quoted 9 lines

Even without such an explicit agreement it could get quite complicated to figure out what to put into the Signed-off-by lines if they're not already there.

e.g. normally the maintainer would just answer "ok, looks good, applied". Now they would need to ask "ok, did you write this. if not through which hands did it pass"? and wait for a reply and then only add the patch when you know whom to put into all these Signed-off-by lines.

I'd hope this gets part of the normal patch flow sooner or later, so that this will only have to be done on occasion.

Quoted 9 lines

This is not unrealistic, For example for patches that are "official projects" by someone it often happens that not the actual submitter sends the patch, but his manager (often not even cc'ing the original developer). In some cases companies even go through huge efforts to keep the original developers secret (I won't give names here, but it happens). That's of course not because they stole anything, but because they have some silly NDAs in place regarding not giving out names of partners they're talking to or they just don't want you to learn too much about their internals.

What should be done is that Someone In Power signs off the patch(es) contributed by said company. This is to have a way to trace to someone who willingly (and taking responsibility) contributed each patch. Sure, it'd be nice to also know who commited some heinous crime(s), but...

Remember, what Linus wants is that no onne can pull an SCOX on Linux: If they come screaming that it contains preciousss IP, you can show in detail where it came from and make sure it is legitimate (or whom to blame, as the case may be).

Quoted 5 lines

I would have no problems with just putting a Signed-Off-By for me and for the person who sent me the patch, but trying to find out all the people through whose mailboxes the patch travelled earlier is potentially quite a lot of work. I am not sure I really want to get into that business.

What you should care about is that the next in line signed off their contribution(s) or certifies the origin.

Quoted 4 lines

I also don't think it's realistic to expect that everybody who submits patches will put in all the right Signed-Off-Bys on their own, so requiring the full path would put the maintainers into the situation outlined above.

Much less hassle than FSF's paperwork, to be sure.

Signature · 4 lines
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513