/srv/irclogs.ubuntu.com/2008/12/04/#ubuntu-kernel.txt

apwsmb_tp, i presume the launchpad bug robot only closes bugs listed in the changelog09:49
smb_tpOnly those that have a matching But: # entry there09:50
smb_tps/But/Bug/09:50
apwso any bugs which arn't duplicates bug fixed by the same fixes basically have to be manually handled09:51
smb_tpyes, that is correct.09:52
apwcool thanks09:52
smb_tpWe might try for future ones whether comma separated lists work. Never had that before09:53
mneHi. Where can I see which patches have been applied to the ubuntu kernel ? Also, is there a way to see the memory segments the kernel is using ?09:54
amitkmne: in the kernel git tree on kernel.ubuntu.com10:09
mnethanks10:12
apwmne what do you mean by 'the memory segments the kernel is using' ?10:13
apwthe kernel generally uses all memory for something10:13
apwyou can see the memory segments for each process in /proc/<pid>/maps, but that isn't the kernels use10:14
mnewell, I'm just playing a bit with kernel runtime patching. And as soon as I write to a valid address, the kernel crashes. I just write one single byte and the byte value is the same than the value that's already on that memory position10:14
apwcrashes with what error?10:15
mneWith the vanilla kernel it works10:15
apwfrom what context are you trying to write, what sort of place are you trying to write10:16
mneit's in entry_32. I'm trying to patch an instruction byte. I'm just rebooting the image so that I can give you the exact error message10:17
amitkmne: what interface are you using? /dev/kmem ?10:17
mneMy code is inside a kernel module. I'm getting the address through an exported kernel symbol10:18
apwits entirly possible those code pages are r/o in the MMU, as there is no good reason for them to be writable10:18
mneis that a difference between the ubuntu and the vanilla kernel ?10:19
apwby preventing them being writable a vector for attack is made more difficult10:19
apwi am supprised its not the same in vanilla, but it could be app armour10:20
apwanyhow, let us know the actual error10:20
mne BUG: unable to handle kernel paging request at c010401010:20
mneI'm pasting the whole message on pastebin10:20
mneif you want10:20
apwyep10:20
mneI'm playing with an old kernel rootkit for security research (I want to know how it works)10:21
mnehttp://pastebin.com/m1138ecfb10:22
apwi assume that that is the write, so it does look like you have written somewhere early in the kernel image and been told NO10:26
mneso the address is just not writeable ?10:26
mneThe address itself is correct, i have verified that10:27
apwyou have cirtainly hit a protection fault10:28
apwand if you are writing to the right place, and the address is believeable for the kernel code10:28
apwthen it looks to be protected, which would be my expectation actually10:29
mnehmm, ok. thanks for helping10:29
mneWhere would I have to look to see which memory regions are protected ?10:29
mneyou said it's inside mmu ?10:30
apwi would guess app armor has changed the way the kernel protects itself if vanilla is not10:30
apwthe page tables hold the protection information for everything including the kernel10:30
mnegood, I'll have a look there then. thanks10:30
mneI have to leave for work now, I'll look at it afterwards10:31
=== doko_ is now known as doko
timhi ... got a slightly off-topic question ... is there an ubuntu package providing the man pages for the kernel routines?12:15
apwtim manpages-dev perhaps?12:42
timapw, unfortunately not ... the only manpages for kernel routines i found, are part of `freebsd-manpages', describing freebsd kernel functions :/12:45
apwwhich manpage are you after12:46
timkfree ... i found a man page on the net, but would prefer to be able to read them offline12:47
ckingas far as I know there are no kernel API man pages available12:48
* amitk nods12:50
timah, that would explain, why i don't find them ... thanks ...12:51
amitkthe Documentation directory, Linux Device Drivers, and such books are your best bed12:51
amitk*bet12:51
* apw agrees12:56
ckingor the kernel source :-)13:03
ferozhello!14:52
GCFhello feroz (anti vent :p)14:53
feroz:D14:53
ferozAnyone is familiar with hid devices here?14:53
fabbionesmb_tp: please pull from here http://kernel.ubuntu.com/git?p=fabbione/ubuntu-hardy.git;a=summary15:04
fabbionesmb_tp: the only thing is that i was not able to verify if there was an ABI change. It will probably tell you that there is a module or two more15:05
fabbionesmb_tp: let me know if you need anything else15:05
smb_tpfabbione, ok. That should be ok. More symbols are accepted. Just changes would be bad15:05
fabbionesmb_tp: yeah i know the story... but i don't know if you made your checks stricter than when I first wrote them :)15:07
fabbioneanyway.. only one change in that tree15:07
fabbioneit's on your latest hardy tree as of 10 minutes ago checkout15:07
smb_tpfabbione, no not stricter. :) Just Ben got annoyed enough with the diff type approach that he changed it to an enhanced perl compare.15:08
fabbionei can't say on public IRC what's passing through my mind :)15:09
fabbioneBen is a ***** developer :P15:09
fabbionejust because I have been friend with ben for way too long ;)15:09
smb_tpheh. :) Guess I have to ask him next week :)15:10
fabbioneahah sure15:10
fabbionei am off15:10
fabbionehave fun15:10
smb_tpthanks, u215:10
mne_Hi, how can I change a kernel page protection entry ? there is change_protection, but the symbol is not exported16:21
apwthey are probabally hinting that should shouldn't be doing that16:44
sconklinis there anything I should know before I dive into several quickcam driver bugs? 21:43
ckingsconklin: I suspect you will find out21:44
sconklinhaha. yeah.21:46
sconklinthere are some comments in some bugs that make me think maybe we're already carrying some patches that aren't upstream, that's the first thing I'll go investigate21:48
ckingsconklin: what's the probs with the quickcam driver?  The issues I've seen are usually weird frame offset / geometry problems which need tweaking for different variants of the hardware21:51
sconklinthere are various problems, differing slightly with model number. One "doesn't work" when plugged in, but some workarounds get it to work with funky video. Another doesn't have hal detect it as v4l capable.21:55
sconklinThe bug numbers I'm looking at are:21:55
sconklinbug 196811 bug 22070 bug 13428521:56
ckingthe slightly different model number can be subtle - sometimes the chipset is completely different - the pressure for cost reduction means that chipsets can radically change between model numbers22:01
sconklinyeah, I was aware of that, thanks. I've dealt with wireless adapters that are packaged identically but have different chipsets and identifiers.22:02
cking..yeah - these kind of fun issues just to keep us on our toes!22:03
* cking wonders if he can fit one more build in before the day is done22:03
* sconklin knows he can't22:09
ckingdepends on how long one's day is really :-)22:13
sconklintonight we have a band parents supper, so no working late for me22:15
ckinggood plan.22:17
* cking bailing out - build done, test failed, respin another day22:17
=== TheMuso_ is now known as TheMuso

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