FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 02-13-2010, 11:32 AM
Ine Ya
 
Default Bug#569683: linux-image-2.6.26-2-686: /proc/pid/maps is empty for all processes

Package: linux-2.6
Version: 2.6.26-21
Severity: normal
Tags: patch

/proc/pid/maps is empty for all processes, only /proc/self/maps works.

The following patch helped me to fix the problem:
--- linux-2.6-2.6.26/fs/proc/base.c 2008-07-13 16:51:29.000000000 -0500
+++ linux/fs/proc/base.c 2009-12-26 02:14:58.000000000 -0600
@@ -251,7 +251,8 @@
task_lock(task);
if (task->mm != mm)
goto out;
- if (task->mm != current->mm && __ptrace_may_attach(task) < 0)
+ if (task->mm != current->mm && ((mm->flags & MMF_IN_EXEC) ||
+ __ptrace_may_attach(task) < 0))
goto out;
task_unlock(task);
return mm;

I'm writing this report from modified kernel, which contains this
patch, and I test like 'cat /proc/1/maps' works now.

-- Package-specific info:
** Kernel log: boot messages should be attached


-- System Information:
Debian Release: 5.0.4
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26cust1
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages linux-image-2.6.26-2-686 depends on:
ii debconf [debconf-2.0] 1.5.24 Debian configuration management sy
ii initramfs-tools [linux-initra 0.92o tools for generating an initramfs
ii module-init-tools 3.4-1 tools for managing Linux kernel mo

Versions of packages linux-image-2.6.26-2-686 recommends:
ii libc6-i686 2.7-18lenny2 GNU C Library: Shared libraries [i

Versions of packages linux-image-2.6.26-2-686 suggests:
ii grub 0.97-47lenny2 GRand Unified Bootloader (Legacy v
pn linux-doc-2.6.26 <none> (no description available)

Versions of packages linux-image-2.6.26-2-686 is related to:
pn firmware-bnx2 <none> (no description available)
pn firmware-bnx2x <none> (no description available)
pn firmware-ipw2x00 <none> (no description available)
pn firmware-ivtv <none> (no description available)
pn firmware-iwlwifi <none> (no description available)
pn firmware-linux <none> (no description available)
pn firmware-linux-nonfree <none> (no description available)
pn firmware-qlogic <none> (no description available)
pn firmware-ralink <none> (no description available)

-- debconf information:
linux-image-2.6.26-2-686/postinst/bootloader-error-2.6.26-2-686:
shared/kernel-image/really-run-bootloader: true
linux-image-2.6.26-2-686/postinst/old-dir-initrd-link-2.6.26-2-686: true
linux-image-2.6.26-2-686/preinst/initrd-2.6.26-2-686:
linux-image-2.6.26-2-686/preinst/overwriting-modules-2.6.26-2-686: true
linux-image-2.6.26-2-686/postinst/bootloader-test-error-2.6.26-2-686:
linux-image-2.6.26-2-686/preinst/lilo-has-ramdisk:
linux-image-2.6.26-2-686/postinst/depmod-error-2.6.26-2-686: false
linux-image-2.6.26-2-686/prerm/would-invalidate-boot-loader-2.6.26-2-686: true
linux-image-2.6.26-2-686/postinst/kimage-is-a-directory:
linux-image-2.6.26-2-686/postinst/old-initrd-link-2.6.26-2-686: true
linux-image-2.6.26-2-686/preinst/bootloader-initrd-2.6.26-2-686: true
linux-image-2.6.26-2-686/preinst/abort-overwrite-2.6.26-2-686:
linux-image-2.6.26-2-686/preinst/abort-install-2.6.26-2-686:
linux-image-2.6.26-2-686/preinst/elilo-initrd-2.6.26-2-686: true
linux-image-2.6.26-2-686/postinst/depmod-error-initrd-2.6.26-2-686: false
linux-image-2.6.26-2-686/postinst/create-kimage-link-2.6.26-2-686: true
linux-image-2.6.26-2-686/preinst/lilo-initrd-2.6.26-2-686: true
linux-image-2.6.26-2-686/prerm/removing-running-kernel-2.6.26-2-686: true
linux-image-2.6.26-2-686/preinst/failed-to-move-modules-2.6.26-2-686:
linux-image-2.6.26-2-686/postinst/old-system-map-link-2.6.26-2-686: true



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-13-2010, 12:14 PM
maximilian attems
 
Default Bug#569683: linux-image-2.6.26-2-686: /proc/pid/maps is empty for all processes

On Sat, Feb 13, 2010 at 01:32:36PM +0100, Ine Ya wrote:
> Package: linux-2.6
> Version: 2.6.26-21
> Severity: normal
> Tags: patch
>
> /proc/pid/maps is empty for all processes, only /proc/self/maps works.
>
> The following patch helped me to fix the problem:
> --- linux-2.6-2.6.26/fs/proc/base.c 2008-07-13 16:51:29.000000000 -0500
> +++ linux/fs/proc/base.c 2009-12-26 02:14:58.000000000 -0600
> @@ -251,7 +251,8 @@
> task_lock(task);
> if (task->mm != mm)
> goto out;
> - if (task->mm != current->mm && __ptrace_may_attach(task) < 0)
> + if (task->mm != current->mm && ((mm->flags & MMF_IN_EXEC) ||
> + __ptrace_may_attach(task) < 0))
> goto out;
> task_unlock(task);
> return mm;
>
> I'm writing this report from modified kernel, which contains this
> patch, and I test like 'cat /proc/1/maps' works now.

looks like mm_for_maps() had several fixes since the last security
update that got applied to lenny, see 704b836c for example.

dannf please evaluate if it is severity important. thanks



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Sat Feb 13 16:30:01 2010
Return-path: <users-bounces@lists.fedoraproject.org>
Envelope-to: tom@linux-archive.org
Delivery-date: Sat, 13 Feb 2010 15:46:13 +0200
Received: from bastion.fedoraproject.org ([209.132.182.51]:45612)
by s2.java-tips.org with esmtp (Exim 4.69)
(envelope-from <users-bounces@lists.fedoraproject.org>)
id 1NgIK5-0007Uf-OF
for tom@linux-archive.org; Sat, 13 Feb 2010 15:46:13 +0200
Received: from lists.fedoraproject.org (unknown [192.168.1.21])
by bastion02.phx2.fedoraproject.org (Postfix) with ESMTP id F3C7510F914;
Sat, 13 Feb 2010 14:14:56 +0000 (UTC)
Received: from collab1.fedoraproject.org (localhost.localdomain [127.0.0.1])
by lists.fedoraproject.org (Postfix) with ESMTP id 97DCB32679B;
Sat, 13 Feb 2010 14:14:55 +0000 (UTC)
X-Original-To: users@lists.fedoraproject.org
Delivered-To: users@lists.fedoraproject.org
Received: from smtp-mm1.fedoraproject.org (smtp-mm1.fedoraproject.org
[80.239.156.217])
by lists.fedoraproject.org (Postfix) with ESMTP id 9F6B9326757
for <users@lists.fedoraproject.org>;
Sat, 13 Feb 2010 14:14:53 +0000 (UTC)
Received: from mars.math-info.univ-paris5.fr (mars.math-info.univ-paris5.fr
[193.48.200.18])
by smtp-mm1.fedoraproject.org (Postfix) with ESMTP id 24DF087E64
for <users@lists.fedoraproject.org>;
Sat, 13 Feb 2010 14:14:53 +0000 (UTC)
Received: from dipankar.homelinux.org (localhost [127.0.0.1])
by mars.math-info.univ-paris5.fr (8.14.3/jtpda-5.4) with ESMTP id
o1DEEpjv016279
for <users@lists.fedoraproject.org>; Sat, 13 Feb 2010 15:14:52 +0100
Message-ID: <4B76B3DB.9010909@mi.parisdescartes.fr>
Date: Sat, 13 Feb 2010 15:14:51 +0100
From: =?UTF-8?B?RnJhbsOnb2lzIFBhdHRl?=
<francois.patte@mi.parisdescartes.fr>
Organization: =?UTF-8?B?VW5pdmVyc2l0w6kgUGFyaXMgRGVzY2FydGVz?=
User-Agent: Thunderbird 2.0.0.23 (X11/20090825)
MIME-Version: 1.0
To: Community support for Fedora users <users@lists.fedoraproject.org>
Subject: Re: terminal setting
References: <4B768FEA.8070001@mi.parisdescartes.fr>
<4B76977E.9060403@greshko.com>
In-Reply-To: <4B76977E.9060403@greshko.com>
X-Enigmail-Version: 0.96.0
X-BeenThere: users@lists.fedoraproject.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: Community support for Fedora users <users@lists.fedoraproject.org>
List-Id: Community support for Fedora users <users.lists.fedoraproject.org>
List-Unsubscribe: <https://admin.fedoraproject.org/mailman/listinfo/users>,
<mailto:users-request@lists.fedoraproject.org?subject=unsubscrib e>
List-Archive: <http://lists.fedoraproject.org/pipermail/users>
List-Post: <mailto:users@lists.fedoraproject.org>
List-Help: <mailto:users-request@lists.fedoraproject.org?subject=help>
List-Subscribe: <https://admin.fedoraproject.org/mailman/listinfo/users>,
<mailto:users-request@lists.fedoraproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: users-bounces@lists.fedoraproject.org
Errors-To: users-bounces@lists.fedoraproject.org

LS0tLS1CRUdJTiBQR1AgU0lHTkVEIE1FU1NBR0UtLS0tLQpIYX NoOiBTSEExCgpMZSAxMy8wMi8y
MDEwIDEzOjEzLCBFZCBHcmVzaGtvIGEgw6ljcml0IDoKPiBGcm Fuw6dvaXMgUGF0dGUgd3JvdGU6
Cj4+IEJvbmpvdXIsCj4+Cj4+IEkgd291bGQgbGlrZSB0byBzZX R1cCBteSB0ZXJtaW5hbHMgdG8g
aGF2ZSBhbGlnbmVkIGNvbHVtbnMgd2hlbiBJIHVzZSBscwo+Pi AtbCBjb21tYW5kLgo+Pgo+PiBS
aWdodCBub3cgaXQgbG9va3MgbGlrZSB0aGlzOgo+Pgo+Pgo+Pi Bkcnd4LS0tLS0tICA2IGZwIHVm
ciAgNDA5NiBtYWkgMTcgIDIwMDkgc2F1di1jb25maWcKPj4gZH J3eC0tLS0tLSAgNCBmcCB1ZnIg
IDQwOTYgZMOpYy4gIDMgIDIwMDggc2Nhbi1saXZyZXMKPj4KPj 4gQXMgeW91IGNhbiBzZWU6IHRo
ZSBmaXJzdCBzaXggY29sdW1ucyBhcmUgYWxpZ25lZCwgYnV0IG FzIHRoZXJlIGlzIG9uZQo+PiBt
b3JlIGNoYXJhY3RlciBpbiBkw6ljLiB0aGFuIGluIG1haSwgdG hlIGZvbGxvd2luZyBjb2x1bW5z
IGFyZSBubyBtb3JlCj4+IGFsaWduZWQgYW5kIGl0IGJlY29tZX Mgd29yc3QgaWYgdGhlcmUgYXJl
IDIgbW9yZSBjaGFyYWN0ZXJzLgo+Pgo+PiBJcyB0aGlzIHNldH VwIGNhbiBiZSBkb25lIGFuZCBo
b3c/ICh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yMTQ1Cm h0dHA6Ly93d3cubWF0aC1pbmZv
LnVuaXYtcGFyaXM1LmZyL35wYXR0ZQotLS0tLUJFR0lOIFBHUC BTSUdOQVRVUkUtLS0tLQpWZXJz
aW9uOiBHbnVQRyB2MS40LjkgKEdOVS9MaW51eCkKQ29tbWVudD ogVXNpbmcgR251UEcgd2l0aCBG
ZWRvcmEgLSBodHRwOi8vZW5pZ21haWwubW96ZGV2Lm9yZy8KCm lFWUVBUkVDQUFZRkFrdDJzOXNB
Q2drUWRFNkMyZGhWMkpXYU93Q2ZXdDdCdThlaFhwZ2M4VWpieH Q1MXV3aTYKd004QW9LSGZCdXlF
WEZRU1ZEWW5uNGExQnY1ejJrZEgKPTlvWUkKLS0tLS1FTkQgUE dQIFNJR05BVFVSRS0tLS0tCi0t
IAp1c2VycyBtYWlsaW5nIGxpc3QKdXNlcnNAbGlzdHMuZmVkb3 JhcHJvamVjdC5vcmcKVG8gdW5z
dWJzY3JpYmUgb3IgY2hhbmdlIHN1YnNjcmlwdGlvbiBvcHRpb2 5zOgpodHRwczovL2FkbWluLmZl
ZG9yYXByb2plY3Qub3JnL21haWxtYW4vbGlzdGluZm8vdXNlcn MKR3VpZGVsaW5lczogaHR0cDov
L2ZlZG9yYXByb2plY3Qub3JnL3dpa2kvQ29tbXVuaWNhdGUvTW FpbGluZ0xpc3RHdWlkZWxpbmVz
Cg==
 

Thread Tools




All times are GMT. The time now is 06:17 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org