Paolo Giarrusso | 8 Jul 01:53 2010
Picon

Re: something broke hppfs

On Wed, May 19, 2010 at 14:57, Antoine Martin <antoine <at> nagafix.co.uk> wrote:
>   LD      fs/hostfs/hostfs.o
>   LD      fs/hostfs/built-in.o
>   CC      fs/hppfs/hppfs.o
> fs/hppfs/hppfs.c: In function 'hppfs_fill_super':
> fs/hppfs/hppfs.c:721: error: dereferencing pointer to incomplete type

Uh, that looks like a missing include (so that for a type, there is
just a forward declaration). Probably now something.h does not include
any more something_else_that_you_need.h.
--

-- 
Paolo Giarrusso - Ph.D. Student
http://www.informatik.uni-marburg.de/~pgiarrusso/

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
ratheesh k | 28 Jul 18:24 2010
Picon

reading heap memory in kernel space .

I have a simple user space program .

char *ptr=(char *)malloc(100);
strcpy(ptr , "Hi Kernel  , How are you ");
.........
sendmsg(...)
........

I compiled this program  and executed on 2.6.32 user mode linux .
when i run uml under gdb , i would like to read all memory location
staring from ptr .( whole string ) from kernel .
I have set some break points on some system calls ( sys_sendmsg ). gdb
will break there and if know ptr address , should i convert to
physical address space ? How will i do that ? how will i get
uml_physmem value ?

-ratheesh

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
Jeff Dike | 28 Jul 20:49 2010

Re: reading heap memory in kernel space .

On Wed, Jul 28, 2010 at 09:54:37PM +0530, ratheesh k wrote:
> I have a simple user space program .
> 
> char *ptr=(char *)malloc(100);
> strcpy(ptr , "Hi Kernel  , How are you ");
> .........
> sendmsg(...)
> ........
> 
> 
> I compiled this program  and executed on 2.6.32 user mode linux .
> when i run uml under gdb , i would like to read all memory location
> staring from ptr .( whole string ) from kernel .
> I have set some break points on some system calls ( sys_sendmsg ). gdb
> will break there and if know ptr address , should i convert to
> physical address space ? How will i do that ? how will i get
> uml_physmem value ?

Why do you want a physical address?  It's useless to a debugger.

				Jeff

--

-- 
Work email - jdike at linux dot intel dot com

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
(Continue reading)

ratheesh k | 29 Jul 04:04 2010

Re: reading heap memory in kernel space .

On Thu, Jul 29, 2010 at 12:19 AM, Jeff Dike <jdike <at> addtoit.com> wrote:
> Why do you want a physical address?  It's useless to a debugger.

I agree .
I would like to know this .Could you help me .How do i find uml_physmem value ?

-Ratheesh

> On Wed, Jul 28, 2010 at 09:54:37PM +0530, ratheesh k wrote:
>> I have a simple user space program .
>>
>> char *ptr=(char *)malloc(100);
>> strcpy(ptr , "Hi Kernel  , How are you ");
>> .........
>> sendmsg(...)
>> ........
>>
>>
>> I compiled this program  and executed on 2.6.32 user mode linux .
>> when i run uml under gdb , i would like to read all memory location
>> staring from ptr .( whole string ) from kernel .
>> I have set some break points on some system calls ( sys_sendmsg ). gdb
>> will break there and if know ptr address , should i convert to
>> physical address space ? How will i do that ? how will i get
>> uml_physmem value ?
>
> Why do you want a physical address?  It's useless to a debugger.
>
>                                Jeff
>
(Continue reading)

Christoph Egger | 29 Jul 17:28 2010
Picon

[PATCH 0/3] Removing dead code

Hi all!

        As part of the VAMOS[0] research project at the University of
Erlangen we are looking at multiple integrity errors in linux'
configuration system.

        I've been running a check on the arch/um sourcetree for config
Items not defined in Kconfig and found 10 such cases. Sourcecode
blocks depending on these Items are not reachable from a vanilla
kernel -- dead code. I've seen such dead blocks made on purpose
e.g. while integrating new features into the kernel but generally
they're just useless.

        Each of the patches in this patchset removes on such dead
config Item, I'd be glad if you consider applying them. I've been
doing deeper analysis of such issues before and can do so again but
I'm not so sure they were fastly usefull.

        I build the patches against a vanilla kernel in order to
try if the kernel compiles with this patches. As reported earlier
today the build currently fails for plain um but adding this patchset
doesn't change the failing in any way. That was a i386 build.

        Please keep me informed of this patch getting confirmed /
merged so we can keep track of it.

Regards

        Christoph Egger

(Continue reading)

Christoph Egger | 29 Jul 17:28 2010
Picon

[PATCH 1/3] Removing dead PROC_MM

PROC_MM doesn't exist in Kconfig. Looking around it looks like a
left-over from 2.6.0 or even 2.4 times, last mentioned in a fedora
patch for 2.6.10. I believe it's time to get rid of that last tiny
parts here that are still around.

