mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Crash with kfree(null) on MacBook? kobject_set_name_vargs
@ 2011-04-10 17:14 Rafał Miłecki
  2011-04-10 17:15 ` Rafał Miłecki
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Rafał Miłecki @ 2011-04-10 17:14 UTC (permalink / raw)
  To: Linux Kernel Mailing List, Andy Botting

I'm writing new axi bus driver and one of the early testers reported
it crashing for him. Andy is using MacBook and backtrace+debugging
pretty clearly point to kfree being called on null string.

The most interesting part of code is:
axi_info("[axi_register_cores][%d] current name: %s\n", i, core->dev.kobj.name);
axi_info("[axi_register_cores][%d] calling dev_set_name with %d, %d
for 0x%03X\n", i, 0/*bus->busnumber*/, dev_id, core->id.id);
err = dev_set_name(&core->dev, "axi%d:%d", 0/*bus->busnumber*/, dev_id);
axi_info("[axi_register_cores][%d] dev_set_name result: %d\n", i, err);

The result is:
[axi_register_cores][1] current name: (null)
[axi_register_cores][1] calling dev_set_name with 0, 0 for 0x812
BUG: unable to handle kernel paging request at ffffeba400000000
IP: [<ffffffff8108c4d4>] kfree+0x2a/0x8a

Whole code: http://pastie.org/1779473
Whole result: http://pastie.org/1779416

Can you help me with this issue, please? On my machine everything goes fine:
[axi_register_cores][1] current name: (null)
[axi_register_cores][1] calling dev_set_name with 0, 0 for 0x812
[axi_register_cores][1] dev_set_name result: 0
[axi_register_cores][1] Register dev for core 0x812

bcopeland on #linux-wireless suggested turning on SLAB or SLUB. Is
this going to provide some interesting info?

-- 
Rafał

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-04-27 14:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-10 17:14 Crash with kfree(null) on MacBook? kobject_set_name_vargs Rafał Miłecki
2011-04-10 17:15 ` Rafał Miłecki
2011-04-10 21:28 ` Bob Copeland
2011-04-11 17:28   ` Rafał Miłecki
2011-04-11 17:41 ` Linus Torvalds
2011-04-11 17:48   ` Linus Torvalds
2011-04-11 19:38   ` Rafał Miłecki
2011-04-27 14:03     ` Steven Rostedt

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®