From: Xiaotian Feng <xtfeng-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: "Rafael J. Wysocki" <rjw-KKrjLPT3xs0@public.gmane.org>,
htd-HjJ2MNWy62to6+H+lsi3Gti2O/JbrIOy@public.gmane.org
Cc: Linux Kernel Mailing List
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Kernel Testers List
<kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org
Subject: Re: [Bug #15196] kmem_cache_create: duplicate cache ccid2_h
Date: Mon, 1 Feb 2010 11:30:02 +0800 [thread overview]
Message-ID: <7b6bb4a51001311930i7d72f60dj3b15ca3e1a715607@mail.gmail.com> (raw)
In-Reply-To: <d3IDKWHT5gE.A.8sB.Q7hZLB@chimera>
On Mon, Feb 1, 2010 at 8:22 AM, Rafael J. Wysocki <rjw-KKrjLPT3xs0@public.gmane.org> wrote:
> This message has been generated automatically as a part of a report
> of recent regressions.
>
> The following bug entry is on the current list of known regressions
> from 2.6.32. Please verify if it still should be listed and let me know
> (either way).
>
>
> Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=15196
> Subject : kmem_cache_create: duplicate cache ccid2_h
> Submitter : Heinz Diehl <htd-HjJ2MNWy62to6+H+lsi3Gti2O/JbrIOy@public.gmane.org>
> Date : 2010-01-30 18:33 (2 days old)
> References : http://marc.info/?l=linux-kernel&m=126487640324942&w=4
Cced Neil,
I think this one is introduced by commit
de4ef86cfce60d2250111f34f8a084e769f23b16,
passing char *slab_name_fmt as function parameter, but vsnprintf is
using sizeof(slab_name_fmt),
which is 8 (or 4 in 32bit kernel) instead of 32 as old version.
Does following patch resolve this bug, Heinz?
diff --git a/net/dccp/ccid.c b/net/dccp/ccid.c
index 57dfb9c..6e52879 100644
--- a/net/dccp/ccid.c
+++ b/net/dccp/ccid.c
@@ -77,13 +77,14 @@ int ccid_getsockopt_builtin_ccids(struct sock *sk, int len,
return err;
}
-static struct kmem_cache *ccid_kmem_cache_create(int obj_size, char
*slab_name_fmt, const char *fmt,...)
+static struct kmem_cache *ccid_kmem_cache_create(int obj_size, char
*slab_name_fmt,
+ int length,const char *fmt,...)
{
struct kmem_cache *slab;
va_list args;
va_start(args, fmt);
- vsnprintf(slab_name_fmt, sizeof(slab_name_fmt), fmt, args);
+ vsnprintf(slab_name_fmt, length, fmt, args);
va_end(args);
slab = kmem_cache_create(slab_name_fmt, sizeof(struct ccid) +
obj_size, 0,
@@ -104,6 +105,7 @@ static int ccid_activate(struct ccid_operations *ccid_ops)
ccid_ops->ccid_hc_rx_slab =
ccid_kmem_cache_create(ccid_ops->ccid_hc_rx_obj_size,
ccid_ops->ccid_hc_rx_slab_name,
+
sizeof(ccid_ops->ccid_hc_rx_slab_name),
"ccid%u_hc_rx_sock",
ccid_ops->ccid_id);
if (ccid_ops->ccid_hc_rx_slab == NULL)
@@ -112,6 +114,7 @@ static int ccid_activate(struct ccid_operations *ccid_ops)
ccid_ops->ccid_hc_tx_slab =
ccid_kmem_cache_create(ccid_ops->ccid_hc_tx_obj_size,
ccid_ops->ccid_hc_tx_slab_name,
+
sizeof(ccid_ops->ccid_hc_tx_slab_name),
"ccid%u_hc_tx_sock",
ccid_ops->ccid_id);
if (ccid_ops->ccid_hc_tx_slab == NULL)
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
next prev parent reply other threads:[~2010-02-01 3:30 UTC|newest]
Thread overview: 75+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-01 0:18 2.6.33-rc6: Reported regressions from 2.6.32 Rafael J. Wysocki
2010-02-01 0:19 ` [Bug #14791] Something has been broken in the network stack this week Rafael J. Wysocki
2010-02-01 0:46 ` Ben Hutchings
2010-02-01 0:22 ` [Bug #14999] possible circular locking dependency detected in rfkill at suspend Rafael J. Wysocki
2010-02-01 0:22 ` [Bug #15025] Oops in ext4 driver Rafael J. Wysocki
2010-02-01 0:22 ` [Bug #14949] drm_vm.c:drm_mmap: possible circular locking dependency detected Rafael J. Wysocki
2010-02-01 18:01 ` Borislav Petkov
[not found] ` <9ea470501002011001s7734a20ft4dd5d181baf714c3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-02-02 20:46 ` Rafael J. Wysocki
2010-02-02 20:58 ` Borislav Petkov
[not found] ` <20100202205857.GA30024-f9CnO7I+Q6zU6FkGJEIX5A@public.gmane.org>
2010-02-02 21:12 ` Rafael J. Wysocki
2010-02-03 2:18 ` Greg KH
2010-02-01 0:22 ` [Bug #14950] tbench regression with 2.6.33-rc1 Rafael J. Wysocki
2010-02-01 7:57 ` Mike Galbraith
[not found] ` <1265011035.6220.8.camel-YqMYhexLQo1vAv1Ojkdn7Q@public.gmane.org>
2010-02-02 20:45 ` Rafael J. Wysocki
2010-02-01 0:22 ` [Bug #15036] soft lockup in dmesg after suspend/resume Rafael J. Wysocki
2010-02-01 0:22 ` [Bug #15039] leds_alix2: can't allocate I/O for GPIO Rafael J. Wysocki
2010-02-01 0:22 ` [Bug #14937] WARNING: at kernel/lockdep.c:2830 Rafael J. Wysocki
2010-02-01 0:22 ` [Bug #14792] Misdetection of the TV output Rafael J. Wysocki
2010-02-01 0:22 ` [Bug #15114] X.org hang with [drm:i915_gem_do_execbuffer] *ERROR* in dmesg Rafael J. Wysocki
2010-02-01 0:22 ` [Bug #15124] PCI host bridge windows ignored (works with pci=use_crs) Rafael J. Wysocki
2010-02-01 5:40 ` Yinghai Lu
2010-02-02 20:42 ` Rafael J. Wysocki
2010-02-02 20:50 ` Jeff Garrett
[not found] ` <20100202205031.GB13949-184d8XiO+QJg9hUCZPvPmw@public.gmane.org>
2010-02-02 21:13 ` Rafael J. Wysocki
2010-02-02 20:55 ` Bjorn Helgaas
2010-02-02 21:15 ` Rafael J. Wysocki
2010-02-01 0:22 ` [Bug #15119] iwl_bg_scan_completed: WARN on scan complete Rafael J. Wysocki
2010-02-01 0:22 ` [Bug #15076] System panic under load with clockevents_program_event Rafael J. Wysocki
2010-02-01 7:15 ` okias
[not found] ` <c2673ca61001312315s3e50611fm81171ddca6d19477-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-02-02 20:44 ` Rafael J. Wysocki
2010-02-01 0:22 ` [Bug #15043] Display goes off with i915.powersave=1 after suspend-resume Rafael J. Wysocki
2010-02-04 20:08 ` Soeren Sonnenburg
2010-02-04 20:42 ` Rafael J. Wysocki
[not found] ` <201002042142.02127.rjw-KKrjLPT3xs0@public.gmane.org>
2010-02-05 19:29 ` Jesse Barnes
2010-02-06 5:11 ` Soeren Sonnenburg
2010-02-06 5:53 ` Soeren Sonnenburg
2010-02-01 0:22 ` [Bug #15138] evdev regression on macbook Rafael J. Wysocki
2010-02-01 0:22 ` [Bug #15125] hung task - jbd2/dm-1-8 (during raid rebuild) Rafael J. Wysocki
2010-02-01 0:42 ` Michael Breuer
2010-02-01 17:39 ` Michael Breuer
[not found] ` <4B6711D0.4060300-P//MSfjsEjDQT0dZR+AlfA@public.gmane.org>
2010-02-02 20:42 ` Rafael J. Wysocki
2010-02-01 0:22 ` [Bug #15139] e1000: transmit queue 0 timed out Rafael J. Wysocki
2010-02-01 0:22 ` [Bug #15144] HDA Intel Audio hang on boot Rafael J. Wysocki
2010-02-01 2:01 ` Sid Boyce
[not found] ` <4B6635F1.8060909-QgLWrMLu8clzjhtm8Ag3mw@public.gmane.org>
2010-02-01 6:43 ` Takashi Iwai
[not found] ` <s5h3a1lh2wr.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
2010-02-02 20:40 ` Rafael J. Wysocki
[not found] ` <201002022140.06721.rjw-KKrjLPT3xs0@public.gmane.org>
2010-02-03 2:37 ` Sid Boyce
2010-02-14 20:29 ` Sid Boyce
2010-02-14 21:50 ` Rafael J. Wysocki
2010-02-01 0:22 ` [Bug #15142] "INFO: possible circular locking dependency detected" Rafael J. Wysocki
2010-02-01 0:22 ` [Bug #15195] kernel BUG at include/net/netns/generic.h:41, pfkey_create+0x36/0x18b [af_key] Rafael J. Wysocki
2010-02-01 0:22 ` [Bug #15192] netperf ~50% regression with 2.6.33-rc1, bisect to 1b9508f Rafael J. Wysocki
2010-02-01 8:04 ` Mike Galbraith
[not found] ` <1265011447.6220.15.camel-YqMYhexLQo1vAv1Ojkdn7Q@public.gmane.org>
2010-02-02 20:38 ` Rafael J. Wysocki
2010-02-20 7:52 ` Lin Ming
2010-02-22 4:59 ` Mike Galbraith
2010-02-01 0:22 ` [Bug #15200] NFS problems in 2.6.33-rc6: Unknown error 526 Rafael J. Wysocki
2010-02-01 0:22 ` [Bug #15199] sata_nv and no /dev files Rafael J. Wysocki
2010-02-01 0:22 ` [Bug #15198] Radeon KMS regression Rafael J. Wysocki
2010-02-02 0:04 ` Kevin Winchester
[not found] ` <1265069090.1515.1.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2010-02-02 20:25 ` Rafael J. Wysocki
2010-02-01 0:22 ` [Bug #15196] kmem_cache_create: duplicate cache ccid2_h Rafael J. Wysocki
2010-02-01 3:30 ` Xiaotian Feng [this message]
[not found] ` <7b6bb4a51001311930i7d72f60dj3b15ca3e1a715607-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-02-01 7:20 ` David Miller
2010-02-01 11:55 ` Neil Horman
2010-02-01 12:49 ` David Miller
[not found] ` <20100201.044911.15611947.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2010-02-01 13:01 ` Neil Horman
2010-02-01 15:06 ` Heinz Diehl
[not found] ` <20100201150605.GA6175-HjJ2MNWy62to6+H+lsi3Gti2O/JbrIOy@public.gmane.org>
2010-02-07 10:54 ` Heinz Diehl
[not found] ` <20100207105448.GA6623-HjJ2MNWy62to6+H+lsi3Gti2O/JbrIOy@public.gmane.org>
2010-02-07 11:42 ` Rafael J. Wysocki
2010-02-01 0:22 ` [Bug #15202] lockdep warning during elevator_switch Rafael J. Wysocki
-- strict thread matches above, loose matches on Subject: below --
2010-02-07 22:16 2.6.33-rc7: Reported regressions from 2.6.32 Rafael J. Wysocki
2010-02-07 22:28 ` [Bug #15196] kmem_cache_create: duplicate cache ccid2_h Rafael J. Wysocki
2010-02-08 7:15 ` Heinz Diehl
[not found] ` <20100208071515.GA6473-HjJ2MNWy62to6+H+lsi3Gti2O/JbrIOy@public.gmane.org>
2010-02-08 11:04 ` Rafael J. Wysocki
[not found] ` <201002081204.28039.rjw-KKrjLPT3xs0@public.gmane.org>
2010-02-08 20:34 ` David Miller
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=7b6bb4a51001311930i7d72f60dj3b15ca3e1a715607@mail.gmail.com \
--to=xtfeng-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=htd-HjJ2MNWy62to6+H+lsi3Gti2O/JbrIOy@public.gmane.org \
--cc=kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org \
--cc=rjw-KKrjLPT3xs0@public.gmane.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;
as well as URLs for NNTP newsgroup(s).