Open zachariasmaladroit opened 5 years ago
fs/sysfs/dir.c
[ 521.134070] c5 597 ------------[ cut here ]------------ [ 521.134075] c5 597 WARNING: at fs/sysfs/dir.c:31 [ 521.134078] c5 597 [ 521.134084] c5 597 CPU: 5 PID: 597 Comm: init Not tainted 4.4.78-perf #15 [ 521.134088] c5 597 Hardware name: Qualcomm Technologies, Inc. MSM8998 v2.1 MTP (DT) [ 521.134092] c5 597 task: ffffffe733285000 task.stack: ffffffe732f48000 [ 521.134104] c5 597 PC is at sysfs_warn_dup+0x64/0x88 [ 521.134110] c5 597 LR is at sysfs_warn_dup+0x64/0x88 [ 521.134116] c5 597 pc : [<ffffff9e3aa56090>] lr : [<ffffff9e3aa56090>] pstate: 40000145 [ 521.134122] c5 597 sp : ffffffe732f4b930 [ 521.134126] c5 597 x29: ffffffe732f4b930 x28: ffffffe732f48000 [ 521.134132] c5 597 x27: ffffff9e3b962000 x26: 0000000000000001 [ 521.134137] c5 597 x25: ffffffe7ae84a000 x24: ffffffe7ae84a000 [ 521.134143] c5 597 x23: ffffff9e3c828208 x22: ffffffe7ae84a010 [ 521.134147] c5 597 x21: ffffffe7318418e8 x20: ffffffe7b176bd00 [ 521.134152] c5 597 x19: ffffffe7aec63000 x18: 0000000000000000 [ 521.134157] c5 597 x17: 0000007fc3f80b74 x16: ffffff9e3a9eb650 [ 521.134163] c5 597 x15: 0000000000000255 x14: 762f736563697665 [ 521.134167] c5 597 x13: 642f2720656d616e x12: 656c696620657461 [ 521.134172] c5 597 x11: 63696c7075642065 x10: 746165726320746f [ 521.134177] c5 597 x9 : 6e6e6163203a7366 x8 : ffffff9e3ab00490 [ 521.134182] c5 597 x7 : ffffff9e3c8725f8 x6 : 0000000000000078 [ 521.134187] c5 597 x5 : 0000000000000000 x4 : 0000000000000000 [ 521.134192] c5 597 x3 : 0000000000000000 x2 : 0000000000040400 [ 521.134196] c5 597 x1 : 0000000000000000 x0 : 000000000000005e [ 521.134202] c5 597 [ 521.134202] c5 597 PC: 0xffffff9e3aa56050: [ 521.134206] c5 597 6050 d2820002 52901801 72a04801 f9432000 97fddb44 aa0003f3 b4000220 aa0003e1 [ 521.134222] c5 597 6070 d2820002 aa1503e0 97fff318 aa0003e1 b0009c00 aa1403e2 9107e000 97fcae3e [ 521.134238] c5 597 6090 d4210000 aa1303e0 97fdde95 a94153f3 f94013f5 a8c37bfd d65f03c0 d2800001 [ 521.134253] c5 597 60b0 17fffff4 a9bd7bfd 910003fd a90153f3 f90013f5 aa0003f4 aa1e03e0 aa0103f3 [ 521.134269] c5 597 [ 521.134269] c5 597 LR: 0xffffff9e3aa56050: [ 521.134273] c5 597 6050 d2820002 52901801 72a04801 f9432000 97fddb44 aa0003f3 b4000220 aa0003e1 [ 521.134288] c5 597 6070 d2820002 aa1503e0 97fff318 aa0003e1 b0009c00 aa1403e2 9107e000 97fcae3e [ 521.134303] c5 597 6090 d4210000 aa1303e0 97fdde95 a94153f3 f94013f5 a8c37bfd d65f03c0 d2800001 [ 521.134317] c5 597 60b0 17fffff4 a9bd7bfd [ 521.134323] c0 507 audio_notifer_reg_service: service PDR_ADSP is in use [ 521.134327] c5 597 910003fd a90153f3 f90013f5 aa0003f4 aa1e03e0 aa0103f3 [ 521.134340] c5 597 [ 521.134340] c5 597 SP: 0xffffffe732f4b8f0: [ 521.134343] c5 597 b8f0 3aa56090 ffffff9e 32f4b930 ffffffe7 3aa56090 ffffff9e 40000145 00000000 [ 521.134358] c5 597 b910 ffffffff 70ffffff 00000000 00000000 00000000 00000080 fefefefe 63fefefe [ 521.134373] c5 597 b930 32f4b960 ffffffe7 3aa56124 ffffff9e ffffffef ffffffff b0549c10 ffffffe7 [ 521.134388] c5 597 b950 318418e8 ffffffe7 32825c00 ffffffe7 32f4b990 ffffffe7 3ab9515c ffffff9e [ 521.134402] c5 597 [ 521.134406] c5 597 ---[ end trace c74b19d1d08c8474 ]--- [ 521.134409] c5 597 Call trace: [ 521.134413] c5 597 Exception stack(0xffffffe732f4b740 to 0xffffffe732f4b870) [ 521.134417] c5 597 b740: ffffffe7aec63000 0000008000000000 ffffffe732f4b930 ffffff9e3aa56090 [ 521.134421] c5 597 b760: 0000000040000145 000000000000005e ffffff9e3ca8a978 0002e55c00000006 [ 521.134425] c5 597 b780: ffffffe732f4b810 ffffff9e3a905814 ffffffe732f4b8a0 ffffff9e3bdd71f8 [ 521.134429] c5 597 b7a0: ffffff9e3a905820 ffffffe7ae84a010 ffffff9e3c828208 ffffffe7ae84a000 [ 521.134434] c5 597 b7c0: ffffffe7ae84a000 0000000000000001 ffffff9e3b962000 ffffffe732f48000 [ 521.134442] c5 597 b7e0: 0000000000000140 ffffff9e00000000 ffffffe732f4b930 0000000000040400 [ 521.134448] c5 597 b800: 000000000000005e 0000000000000000 0000000000040400 0000000000000000 [ 521.134454] c5 597 b820: 0000000000000000 0000000000000000 0000000000000078 ffffff9e3c8725f8 [ 521.134460] c5 597 b840: ffffff9e3ab00490 6e6e6163203a7366 746165726320746f 63696c7075642065 [ 521.134466] c5 597 b860: 656c696620657461 642f2720656d616e [ 521.134470] c5 597 [<ffffff9e3aa56090>] sysfs_warn_dup+0x64/0x88 [ 521.134477] c5 597 [<ffffff9e3aa56124>] sysfs_create_dir_ns+0x70/0xa4 [ 521.134484] c5 597 [<ffffff9e3ab9515c>] kobject_add_internal+0xd8/0x24c [ 521.134488] c5 597 [<ffffff9e3ab95564>] kobject_add+0xdc/0xf4 [ 521.134494] c5 597 [<ffffff9e3ae7ee38>] device_add+0x140/0x518 [ 521.134498] c5 597 [<ffffff9e3ae7f39c>] device_create_groups_vargs+0xbc/0x100 [ 521.134502] c5 597 [<ffffff9e3ae7f444>] device_create_vargs+0x64/0x78 [ 521.134506] c5 597 [<ffffff9e3ae7f4ec>] device_create+0x94/0xbc [ 521.134513] c5 597 [<ffffff9e3b029120>] create_function_device+0x4c/0x60 [ 521.134517] c5 597 [<ffffff9e3b041e40>] audio_source_alloc_inst+0xc0/0x178 [ 521.134523] c5 597 [<ffffff9e3b025e6c>] usb_get_function_instance+0x6c/0xac [ 521.134529] c5 597 [<ffffff9e3b028498>] function_make+0xa4/0x13c [ 521.134538] c5 597 [<ffffff9e3aa58e84>] configfs_mkdir+0x110/0x2b8 [ 521.134545] c5 597 [<ffffff9e3a9eb5ac>] vfs_mkdir2+0xac/0x108 [ 521.134552] c5 597 [<ffffff9e3a9eb714>] SyS_mkdirat+0xc4/0x10c [ 521.134563] c5 597 [<ffffff9e3a882f60>] __sys_trace_return+0x0/0x4 [ 521.134571] c5 597 kobject_add_internal failed for f_audio_source with -EEXIST, don't try to register things with the same name in the same directory.
lib/kobject.c
[ 521.134585] c5 597 ------------[ cut here ]------------ [ 521.134591] c5 597 WARNING: at lib/kobject.c:240 [ 521.134596] c5 597 [ 521.134603] c5 597 CPU: 5 PID: 597 Comm: init Tainted: G W 4.4.78-perf #15 [ 521.134608] c5 597 Hardware name: Qualcomm Technologies, Inc. MSM8998 v2.1 MTP (DT) [ 521.134612] c5 597 task: ffffffe733285000 task.stack: ffffffe732f48000 [ 521.134617] c5 597 PC is at kobject_add_internal+0x244/0x24c [ 521.134621] c5 597 LR is at kobject_add_internal+0x244/0x24c [ 521.134625] c5 597 pc : [<ffffff9e3ab952c8>] lr : [<ffffff9e3ab952c8>] pstate: 40000145 [ 521.134629] c5 597 sp : ffffffe732f4b990 [ 521.134632] c5 597 x29: ffffffe732f4b990 x28: ffffffe732f48000 [ 521.134637] c5 597 x27: ffffff9e3b962000 x26: 0000000000000001 [ 521.134642] c5 597 x25: ffffffe7ae84a000 x24: ffffffe7ae84a000 [ 521.134647] c5 597 x23: ffffff9e3c828208 x22: ffffffe7ae84a010 [ 521.134652] c5 597 x21: ffffffe7ae84a010 x20: 00000000ffffffef [ 521.134657] c5 597 x19: ffffffe7b0549c10 x18: 0000000000000000 [ 521.134662] c5 597 x17: 0000007fc3f80b74 x16: ffffff9e3a9eb650 [ 521.134667] c5 597 x15: 0000000000000255 x14: 656874206e692065 [ 521.134672] c5 597 x13: 6d616e20656d6173 x12: 2065687420687469 [ 521.134677] c5 597 x11: 772073676e696874 x10: 2072657473696765 [ 521.134682] c5 597 x9 : 72206f7420797274 x8 : ffffff9e3ab00490 [ 521.134687] c5 597 x7 : ffffff9e3c8725f8 x6 : 000000000000009d [ 521.134692] c5 597 x5 : 0000000000000000 x4 : 0000000000000000 [ 521.134700] c5 597 x3 : 0000000000000000 x2 : 0000000000040400 [ 521.134705] c5 597 x1 : 0000000000000000 x0 : 0000000000000083 [ 521.134710] c5 597 [ 521.134710] c5 597 PC: 0xffffff9e3ab95288: [ 521.134715] c5 597 5288 aa1303e0 2a1803f4 97fb03b2 aa1303e0 97fffea1 aa1503e0 97fffe6f 3100469f [ 521.134732] c5 597 52a8 f9000e7f d0007041 911e6021 54fffce1 b00092c0 91267400 f9400262 97f7b1b0 [ 521.134747] c5 597 52c8 d4210000 17ffff7f a9b47bfd 910003fd a90153f3 f000e493 91082273 aa0303f4 [ 521.134763] c5 597 52e8 a9025bf5 aa0203f6 f9400262 f9004fe2 d2800002 aa0003f5 a90a17e4 a90b1fe6 [ 521.134778] c5 597 [ 521.134778] c5 597 LR: 0xffffff9e3ab95288: [ 521.134782] c5 597 5288 aa1303e0 2a1803f4 97fb03b2 aa1303e0 97fffea1 aa1503e0 97fffe6f 3100469f [ 521.134797] c5 597 52a8 f9000e7f d0007041 911e6021 54fffce1 b00092c0 91267400 f9400262 97f7b1b0 [ 521.134811] c5 597 52c8 d4210000 17ffff7f a9b47bfd 910003fd a90153f3 f000e493 91082273 aa0303f4 [ 521.134826] c5 597 52e8 a9025bf5 aa0203f6 f9400262 f9004fe2 d2800002 aa0003f5 a90a17e4 a90b1fe6 [ 521.134841] c5 597 [ 521.134841] c5 597 SP: 0xffffffe732f4b950: [ 521.134844] c5 597 b950 3ab952c8 ffffff9e 32f4b990 ffffffe7 3ab952c8 ffffff9e 40000145 00000000 [ 521.134859] c5 597 b970 00069755 00000000 00000000 00000000 00000000 00000080 3c8725f8 ffffff9e [ 521.134873] c5 597 b990 32f4b9d0 ffffffe7 3ab95564 ffffff9e 00000000 00000000 b0549c10 ffffffe7 [ 521.134888] c5 597 b9b0 3c828208 ffffff9e ae84a010 ffffffe7 3c828208 ffffff9e ae84a000 ffffffe7 [ 521.134903] c5 597 [ 521.134906] c5 597 ---[ end trace c74b19d1d08c8475 ]--- [ 521.134909] c5 597 Call trace: [ 521.134913] c5 597 Exception stack(0xffffffe732f4b7a0 to 0xffffffe732f4b8d0) [ 521.134917] c5 597 b7a0: ffffffe7b0549c10 0000008000000000 ffffffe732f4b990 ffffff9e3ab952c8 [ 521.134921] c5 597 b7c0: 0000000040000145 0000000000000083 ffffff9e3ca8a978 0002fb7400000002 [ 521.134925] c5 597 b7e0: ffffffe732f4b870 ffffff9e3a905814 ffffffe732f4b900 ffffff9e3bdee99d [ 521.134928] c5 597 b800: ffffff9e3a905820 ffffffe7ae84a010 ffffff9e3c828208 ffffffe7ae84a000 [ 521.134933] c5 597 b820: ffffffe7ae84a000 0000000000000001 ffffff9e3b962000 ffffffe732f48000 [ 521.134937] c5 597 b840: 0000000000000140 6e6e616300000000 ffffffe732f4b990 0000000000040400 [ 521.134941] c5 597 b860: 0000000000000083 0000000000000000 0000000000040400 0000000000000000 [ 521.134945] c5 597 b880: 0000000000000000 0000000000000000 000000000000009d ffffff9e3c8725f8 [ 521.134949] c5 597 b8a0: ffffff9e3ab00490 72206f7420797274 2072657473696765 772073676e696874 [ 521.134952] c5 597 b8c0: 2065687420687469 6d616e20656d6173 [ 521.134957] c5 597 [<ffffff9e3ab952c8>] kobject_add_internal+0x244/0x24c [ 521.134961] c5 597 [<ffffff9e3ab95564>] kobject_add+0xdc/0xf4 [ 521.134965] c5 597 [<ffffff9e3ae7ee38>] device_add+0x140/0x518 [ 521.134969] c5 597 [<ffffff9e3ae7f39c>] device_create_groups_vargs+0xbc/0x100 [ 521.134973] c5 597 [<ffffff9e3ae7f444>] device_create_vargs+0x64/0x78 [ 521.134977] c5 597 [<ffffff9e3ae7f4ec>] device_create+0x94/0xbc [ 521.134981] c5 597 [<ffffff9e3b029120>] create_function_device+0x4c/0x60 [ 521.134985] c5 597 [<ffffff9e3b041e40>] audio_source_alloc_inst+0xc0/0x178 [ 521.134990] c5 597 [<ffffff9e3b025e6c>] usb_get_function_instance+0x6c/0xac [ 521.134994] c5 597 [<ffffff9e3b028498>] function_make+0xa4/0x13c [ 521.134997] c5 597 [<ffffff9e3aa58e84>] configfs_mkdir+0x110/0x2b8 [ 521.135001] c5 597 [<ffffff9e3a9eb5ac>] vfs_mkdir2+0xac/0x108 [ 521.135005] c5 597 [<ffffff9e3a9eb714>] SyS_mkdirat+0xc4/0x10c [ 521.135009] c5 597 [<ffffff9e3a882f60>] __sys_trace_return+0x0/0x4 [ 521.135684] c5 597 file system registered
=> "kobject: don't use WARN for registration failures"
fs/sysfs/dir.c
lib/kobject.c
=> "kobject: don't use WARN for registration failures"