/srv/irclogs.ubuntu.com/2014/11/25/#ubuntu-kernel.txt

=== psivaa-holiday is now known as psivaa
TJ-I am modifying the build system to build for MCYRIXIII (no PAE, CMOV, or CX8) which is technically a real i486 build, a variation of the i386 (really i686) arch. Would it make sense to make it a flavour of i386 or create a new arch, as in ./debian.master/config/i486/ ?12:07
apwTJ-, its a variation of i386 i assume, so it'd want to use that kernel arch12:45
apwTJ-, though will userspace even work on that, given it is also at liberty to assume CMOV etc12:45
TJ-apw: The issue I was wondering about is that the i386 flavours all have the 64 bit support flags enabled12:46
TJ-apw: So either I'd need an explicit over-ride from =Y to =N or an entirely different arch12:47
apwTJ-, the arch there i386 matches the debian arch you are trying to target, not the kernel arch per-se12:48
apwTJ-, yes you will make a heap of mess in the config split, but, whatever, thats not your problem12:49
TJ-apw: Userspace will be fine; Currently I'm using a Debian install but this is for low power pseudo-embedded devices doing simple network monitoring tasks and I'd like to keep the entire estate on the same ubuntu server release12:49
TJ-apw: I thought it did (match the packaging arch) which is why I asked before wasting time :)12:49
apwTJ-, i am not sure because debian works, that ubuntu uspace would work with it, unless you are saying you have rammed a debian kernel into our userspace and it did work12:50
apwwhich would be a sensible test12:50
apwas we do not necessarily compiler our libraries including libc with the same lower limits12:50
apwh/w support wise12:51
TJ-apw: Pure Debian for the original test, now using network boot with rpld -> iPXE -> cobbler -> Ubuntu Server i386 with custom kernel alternatives being tested.12:51
TJ-apw: Once I can get an Ubuntu kernel to boot, I'll sort out userspace if needed :)12:52
TJ-apw: So my challenge is to modify debian.master/config/i386/ to override some of the .common. configs that expect 64-bit (PAE) support12:53
TJ-apw: Maybe I should go back in the history to see how the PAE/non-PAE split was done in 12.04 12:54
apwTJ-, well first add your own flavour, and say copy config.flavour.generic into it, then start adding the "differences" you want12:54
apwto that same file, and running update configs until you have a config which works12:54
apwrunning debian/rules updateconfigs12:54
apwTJ-, if the release you are basing on has -lowlatency that shows the places you need to be concious off when making a -i486 or whatever you call it12:55
TJ-apw: The adding isn't an issue ... it's the taking-away that I'm wondering about - can't just have commented entries in the new flavour, got to over-ride the incompatible flags. I'll play about with it now I know to stick with the i386 arch - thanks alot :)12:56
TJ-apw: Yeah, got/using low-latency (working off 14.04)12:56
apwTJ-, "# CONFIG_FOO is not set" is not (contrary to its appearance) a comment, it is the written equivalent of "CONFIG_FOO=n"12:56
apwand will override an =y/m to off12:57
apwTJ-, additionally as you do this i _strongly_ recommend you keep a copy of the "total overrides" you have added to that file12:57
TJ-apw: really? I always thought it was ignored by the build system?12:58
TJ-apw: Yeah - it's all committed in git :)12:58
apwas when we change the config under you, you can "cat config.flavour.generic my-overrides >config.flavour.i486; debian/rules updateconfigs" to reapply your delta12:58
apwTJ-, really yes, the latest entry is taken for any value and that includes the "is not set" specifiers12:59
apwthats why you find them in the config fragments at all12:59
TJ-apw: aha, that helps! I did read earlier how to use the build scripts to generate the flavour ./.config but can't find it now - is it a simple debian/rules <some-target-name>  or more involved ?13:04
apwto find out what the raw configs look like, debian/rules genconfigs and look in CONFIGS/*13:05
TJ-apw: Thanks :) the various wiki pages aren't entirely clear on this aspect13:06
apwTJ-, to be honest we don't want it to be too easy, as you really want to be knowledgable before you even think about taking on maintenance of a kernel derivative13:06
apwTJ-, if you end up doing this as a derivative kernel, there is some support for "derived configs" in the linux-lowlatency kernel which was separate in a couple of releeases, where the rebase act fixes the configs for you in the majority case.13:07
apwit is essentially doing what i proposed here, given an accumulated "these must be these values i care not about anything else" being applied relative to generic13:08
TJ-apw: I've been doing custom kernel builds/maintenance for 10 years or so, but it's a while since I worked with the Ubuntu build scripts and things have changed a lot there13:08
apwkind of thing.  which worked pretty well with things like you are changing, fundamental values which never change13:08
apwTJ-, we rarely stay still for long, where is the fun in that13:09
TJ-Re-inventing the wheel gets boring :)13:10
apwyep derivative kernels are a pain to maintain for sure13:14
thms_TCP timestamps enabled on a default Ubuntu server, is a "MEDIUM RISK" according to vulnerability scanners like OpenVAS, because it provides critical info to hackers about the system. But the timestamps provide a lot of very useful features as well, so my question is - Is it possible to enable randomized TCP timestamps in some way? Or should I disable completely? Or ignore the warnings?13:32
apwthms_, not sure i know off the top of my head ... jjohansen ^ ?13:35
jjohansenthms_, apw: I am not aware of away to do that, personally I would put the TCP timestaps issue as low risk, it allows getting the system uptime and boot time, and disabling it will slow down your tcp connections13:41
thms_apw there seem to be a lot of suggestions to simply turn them off - but since it enabled by default in almost all distributions, including firewall distros, there has to be a better way...13:41
jjohansenas long as you are keeping your system up to date, you should be okay.  If you aren't rebooting into new security kernels or live patching it becomes more of a problem13:42
apwthms_, from what i can see in a very cursory look, is that they are either on or not on13:42
thms_right...13:42
jjohansenthat agrees with what I know13:42
thms_I'v found that Sophos, a Linux based firewall distro has timestamps on by default, but it seems to randomize the numbers in some way...13:43
thms_Thanks anyways :-)13:44
jjohansenthms_: grsecurity is carrying a patch to do that13:44
apwjjohansen, and that tells me to stop looking to see if it is possible :)13:45
* thms_ goes looking at grsecurity13:45
apwjjohansen, got a pointer to that patch, purely academic interest, i wonder if it is complex13:45
jjohansenand it looks like openbsd13:45
thms_I think the 'bsd's all have some implementation of this13:46
jjohansenapw: nope grsecurity is one big ugly flat patch, I just found an email referencing it13:46
apwoh those people13:47
jjohansenactually I'm not sure if they have it, that mail was that have a working proof of concept13:47
apwyeah i see the same, though if that description is right, it may be a simple thing to set tsoffset or something to != 013:48
thms_I won't pretend to fully understand every aspect of the timestamping stuff, but the proposed patch here, looks very simple: https://grsecurity.net/~spender/random_timestamp.diff - although, to my knowledge, the "randomness" should probably be set per connection13:56
thms_but something like this would probably be a good start - and not causing new problems either (the per connection randomization might be a little more tricky to get right?)13:57
ckingamitk, how's idlestat progression?  any hints when version 0.4 will land?14:01
ckings/progression/progressing/14:01
apwthms_, it is not clear you couldn't just load that random number into tsoffset instead of =0, but then i am no expert14:02
apwthms_, making it per connection instead ...14:03
smbjibel, Did you already change the proxy settings for the dkms test host. Asking because I still see them all failing while they should succeed (and picking a random log still showed the fw download as the issue)14:04
thms_apw, oh, there's a tsoffset for the connection initialization code?14:04
smbjibel, that is dahdi dkms package14:04
* thms_ shamefully admits to not having done his homework :-|14:04
apwthms_, if i am reading things right, each socket has its own offset, i have no idea what is really used for, but it is thrown into the mix when making the timestamp14:05
apwthms_, so it is possible one could use that in some way, perhaps14:05
apwthms_, the good thing about a single offset such as in the grc version is that is is more spec friendly for the various optimisations14:05
jibelsmb, no, I didn't have time to do it yet. I'll let you know once it's done.14:06
thms_apw, right; simply generating a random number instead...14:06
smbjibel, Ah ok. Yeah, thanks.14:06
thms_apw, my thought exactly - although per session seems like the "proper" solution to this14:06
apwthms_, just not sure what effect that has, given it is there for something else, for "repair", but ... who knows what that is ... checkpoint restore perhaps14:06
thms_right..14:07
apwif it is for CPR then, it would be a good candidate14:09
thms_CPR?14:10
apwcheck-point-restore14:11
thms_Never heard of it but seems handy :-)14:11
apwyeah some processes can be potted and reloaded on another system, one of the things they can in theory carry over14:12
apwis network connections, and the timestamps would need to be those in use on the original system14:12
apwand that would fit well with it being a sockopt which is the only thing which can change it14:12
apwas you would make the socket, and fix it, before giving it back to the process image you are loading14:13
thms_exactly... sounds cool... what's it used for? loadbalancing processes or debugging?14:14
smblive migration of containers14:15
thms_of course... nice14:15
jsalisbury##16:55
jsalisbury## Kernel team meeting in 5 minutes16:55
jsalisbury##16:55
amitk /quit18:05
=== jsalisbury changed the topic of #ubuntu-kernel to: Home: https://wiki.ubuntu.com/Kernel/ || Ubuntu Kernel Team Meeting - Tues December 2nd, 2014 - 17:00 UTC || If you have a question just ask, and do wait around for an answer! If the question is should I file a bug for something, likely you can assume yes.

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!