0012.html: Difference between revisions

From Linix VServer
Jump to navigationJump to search
(Restored content from Wayback Machine)
 
(Restored content from Wayback Machine)
Tag: Manual revert
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="links">
<div class="links">


'''Re: [vserver] Unable to set vshelper 3.18:'''<br />
'''[vserver] linux 3.10.76 and patch-3.10.69-vs2.3.6.9.diff:'''<br />
 <span class="small">vserver development mailing list</span> <br />
 <span class="small">vserver development mailing list</span> <br />
[<nowiki/>[[../|Next/Previous Months]]] [<nowiki/>[http://www.solucorp.qc.ca/miscprj/s_context.hc Main vserver Project Homepage]] [<nowiki/>[http://www.solucorp.qc.ca/mlist/index.hc?list=vserver Howto Subscribe/Unsubscribe]] [<nowiki/>[http://www.paul.sladen.org/vserver/ Paul Sladen's vserver stuff]]
[<nowiki/>[[../|Next/Previous Months]]] [<nowiki/>[http://www.solucorp.qc.ca/miscprj/s_context.hc Main vserver Project Homepage]] [<nowiki/>[http://www.solucorp.qc.ca/mlist/index.hc?list=vserver Howto Subscribe/Unsubscribe]] [<nowiki/>[http://www.paul.sladen.org/vserver/ Paul Sladen's vserver stuff]]
Line 8: Line 8:
<div class="head">
<div class="head">


<span id="re-vserver-unable-to-set-vshelper-3.18"></span>
<span id="vserver-linux-3.10.76-and-patch-3.10.69-vs2.3.6.9.diff"></span>
= Re: [vserver] Unable to set vshelper 3.18 =
= [vserver] linux 3.10.76 and patch-3.10.69-vs2.3.6.9.diff =


* <span class="dfn">This message</span>: [ [[#start|Message body]] ] [ [[#options2|More options]] ]
* <span class="dfn">This message</span>: [ [[#start|Message body]] ] [ [[#options2|More options]] ]
* <span class="dfn">Related messages</span>: [ [[0013.html|Next message]] ] [ [[0011.html|Previous message]] ] [ [[0011.html|In reply to]] ] [ [[0021.html|Next in thread]] ] [ [[#replies|Replies]] ]
* <span class="dfn">Related messages</span>: [ [[0013.html|Next message]] ] [ [[0011.html|Previous message]] ]




Line 18: Line 18:
<div class="mail">
<div class="mail">


<span id="from"> <span class="dfn">From</span>: Corey Wright &lt;[mailto:undefined_at_pobox.com?Subject=Re:%20%5Bvserver%5D%20Unable%20to%20set%20vshelper%203.18 undefined_at_pobox.com]&gt; </span><br />
<span id="from"> <span class="dfn">From</span>: Corey Wright &lt;[mailto:undefined_at_pobox.com?Subject=Re:%20%5Bvserver%5D%20linux%203.10.76%20and%20patch-3.10.69-vs2.3.6.9.diff undefined_at_pobox.com]&gt; </span><br />
<span id="date"><span class="dfn">Date</span>: Tue 03 Feb 2015 - 16:45:52 GMT</span><br />
<span id="date"><span class="dfn">Date</span>: Thu 30 Apr 2015 - 15:28:10 BST</span><br />
<span id="message-id"><span class="dfn">Message-Id</span>: &lt;20150203104552.3d1094209edadd90541c4420@pobox.com&gt; </span><br />
<span id="message-id"><span class="dfn">Message-Id</span>: &lt;20150430092810.c2d9d15b06e378fa1830030c@pobox.com&gt; </span><br />


On Tue, 3 Feb 2015 07:49:28 -0600<br />
applying patch-3.10.69-vs2.3.6.9.diff to linux 3.10.76 fails in patching.<br />
Corey Wright &lt;undefined@pobox.com&gt; wrote:<br />




''&gt; On Tue, 3 Feb 2015 07:33:34 -0600''<br />
patching file fs/libfs.c<br />
''&gt; Corey Wright &lt;undefined@pobox.com&gt; wrote:''<br />
Hunk #2 FAILED at 167.<br />
''&gt;''<br />
1 out of 4 hunks FAILED -- saving rejects to file fs/libfs.c.rej<br />
''&gt; &gt; On Sun, 01 Feb 2015 15:36:33 +0100''<br />
''&gt; &gt; Oliver Welter &lt;mail@oliwel.de&gt; wrote:''<br />
''&gt; &gt;''<br />
''&gt; &gt; &gt; Hi Bertl,''<br />
''&gt; &gt; &gt;''<br />
''&gt; &gt; &gt; with the 3.18 patch I dont have a node /proc/sys/kernel/vshelper and the''<br />
''&gt; &gt; &gt; vserver scripts complain about that.''<br />
''&gt; &gt;''<br />
''&gt; &gt; see attached patch.''<br />
''&gt;''<br />
''&gt; forget that patch.''<br />




see attached patch.<br />
upstream commit<br />
http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/fs/libfs.c?h=linux-3.10.y&id=6637ecd306a94a03dd5b8e4e8d3f260d9877c5b0<br />
invalidated the patch hunk context.<br />




take 2, now with testing! ;)<br />
the attached patch accounts for the upstream change.<br />




this patch is modeled after 3.14's linux-vserver patch where vshelper is<br />
instructions:<br />
patched in between uevent_helper and sg-big-buff entires in kern_table[].<br />
1. acquire linux-3.10.76<br />
2. apply patch-3.10.69-vs2.3.6.9.diff<br />
4. manually fix the Makefile reject (EXTRAVERSION)<br />
3. apply the attached patch-3.10.69-76-vs2.3.6.9.diff<br />




sorry for the delay, but i had to work out the initrd error about no<br />
i've successfully built the resulting kernel and tested it in virtualbox<br />
permission to write to /sys/kernel/uevent_helper (ie wheezy's udev still<br />
against testme.sh and testfs.sh and started-entered-exited-stopped a vserver<br />
requires CONFIG_UEVENT_HELPER=y, though turned-off in debian's 3.18 config in<br />
guest.<br />
experimental).<br />
 
 
the vserver patch hunk that failed (and that i subsequently provided a new<br />
patch for) appears related to filtering of pts in /dev/pts, so i tested that<br />
only the relevant pts appear in each context (host and guests), but i<br />
encourage further review and testing.<br />




Line 63: Line 61:
<pre>
<pre>
--
--
undefined@pobox.com
undefined@pobox.com</pre>
&gt; that patch moved the vshelper array entry out of the CONFIG_COMPACTION
&gt; preprocessor conditional but not out of the vm_table array and into
&gt; kern_table array (to it appears under /sys/kernel and not /sys/vm).
&gt;
&gt; new patch coming up (unless herbert beats me to it).
&gt;
&gt; corey
&gt; --
&gt; undefined@pobox.com
&gt;
&gt; &gt; thanks to AlexanderS on irc for his comment that tipped me off to where the
&gt; &gt; problem was (which was probably a bit faster than grepping for vshelper).
&gt; &gt;
&gt; &gt; haven't run-time tested it (been busy debugging why lxc-start mounts
&gt; &gt; filesystems in a container on a non-vserver kernel but not on a vserver
&gt; &gt; kernel, though root can do it without problem within the container), but it
&gt; &gt; compiles.
&gt; &gt;
&gt; &gt; corey
&gt; &gt; --
&gt; &gt; undefined@pobox.com
&gt; &gt;
&gt; &gt; &gt; There is I good chance that I missed something during setting up the
&gt; &gt; &gt; test system, any ideas? If that matters - I used 3.18.5 instead of
&gt; &gt; &gt; 3.18.4 as base.
&gt; &gt; &gt;
&gt; &gt; &gt; Oli
&gt; &gt; &gt; --
&gt; &gt; &gt; Protect your environment -  close windows and adopt a penguin!</pre>
<div>
<div>


* text/x-diff attachment: [[att-0012/patch-3.18.4-vs2.3.7.1-fix_vshelper_in_proc.diff|patch-3.18.4-vs2.3.7.1-fix_vshelper_in_proc.diff]]
* text/x-diff attachment: [[att-0012/patch-3.10.69-76-vs2.3.6.9.diff|patch-3.10.69-76-vs2.3.6.9.diff]]




</div>
</div>
<span id="received"><span class="dfn">Received on</span> Tue Feb 3 16:46:12 2015</span>
<span id="received"><span class="dfn">Received on</span> Thu Apr 30 15:28:32 2015</span>


</div>
</div>
Line 105: Line 74:


* <span class="dfn">This message</span>: [ [[#start|Message body]] ]
* <span class="dfn">This message</span>: [ [[#start|Message body]] ]
* <span class="dfn">Next message</span>: [[0013.html|Corey Wright: &quot;[vserver] 3.18.5-vs2.3.7.1 testfs.sh failures&quot;]]
* <span class="dfn">Next message</span>: [[0013.html|Corey Wright: &quot;[vserver] linux 3.14.40 and patch-3.14.33-vs2.3.6.15.diff&quot;]]
* <span class="dfn">Previous message</span>: [[0011.html|Corey Wright: &quot;Re: [vserver] Unable to set vshelper 3.18&quot;]]
* <span class="dfn">Previous message</span>: [[0011.html|Herbert Poetzl: &quot;Re: [vserver] ps -ef command gives incorrect stime&quot;]]
* <span class="dfn">In reply to</span>: [[0011.html|Corey Wright: &quot;Re: [vserver] Unable to set vshelper 3.18&quot;]]
* <span class="dfn">Next in thread</span>: [[0021.html|Alexander Sulfrian: &quot;Re: [vserver] Unable to set vshelper 3.18&quot;]]
* <span id="replies"></span><span class="dfn">Reply</span>: [[0021.html|Alexander Sulfrian: &quot;Re: [vserver] Unable to set vshelper 3.18&quot;]]


* <span id="options2"></span><span class="dfn">Contemporary messages sorted</span>: [ [[date.html#12|By Date]] ] [ [[index.html#12|By Thread]] ] [ [[subject.html#12|By Subject]] ] [ [[author.html#12|By Author]] ] [ [[attachment.html|By messages with attachments]] ]
* <span id="options2"></span><span class="dfn">Contemporary messages sorted</span>: [ [[date.html#12|By Date]] ] [ [[index.html#12|By Thread]] ] [ [[subject.html#12|By Subject]] ] [ [[author.html#12|By Author]] ] [ [[attachment.html|By messages with attachments]] ]
Line 118: Line 84:


[<nowiki/>[[../|Next/Previous Months]]] [<nowiki/>[http://www.solucorp.qc.ca/miscprj/s_context.hc Main vserver Project Homepage]] [<nowiki/>[http://www.solucorp.qc.ca/mlist/index.hc?list=vserver Howto Subscribe/Unsubscribe]] [<nowiki/>[http://www.paul.sladen.org/vserver/ Paul Sladen's vserver stuff]]<br />
[<nowiki/>[[../|Next/Previous Months]]] [<nowiki/>[http://www.solucorp.qc.ca/miscprj/s_context.hc Main vserver Project Homepage]] [<nowiki/>[http://www.solucorp.qc.ca/mlist/index.hc?list=vserver Howto Subscribe/Unsubscribe]] [<nowiki/>[http://www.paul.sladen.org/vserver/ Paul Sladen's vserver stuff]]<br />
<span class="small">Generated on Tue 03 Feb 2015 - 16:46:12 GMT by [http://www.hypermail.org/ hypermail 2.1.8]</span>
<span class="small">Generated on Thu 30 Apr 2015 - 15:28:32 BST by [http://www.hypermail.org/ hypermail 2.1.8]</span>


</div>
</div>

Latest revision as of 02:15, 11 November 2025

[vserver] linux 3.10.76 and patch-3.10.69-vs2.3.6.9.diff[edit]


From: Corey Wright <undefined_at_pobox.com>
Date: Thu 30 Apr 2015 - 15:28:10 BST
Message-Id: <20150430092810.c2d9d15b06e378fa1830030c@pobox.com>

applying patch-3.10.69-vs2.3.6.9.diff to linux 3.10.76 fails in patching.


patching file fs/libfs.c
Hunk #2 FAILED at 167.
1 out of 4 hunks FAILED -- saving rejects to file fs/libfs.c.rej


upstream commit
http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/fs/libfs.c?h=linux-3.10.y&id=6637ecd306a94a03dd5b8e4e8d3f260d9877c5b0
invalidated the patch hunk context.


the attached patch accounts for the upstream change.


instructions:
1. acquire linux-3.10.76
2. apply patch-3.10.69-vs2.3.6.9.diff
4. manually fix the Makefile reject (EXTRAVERSION)
3. apply the attached patch-3.10.69-76-vs2.3.6.9.diff


i've successfully built the resulting kernel and tested it in virtualbox
against testme.sh and testfs.sh and started-entered-exited-stopped a vserver
guest.


the vserver patch hunk that failed (and that i subsequently provided a new
patch for) appears related to filtering of pts in /dev/pts, so i tested that
only the relevant pts appear in each context (host and guests), but i
encourage further review and testing.


corey


--
undefined@pobox.com


Received on Thu Apr 30 15:28:32 2015

[[[../|Next/Previous Months]]] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 30 Apr 2015 - 15:28:32 BST by hypermail 2.1.8