mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Georg Nikodym <georgn@somanetworks.com>
To: Linux/ARM Kernel List <linux-arm-kernel@lists.arm.linux.org.uk>
Cc: linux-kernel@vger.kernel.org
Subject: v2.4.19-rmk4 slab.c: /proc/slabinfo uses broken instead of slab labels
Date: Wed, 27 Nov 2002 15:15:17 -0500	[thread overview]
Message-ID: <200211272015.gARKFHwF006320@localhost.localdomain> (raw)

[-- Attachment #1: Type: text/plain, Size: 1021 bytes --]

In the 2.4.18-2.4.19 timeframe:

	http://linux.bkbits.net:8080/linux-2.4/cset@1.536

brcl (Ben LaHaise, I think) pushed in a change to mm/slab.c which
(amongst other things) adds the following code:

...
	name = cachep->name; 
===>	{
===>	char tmp; 
===>	if (__get_user(tmp, name)) 
===>		name = "broken"; 
===>	}       

	seq_printf(m, "%-17s %6lu %6lu %6u %4lu %4lu %4u",
		name, active_objs, num_objs, cachep->objsize,
		active_slabs, num_slabs, (1<<cachep->gfporder));
...

to s_show() (the stuff that gets called when somebody cat's /proc/slabinfo)

Trouble is that on my ARM platform, the __get_user() call always fails
and all the slabinfo entries are labelled "broken".

For my purposes, ifdef'ing the offending block out will likely be
sufficient (and safe?) but I'd like to know:

1. Is the ARM __get_user() broken?
2. Could I be doing something else broken that is confusing __get_user()?
3. What was/is the intent of the test?  Or stated differently, why on earth
   would cachep->name be a user address?

-g

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

             reply	other threads:[~2002-11-27 20:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-27 20:15 Georg Nikodym [this message]
2002-11-27 21:40 ` Georg Nikodym
2002-11-28 22:34 Manfred Spraul
2002-11-28 22:40 ` Russell King
2002-11-29 18:24   ` Manfred Spraul
2002-11-29 22:51     ` Russell King
2002-11-29 23:33       ` Manfred Spraul

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200211272015.gARKFHwF006320@localhost.localdomain \
    --to=georgn@somanetworks.com \
    --cc=linux-arm-kernel@lists.arm.linux.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®