All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shiju Jose <shiju.jose@huawei.com>
To: Borislav Petkov <bp@alien8.de>
Cc: "linux-edac@vger.kernel.org" <linux-edac@vger.kernel.org>,
	"tony.luck@intel.com" <tony.luck@intel.com>,
	"lenb@kernel.org" <lenb@kernel.org>,
	"leo.duran@amd.com" <leo.duran@amd.com>,
	"Yazen.Ghannam@amd.com" <Yazen.Ghannam@amd.com>,
	"mchehab@kernel.org" <mchehab@kernel.org>,
	"dave.jiang@intel.com" <dave.jiang@intel.com>,
	"Jonathan Cameron" <jonathan.cameron@huawei.com>,
	"linux-cxl@vger.kernel.org" <linux-cxl@vger.kernel.org>,
	Linuxarm <linuxarm@huawei.com>,
	tanxiaofei <tanxiaofei@huawei.com>,
	"Zengtao (B)" <prime.zeng@hisilicon.com>
Subject: RE: [PATCH v2 1/1] EDAC: Fix lockdep splat caused by edac features code
Date: Mon, 30 Jun 2025 08:36:51 +0000	[thread overview]
Message-ID: <20cced073d9b43ea907c21359bb77304@huawei.com> (raw)
In-Reply-To: <20250628145433.GEaGACKVlsfyRegTw6@fat_crate.local>

>-----Original Message-----
>From: Borislav Petkov <bp@alien8.de>
>Sent: 28 June 2025 15:55
>To: Shiju Jose <shiju.jose@huawei.com>
>Cc: linux-edac@vger.kernel.org; tony.luck@intel.com; lenb@kernel.org;
>leo.duran@amd.com; Yazen.Ghannam@amd.com; mchehab@kernel.org;
>dave.jiang@intel.com; Jonathan Cameron <jonathan.cameron@huawei.com>;
>linux-cxl@vger.kernel.org; Linuxarm <linuxarm@huawei.com>; tanxiaofei
><tanxiaofei@huawei.com>; Zengtao (B) <prime.zeng@hisilicon.com>
>Subject: Re: [PATCH v2 1/1] EDAC: Fix lockdep splat caused by edac features
>code
>
>On Thu, Jun 26, 2025 at 11:13:44AM +0100, shiju.jose@huawei.com wrote:
>> From: Shiju Jose <shiju.jose@huawei.com>
>>
>> Fix the lockdep splat caused by missing sysfs_attr_init() calls for
>> the recently added EDAC feature's sysfs attributes.
>>
>> In lockdep_init_map_type(), the check for the lock-class key if
>> (!static_obj(key) && !is_dynamic_key(key)) causes the splat.
>>
>> Backtrace:
>> RIP: 0010:lockdep_init_map_type+0x131/0x270
>> Call Trace:
>>  __kernfs_create_file+0x77/0xf0
>> sysfs_add_file_mode_ns+0x86/0x140
>> internal_create_group+0x1cc/0x4b0
>> internal_create_groups+0x42/0xa0
>> device_add+0x310/0x860
>> ? __init_waitqueue_head+0x4a/0x60
>> edac_dev_register+0x3ff/0x480
>> devm_cxl_memdev_edac_register+0x509/0x640 [cxl_core] ?
>> lock_acquire+0xc4/0x2d0 ? find_held_lock+0x2b/0x80 ?
>> cxl_mem_probe+0x21e/0x360 [cxl_mem] ? cxl_mem_probe+0x21e/0x360
>> [cxl_mem] ? lockdep_hardirqs_on+0x78/0x100 ?
>cxl_mem_probe+0x226/0x360
>> [cxl_mem]
>> cxl_mem_probe+0x226/0x360 [cxl_mem]
>>
>> Fixes: f90b738166fe ("EDAC: Add scrub control feature")
>> Fixes: bcbd069b11b0 ("EDAC: Add a Error Check Scrub control feature")
>> Fixes: 699ea5219c4b ("EDAC: Add a memory repair control feature")
>> Reported-by: Dave Jiang <dave.jiang@intel.com>
>> Suggested-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
>> Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
>
>Applied, thanks.
>
>While you're here: please make all those attributes static like in this patch:
>
>https://lore.kernel.org/r/20250620114135.4017183-1-arnd@kernel.org
>
>which I've already applied - you can base stuff ontop of edac-for-next.

Thanks Boris.
I will check and modify the attributes as static.

Thanks,
Shiju

>
>Thx.
>
>--
>Regards/Gruss,
>    Boris.
>
>https://people.kernel.org/tglx/notes-about-netiquette


      reply	other threads:[~2025-06-30  8:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-26 10:13 [PATCH v2 1/1] EDAC: Fix lockdep splat caused by edac features code shiju.jose
2025-06-26 12:51 ` Jonathan Cameron
2025-06-28 14:54 ` Borislav Petkov
2025-06-30  8:36   ` Shiju Jose [this message]

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=20cced073d9b43ea907c21359bb77304@huawei.com \
    --to=shiju.jose@huawei.com \
    --cc=Yazen.Ghannam@amd.com \
    --cc=bp@alien8.de \
    --cc=dave.jiang@intel.com \
    --cc=jonathan.cameron@huawei.com \
    --cc=lenb@kernel.org \
    --cc=leo.duran@amd.com \
    --cc=linux-cxl@vger.kernel.org \
    --cc=linux-edac@vger.kernel.org \
    --cc=linuxarm@huawei.com \
    --cc=mchehab@kernel.org \
    --cc=prime.zeng@hisilicon.com \
    --cc=tanxiaofei@huawei.com \
    --cc=tony.luck@intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.