Signed-off-by: Christoph Egger <siccegge <at> cs.fau.de>
---
 arch/um/kernel/ptrace.c |   21 ---------------------
 1 files changed, 0 insertions(+), 21 deletions(-)

diff --git a/arch/um/kernel/ptrace.c b/arch/um/kernel/ptrace.c
index 4845099..e051049 100644
--- a/arch/um/kernel/ptrace.c
+++ b/arch/um/kernel/ptrace.c
 <at>  <at>  -7,9 +7,6  <at>  <at> 
 #include "linux/ptrace.h"
 #include "linux/sched.h"
 #include "asm/uaccess.h"
-#ifdef CONFIG_PROC_MM
-#include "proc_mm.h"
-#endif
 #include "skas_ptrace.h"

 
 <at>  <at>  -158,24 +155,6  <at>  <at>  long arch_ptrace(struct task_struct *child, long request, long addr, long data)
 		break;
 	}
 #endif
-#ifdef CONFIG_PROC_MM
-	case PTRACE_SWITCH_MM: {
(Continue reading)

Christoph Egger | 29 Jul 17:29 2010
Picon

[PATCH 2/3] Removing conditionalizing containing exactly the same code

Found this because there's no PPC64 in um, however both branches of
this ifdef contain the exactly same code (modulo comment).

Signed-off-by: Christoph Egger <siccegge <at> cs.fau.de>
---
 arch/um/sys-ppc/shared/sysdep/ptrace.h |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/arch/um/sys-ppc/shared/sysdep/ptrace.h b/arch/um/sys-ppc/shared/sysdep/ptrace.h
index 0e3230e..4ae9be9 100644
--- a/arch/um/sys-ppc/shared/sysdep/ptrace.h
+++ b/arch/um/sys-ppc/shared/sysdep/ptrace.h
 <at>  <at>  -9,11 +9,8  <at>  <at> 

 /* the following taken from <asm-ppc/ptrace.h> */

-#ifdef CONFIG_PPC64
-#define PPC_REG unsigned long /*long*/
-#else
 #define PPC_REG unsigned long
-#endif
+
 struct sys_pt_regs_s {
 	PPC_REG gpr[32];
 	PPC_REG nip;
--

-- 
1.7.0.4

Christoph Egger | 29 Jul 17:29 2010
Picon

[PATCH 3/3] Removing dead copy&paste code

In arch/um there's a lot of code that is copied from their original
arch (but out of sync) and contains code blocks that are either dead
because these options disappearedd or because the arch/x86 Kconfig
stuff doesn't reach arch/um.

X86_OOSTORE is a bit tricky because it's in itself seemingly available
on arch/um but depends on MTRR which isn't in arch/um.

Signed-off-by: Christoph Egger <siccegge <at> cs.fau.de>
---
 arch/um/sys-i386/asm/archparam.h          |    4 ----
 arch/um/sys-i386/shared/sysdep/system.h   |   11 +----------
 arch/um/sys-ppc/misc.S                    |    6 ------
 arch/um/sys-x86_64/shared/sysdep/system.h |   10 +---------
 4 files changed, 2 insertions(+), 29 deletions(-)

diff --git a/arch/um/sys-i386/asm/archparam.h b/arch/um/sys-i386/asm/archparam.h
index 2a18a88..b2072c9 100644
--- a/arch/um/sys-i386/asm/archparam.h
+++ b/arch/um/sys-i386/asm/archparam.h
 <at>  <at>  -6,11 +6,7  <at>  <at> 
 #ifndef __UM_ARCHPARAM_I386_H
 #define __UM_ARCHPARAM_I386_H

-#ifdef CONFIG_X86_PAE
-#define LAST_PKMAP 512
-#else
 #define LAST_PKMAP 1024
-#endif

(Continue reading)

Christoph Egger | 29 Jul 17:20 2010
Picon

Failing to build um allyesconfig on linus head

Hi all!

    Trying to build a um allyesconfig kernel from Linus' Head failed
for me here on i386 with loads of error messages. Find attached the
used .config and the error log.

Regards

    Christoph
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.35-rc6
# Thu Jul 29 17:03:53 2010
#
CONFIG_DEFCONFIG_LIST="arch/$ARCH/defconfig"
CONFIG_GENERIC_HARDIRQS=y
CONFIG_UML=y
CONFIG_MMU=y
CONFIG_NO_IOMEM=y
# CONFIG_TRACE_IRQFLAGS_SUPPORT is not set
CONFIG_LOCKDEP_SUPPORT=y
# CONFIG_STACKTRACE_SUPPORT is not set
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_GENERIC_BUG=y
CONFIG_GENERIC_TIME=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_IRQ_RELEASE_METHOD=y
CONFIG_HZ=100
(Continue reading)

ratheesh k | 29 Jul 18:52 2010
Picon

netlink socket is not working

attached code is working properly on i386 machine running 2.6.32. but
not working on uml (2.6.32 ).

am i missing something ? or is it a known bug ?
Attachment (sock-kernel.c): text/x-csrc, 1341 bytes
Attachment (netlink-user.c): text/x-csrc, 1766 bytes
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Gmane