Re: ext2_find_near

2008-07-31 Thread Scott Lovenberg
Rene Herman wrote: On 29-07-08 21:35, Rohit Sharma wrote: I was going through the function ext2_find_near in inode.c and could not interpret the meaning of the last part of this code : Am definitely not an fs person, but the comment just above ext2_find_near() explains a bit. Colouring

Re: PCI DMA and security

2008-07-31 Thread Sukanto Ghosh
Hi Greg, On Thu, Jul 31, 2008 at 5:51 AM, Greg KH [EMAIL PROTECTED] wrote: On Wed, Jul 30, 2008 at 10:13:28PM +0530, Sukanto Ghosh wrote: Hi, In PCI DMA operation, a device (consider it to be bus-master) can directly transfer data to a memory location (some bus address, which is 1:1 mapped

Re: PCI DMA and security

2008-07-31 Thread Rene Herman
On 31-07-08 08:33, Sukanto Ghosh wrote: On Thu, Jul 31, 2008 at 5:51 AM, Greg KH [EMAIL PROTECTED] wrote: On Wed, Jul 30, 2008 at 10:13:28PM +0530, Sukanto Ghosh wrote: In PCI DMA operation, a device (consider it to be bus-master) can directly transfer data to a memory location (some bus

Re: ext2_find_near

2008-07-31 Thread Rene Herman
On 31-07-08 08:20, Scott Lovenberg wrote: Rene Herman wrote: On 29-07-08 21:35, Rohit Sharma wrote: I was going through the function ext2_find_near in inode.c and could not interpret the meaning of the last part of this code : Am definitely not an fs person, but the comment just above

Re: bug in kernel

2008-07-31 Thread Frédéric Weisbecker
2008/7/31 Gery [EMAIL PROTECTED] Hi All, I have 2.6.10 on ppc. Help to analyze, please, follows bug: [~]$ BUG: swapper:1 RT task yield()-ing! Call trace: [c01e1b68] yield+0x68/0x6c [c0269cc4] initrd_load+0x16c/0x2e4 [c0267084] prepare_namespace+0x54/0x138 [c00028d4] init+0x260/0x2b0

creating /dev/console

2008-07-31 Thread Hinko Kocevar
Hi, I would like my kernel to create /dev/console device entry if one is not present on root filesystem. I've used code from init/noinitramfs.c and copied it in init/main.c (see the patch). The problem is that /dev/console indeed gets created, but the system won't boot further. I can verify

Re: bug in kernel

2008-07-31 Thread Zaphod
Frédéric Weisbecker wrote: 2008/7/31 Gery [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Hi All, I have 2.6.10 on ppc. Help to analyze, please, follows bug: [~]$ BUG: swapper:1 RT task yield()-ing! Call trace: [c01e1b68] yield+0x68/0x6c [c0269cc4]

Re: creating /dev/console

2008-07-31 Thread Thomas De Schampheleire
Hello, You are creating /dev/console after the system is trying to use it. No second attempt is made to open /dev/console, so the system stays blocked. /dev/console should be created before the point where the warning currently is displayed... Best regards, Thomas 2008/7/31 Hinko Kocevar

Re: creating /dev/console

2008-07-31 Thread Thomas Petazzoni
Le Thu, 31 Jul 2008 13:23:18 +0200, Hinko Kocevar [EMAIL PROTECTED] a écrit : I would like my kernel to create /dev/console device entry if one is not present on root filesystem. Looks odd that you need something like this. Why not using an initramfs instead ? Sincerly, Thomas -- Thomas

Re: bug in kernel

2008-07-31 Thread Thomas Petazzoni
Le Thu, 31 Jul 2008 14:04:07 -0400, Zaphod [EMAIL PROTECTED] a écrit : My kernel is from Montavista, so i don't know if possible to compare to the current one. Then ask support from Montavista :-) More seriously, the community is probably not going to help you a lot if you cannot test a more

Re: PCI DMA and security

2008-07-31 Thread Rene Herman
On 31-07-08 22:59, Thomas Petazzoni wrote: Using that kind of hardware, the OS has control over which parts of the physical memory is visible to a particular device. So the OS can protect itself against malicious devices. The IOMMU being broken is quite comparable to the device or (with his

Re: PCI DMA and security

2008-07-31 Thread Michael Blizek
Hi! On 22:59 Thu 31 Jul , Thomas Petazzoni wrote: Le Wed, 30 Jul 2008 17:21:31 -0700, Greg KH [EMAIL PROTECTED] a ??crit : That's a fault of the hardware, nothing the os can do about that, sorry. Yes, however some recent chips provide an IOMMU, ??a memory management unit (MMU)