mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Borislav Petkov <bp@suse.de>
To: Sudeep Holla <sudeep.holla@arm.com>
Cc: linux-kernel@vger.kernel.org,
	Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
	x86@kernel.org
Subject: Re: [PATCH RFT v2] x86: move cacheinfo sysfs to generic cacheinfo infrastructure
Date: Tue, 24 Feb 2015 18:57:49 +0100	[thread overview]
Message-ID: <20150224175749.GC3575@pd.tnic> (raw)
In-Reply-To: <1424715265-21407-1-git-send-email-sudeep.holla@arm.com>

On Mon, Feb 23, 2015 at 06:14:25PM +0000, Sudeep Holla wrote:
>  - Rebased on v4.0-rc1
>  - Fixed lockdep warning reported by Borislav

You probably have fixed the lockdep splat but not the NULL pointer
dereference which was there in the first mail I sent you. I'd suggest
you find an AMD box with an L3 and do some testing yourself before
sending out another version.

Also, when testing, do a snapshot of the sysfs cache hierarchy by doing:

grep . -EriIn /sys/devices/system/cpu/cpu?/cache/*

before your changes and after and check for differences.

We can't allow ourselves any differences because this is an API.

HTH.

[    2.981740] BUG: unable to handle kernel NULL pointer dereference at 00000000000000f8
[    2.989918] IP: [<ffffffff810141c0>] _populate_cache_leaves+0x440/0x460
[    2.996724] PGD 0 
[    2.998928] Oops: 0002 [#1] PREEMPT SMP 
[    3.003147] Modules linked in:
[    3.006395] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.0.0-rc1+ #1
[    3.012801] Hardware name: MICRO-STAR INTERNATIONAL CO.,LTD MS-7599/870-C45 (MS-7599), BIOS V1.15 03/04/2011
[    3.022871] task: ffff880132138000 ti: ffff880132180000 task.ti: ffff880132180000
[    3.030598] RIP: 0010:[<ffffffff810141c0>]  [<ffffffff810141c0>] _populate_cache_leaves+0x440/0x460
[    3.039942] RSP: 0000:ffff880132183c88  EFLAGS: 00010086
[    3.045395] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00000000ffffffff
[    3.052671] RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000000
[    3.059945] RBP: ffff880132183d28 R08: ffff880136c0a0c0 R09: 0000000000000001
[    3.067221] R10: 0000000000000000 R11: 000000000000001c R12: 0000000000000000
[    3.074495] R13: 000000000000a0c0 R14: ffffffff81ac4f98 R15: 0000000000000001
[    3.081770] FS:  0000000000000000(0000) GS:ffff880136c00000(0000) knlGS:0000000000000000
[    3.090108] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[    3.095996] CR2: 00000000000000f8 CR3: 0000000001a0b000 CR4: 00000000000006f0
[    3.103270] Stack:
[    3.105426]  ffff880132183de4 000000000000a000 000000000000a000 ffff880136c0fbc0
[    3.113272]  0000000000000090 ffff8801322c16b0 0000000000000006 ffff8801322c1720
[    3.121120]  000000000000a0c0 0000000300000000 0bc0003f14000163 00000000000007ff
[    3.128959] Call Trace:
[    3.131548]  [<ffffffff81013d80>] ? cpuid4_cache_lookup_regs+0x3e0/0x3e0
[    3.138390]  [<ffffffff810fd666>] generic_exec_single+0x136/0x1a0
[    3.144625]  [<ffffffff81013d80>] ? cpuid4_cache_lookup_regs+0x3e0/0x3e0
[    3.151466]  [<ffffffff810fd733>] smp_call_function_single+0x63/0xd0
[    3.157960]  [<ffffffff811ab560>] ? __kmalloc+0x160/0x200
[    3.163500]  [<ffffffff81014b72>] populate_cache_leaves+0x22/0x30
[    3.169734]  [<ffffffff813c8feb>] detect_cache_attributes+0x7b/0x1a0
[    3.176230]  [<ffffffff810002e0>] ? do_one_initcall+0x90/0x1f0
[    3.182204]  [<ffffffff81b17076>] ? container_dev_init+0x2f/0x2f
[    3.188352]  [<ffffffff81b170b8>] cacheinfo_sysfs_init+0x42/0x93
[    3.194498]  [<ffffffff81b17076>] ? container_dev_init+0x2f/0x2f
[    3.200649]  [<ffffffff810002f0>] do_one_initcall+0xa0/0x1f0
[    3.206448]  [<ffffffff8109ab00>] ? parse_args+0x150/0x420
[    3.212076]  [<ffffffff81ae5fae>] kernel_init_freeable+0x115/0x19d
[    3.218397]  [<ffffffff8157683f>] ? ret_from_fork+0xf/0xb0
[    3.224025]  [<ffffffff81568b40>] ? rest_init+0xd0/0xd0
[    3.229393]  [<ffffffff81568b4e>] kernel_init+0xe/0xf0
[    3.234674]  [<ffffffff815768ac>] ret_from_fork+0x7c/0xb0
[    3.240214]  [<ffffffff81568b40>] ? rest_init+0xd0/0xd0
[    3.245579] Code: 3c dd 40 4c ac 81 ff c2 48 63 d2 be 06 00 00 00 e8 a6 7c 2b 00 3b 05 24 1f ab 00 89 c2 7d a4 89 c0 
[    3.268135] RIP  [<ffffffff810141c0>] _populate_cache_leaves+0x440/0x460
[    3.275024]  RSP <ffff880132183c88>
[    3.278652] CR2: 00000000000000f8
[    3.282112] ---[ end trace 17992ce30d6a630e ]---
[    3.286872] Kernel panic - not syncing: Fatal exception
[    3.292302] Kernel Offset: disabled
[    3.295934] ---[ end Kernel panic - not syncing: Fatal exception

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.
--

  parent reply	other threads:[~2015-02-24 17:57 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-08  7:50 [PATCH RFT] " Sudeep Holla
2015-01-23 13:55 ` Thomas Gleixner
2015-01-23 18:15   ` Borislav Petkov
2015-02-23 16:36     ` Sudeep Holla
2015-02-23 18:14 ` [PATCH RFT v2] " Sudeep Holla
2015-02-24  7:58   ` Ingo Molnar
2015-02-24  9:30     ` Sudeep Holla
2015-02-24 17:57   ` Borislav Petkov [this message]
2015-02-24 18:09     ` Sudeep Holla
2015-02-24 18:58       ` Borislav Petkov
2015-03-01 22:39     ` Andre Przywara
2015-03-02 10:17       ` Sudeep Holla
2015-03-03 18:45       ` Borislav Petkov
2015-03-03 18:53         ` Tejun Heo
2015-03-03 18:57           ` Borislav Petkov
2015-03-04 11:15             ` Sudeep Holla
2015-03-04 11:27               ` Borislav Petkov
2015-03-04 11:35                 ` Sudeep Holla
2015-03-04  9:52         ` Sudeep Holla
2015-03-04 12:00   ` [PATCH v3] " Sudeep Holla
2015-03-04 12:27     ` Borislav Petkov
2015-03-05  8:16       ` Borislav Petkov
2015-03-05  9:28         ` Sudeep Holla
2015-03-10 11:37           ` Borislav Petkov
2015-03-10 11:53             ` Sudeep Holla
2015-03-10 14:22               ` Sudeep Holla
2015-03-10 14:26                 ` Borislav Petkov
2015-03-10 14:35                   ` Sudeep Holla
2015-03-11 13:36                     ` Borislav Petkov
2015-03-11 15:44                       ` Sudeep Holla
2015-03-11 20:23                         ` Borislav Petkov
2015-03-09 14:46     ` [tip:x86/cpu] x86/cacheinfo: Move cacheinfo sysfs code to generic infrastructure tip-bot for Sudeep Holla

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=20150224175749.GC3575@pd.tnic \
    --to=bp@suse.de \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=sudeep.holla@arm.com \
    --cc=tglx@linutronix.de \
    --cc=x86@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

Powered by JetHome