public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Stiller <ms@2scale.net>
To: linux-kernel@vger.kernel.org
Subject: WARNING native_smp_call_function mask 2.6.22.6 SMP on Single CPU System
Date: Thu, 06 Sep 2007 13:00:03 +0200	[thread overview]
Message-ID: <1189076403.3595.17.camel@blackberry> (raw)

Hi,

i get the following warning if i call vfree some memory allocated by
vmalloc on a single cpu machine running 2.6.22.6 SMP:

WARNING: at arch/i386/kernel/smp.c:559 native_smp_call_function_mask()
 [<c010e77c>] native_smp_call_function_mask+0x145/0x14a
 [<c01cb32d>] idr_remove+0x102/0x163
 [<c010e43f>] do_flush_tlb_all+0x0/0x59
 [<c010e43f>] do_flush_tlb_all+0x0/0x59
 [<c010ea33>] smp_call_function+0x1c/0x29
 [<c0120922>] on_each_cpu+0x18/0x29
 [<c010e2e9>] flush_tlb_all+0x1b/0x1f
 [<c0155227>] remove_vm_area+0x4c/0x59
 [<c0155252>] __vunmap+0x1e/0xe5
 [<c011ccb7>] printk+0x1b/0x1f
 [<e0b15f21>] ring_release+0x1f7/0x28a [ring]
 [<c0247305>] sock_fasync+0x99/0x146
 [<c024826b>] sock_release+0x14/0x66
 [<c02486a8>] sock_close+0x1e/0x38
 [<c01600ee>] __fput+0x99/0x166
 [<c015db9f>] filp_close+0x3e/0x62
 [<c015ebf0>] sys_close+0x5f/0x9e
 [<c0103dba>] syscall_call+0x7/0xb
 =======================

I use the rvmalloc / rvfree functions copied from usbvideo.c:

static void rvfree(void *mem, unsigned long size)
{
        unsigned long adr;
        unsigned long pages = 0;

#if defined(RING_DEBUG)
        printk("RING: rvfree: %lu bytes\n", size);
#endif

        if (!mem)
                return;

        adr = (unsigned long) mem;
        while ((long) size > 0) {
                ClearPageReserved(vmalloc_to_page((void *)adr));
                pages++;
                adr += PAGE_SIZE;
                size -= PAGE_SIZE;
        }
#if defined(RING_DEBUG)
        printk("RING: rvfree: %lu pages\n", pages);
        printk("RING: rvfree: calling vfree....\n");
#endif
        vfree(mem);   // WARNING occurs here
        printk("RING: rvfree: after vfree....\n");
}


Any clues? 

Please cc me for answers. Thanks in advance. 

-Michael







             reply	other threads:[~2007-09-06 11:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-06 11:00 Michael Stiller [this message]
2007-09-06 12:22 ` WARNING native_smp_call_function mask 2.6.22.6 SMP on Single CPU System Michael Stiller
2007-09-06 12:35 ` Satyam Sharma

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=1189076403.3595.17.camel@blackberry \
    --to=ms@2scale.net \
    --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