On 9.5.2019. 11:14, Sebastien Marie wrote:
> On Thu, May 09, 2019 at 10:55:44AM +0200, Hrvoje Popovski wrote:
>>
>> with this diff i'm getting new traces
> 
> it is (somehow) expected.
> 
> the commit that starts showing traces do the following:
> - when there is missing size on free() reports it (with a backtrace to know 
> the caller)
> - but report only a fixed number of calls (5), because else users will be mad
> 
> so by correcting some sizes it makes others calls to free() to be visible.
> 
>> free with zero size: (127)
>> Starting stack trace...
>> free(ffff80000013f800,7f,0,ffff80000013f800,cf43c4f465ef43f8,0) at free+0xd8
>> uhidev_attach(ffff800000071200,ffff80000014ed00,ffff8000224a40a0,ffff800000071200,89eb6e07df884e85,ffff800000071200)
>>  at uhidev_attach+0x1b4
> 
>> free with zero size: (127)
>> Starting stack trace...
>> free(ffff80000013f800,7f,0,ffff80000013f800,cf43c4f465284bc3,0) at free+0xd8
>> hid_report_size(ffff800000070c00,41,0,0,764c887b264d079f,0) at 
>> hid_report_size+0x10f
> 
>> free with zero size: (127)
>> Starting stack trace...
>> free(ffff80000013f800,7f,0,ffff80000013f800,cf43c4f465284185,0) at free+0xd8
>> hid_is_collection(ffff800000070c00,41,ff,10006,a6cb281b8426ee7e,ffffffff81cf60e0)
>>  at hid_is_collection+0xe9
> 
>> free with zero size: (127)
>> Starting stack trace...
>> free(ffff80000013f800,7f,0,ffff80000013f800,cf43c4f465284185,0) at free+0xd8
>> hid_is_collection(ffff800000070c00,41,ff,10001,a6cb281b844568dc,ffffffff81cf6118)
>>  at hid_is_collection+0xe9
> 
>> free with zero size: (127)
>> Starting stack trace...
>> free(ffff80000013f800,7f,0,ffff80000013f800,cf43c4f465284185,0) at free+0xd8
>> hid_is_collection(ffff800000070c00,41,ff,10002,a6cb281b844568fc,3) at 
>> hid_is_collection+0xe9
> 
> I am leaving others free() calls to people that would like to play this game 
> too.
> 

traces from different pc

free with zero size: (2)
Starting stack trace...
free(ffff8000000dc000,2,0,ffff8000000dc000,bccbb3f663e5b90b,0) at free+0xd8
azalia_mixer_delete(ffff8000000d9410,ffff8000000d9410,12eae783e6f10d36,ffff8000000d9410,ffffffff815389e0,ffffffff82004a20)
at azalia_mixer_delete+0x30
azalia_codec_delete(ffff8000000d9410,ffff8000000d9410,fb5581cc816e9ad6,ffff8000000b6c00,ffffffff814e84ed,ffffffff82004a50)
at azalia_codec_delete+0x1d
azalia_init_codecs(ffff8000000b6c00,ffff8000000b6c00,d1d8bb30647efc90,ffffffff82004b90,ffff8000000b6c00,0)
at azalia_init_codecs+0x344
azalia_pci_attach(ffff8000000c6800,ffff8000000b6c00,ffffffff82004b90,ffff8000000c6800,6a09b45b25c7514b,ffff8000000c6800)
at azalia_pci_attach+0x21f
config_attach(ffff8000000c6800,ffffffff81d2c1f8,ffffffff82004b90,ffffffff815ad6c0,fb1ef9caf20ebad0,8000d800)
at config_attach+0x1ee
pci_probe_device(ffff8000000c6800,8000d800,0,0,271a74bc17e998d4,0) at
pci_probe_device+0x4c0
pci_enumerate_bus(ffff8000000c6800,0,0,ffff8000000c6800,7473f8bb614e5ef1,ffff800000026100)
at pci_enumerate_bus+0xb7
config_attach(ffff800000026100,ffffffff81d2be08,ffffffff82004db8,ffffffff8143f230,fb1ef9caf2179750,ffffffff82004db8)
at config_attach+0x1ee
mainbus_attach(0,ffff800000026100,0,0,7473f8bb614e5ef1,0) at
mainbus_attach+0x280
config_attach(0,ffffffff81d2b938,0,0,fb1ef9caf259a843,2c5dc00) at
config_attach+0x1ee
cpu_configure(fb1ef9caf20e9d69,2c5dc00,0,ffff800000027000,ffffffff810dce43,ffffffff82004f00)
at cpu_configure+0x33
main(0,0,2c5dc00,0,10ff8c0,1) at main+0x4a9
end trace frame: 0x0, count: 244
End of stack trace.
free with zero size: (2)
Starting stack trace...
free(ffff8000000b9e00,2,0,ffff8000000b9e00,bccbb3f663f8b5ee,0) at free+0xd8
azalia_codec_delete(ffff8000000d9410,ffff8000000d9410,fb5581cc816e9ad6,ffff8000000b6c00,ffffffff814e8505,ffffffff82004a50)
at azalia_codec_delete+0x35
azalia_init_codecs(ffff8000000b6c00,ffff8000000b6c00,d1d8bb30647efc90,ffffffff82004b90,ffff8000000b6c00,0)
at azalia_init_codecs+0x344
azalia_pci_attach(ffff8000000c6800,ffff8000000b6c00,ffffffff82004b90,ffff8000000c6800,6a09b45b25c7514b,ffff8000000c6800)
at azalia_pci_attach+0x21f
config_attach(ffff8000000c6800,ffffffff81d2c1f8,ffffffff82004b90,ffffffff815ad6c0,fb1ef9caf20ebad0,8000d800)
at config_attach+0x1ee
pci_probe_device(ffff8000000c6800,8000d800,0,0,271a74bc17e998d4,0) at
pci_probe_device+0x4c0
pci_enumerate_bus(ffff8000000c6800,0,0,ffff8000000c6800,7473f8bb614e5ef1,ffff800000026100)
at pci_enumerate_bus+0xb7
config_attach(ffff800000026100,ffffffff81d2be08,ffffffff82004db8,ffffffff8143f230,fb1ef9caf2179750,ffffffff82004db8)
at config_attach+0x1ee
mainbus_attach(0,ffff800000026100,0,0,7473f8bb614e5ef1,0) at
mainbus_attach+0x280
config_attach(0,ffffffff81d2b938,0,0,fb1ef9caf259a843,2c5dc00) at
config_attach+0x1ee
cpu_configure(fb1ef9caf20e9d69,2c5dc00,0,ffff800000027000,ffffffff810dce43,ffffffff82004f00)
at cpu_configure+0x33
main(0,0,2c5dc00,0,10ff8c0,1) at main+0x4a9
end trace frame: 0x0, count: 245
End of stack trace.
free with zero size: (2)
Starting stack trace...
free(ffff800000028890,2,0,ffff800000028890,bccbb3f663f8b5d8,0) at free+0xd8
azalia_codec_delete(ffff8000000d9410,ffff8000000d9410,fb5581cc816e9ad6,ffff8000000b6c00,ffffffff814e8533,ffffffff82004a50)
at azalia_codec_delete+0x63
azalia_init_codecs(ffff8000000b6c00,ffff8000000b6c00,d1d8bb30647efc90,ffffffff82004b90,ffff8000000b6c00,0)
at azalia_init_codecs+0x344
azalia_pci_attach(ffff8000000c6800,ffff8000000b6c00,ffffffff82004b90,ffff8000000c6800,6a09b45b25c7514b,ffff8000000c6800)
at azalia_pci_attach+0x21f
config_attach(ffff8000000c6800,ffffffff81d2c1f8,ffffffff82004b90,ffffffff815ad6c0,fb1ef9caf20ebad0,8000d800)
at config_attach+0x1ee
pci_probe_device(ffff8000000c6800,8000d800,0,0,271a74bc17e998d4,0) at
pci_probe_device+0x4c0
pci_enumerate_bus(ffff8000000c6800,0,0,ffff8000000c6800,7473f8bb614e5ef1,ffff800000026100)
at pci_enumerate_bus+0xb7
config_attach(ffff800000026100,ffffffff81d2be08,ffffffff82004db8,ffffffff8143f230,fb1ef9caf2179750,ffffffff82004db8)
at config_attach+0x1ee
mainbus_attach(0,ffff800000026100,0,0,7473f8bb614e5ef1,0) at
mainbus_attach+0x280
config_attach(0,ffffffff81d2b938,0,0,fb1ef9caf259a843,2c5dc00) at
config_attach+0x1ee
cpu_configure(fb1ef9caf20e9d69,2c5dc00,0,ffff800000027000,ffffffff810dce43,ffffffff82004f00)
at cpu_configure+0x33
main(0,0,2c5dc00,0,10ff8c0,1) at main+0x4a9
end trace frame: 0x0, count: 245
End of stack trace.
free with zero size: (2)
Starting stack trace...
free(ffff800000028c40,2,0,ffff800000028c40,bccbb3f663f8b58a,0) at free+0xd8
azalia_codec_delete(ffff8000000d9410,ffff8000000d9410,fb5581cc816e9ad6,ffff8000000b6c00,ffffffff814e8561,ffffffff82004a50)
at azalia_codec_delete+0x91
azalia_init_codecs(ffff8000000b6c00,ffff8000000b6c00,d1d8bb30647efc90,ffffffff82004b90,ffff8000000b6c00,0)
at azalia_init_codecs+0x344
azalia_pci_attach(ffff8000000c6800,ffff8000000b6c00,ffffffff82004b90,ffff8000000c6800,6a09b45b25c7514b,ffff8000000c6800)
at azalia_pci_attach+0x21f
config_attach(ffff8000000c6800,ffffffff81d2c1f8,ffffffff82004b90,ffffffff815ad6c0,fb1ef9caf20ebad0,8000d800)
at config_attach+0x1ee
pci_probe_device(ffff8000000c6800,8000d800,0,0,271a74bc17e998d4,0) at
pci_probe_device+0x4c0
pci_enumerate_bus(ffff8000000c6800,0,0,ffff8000000c6800,7473f8bb614e5ef1,ffff800000026100)
at pci_enumerate_bus+0xb7
config_attach(ffff800000026100,ffffffff81d2be08,ffffffff82004db8,ffffffff8143f230,fb1ef9caf2179750,ffffffff82004db8)
at config_attach+0x1ee
mainbus_attach(0,ffff800000026100,0,0,7473f8bb614e5ef1,0) at
mainbus_attach+0x280
config_attach(0,ffffffff81d2b938,0,0,fb1ef9caf259a843,2c5dc00) at
config_attach+0x1ee
cpu_configure(fb1ef9caf20e9d69,2c5dc00,0,ffff800000027000,ffffffff810dce43,ffffffff82004f00)
at cpu_configure+0x33
main(0,0,2c5dc00,0,10ff8c0,1) at main+0x4a9
end trace frame: 0x0, count: 245
End of stack trace.
free with zero size: (2)
Starting stack trace...
free(ffff800000028c80,2,0,ffff800000028c80,bccbb3f663f8b564,0) at free+0xd8
azalia_codec_delete(ffff8000000d9410,ffff8000000d9410,fb5581cc816e9ad6,ffff8000000b6c00,ffffffff814e858f,ffffffff82004a50)
at azalia_codec_delete+0xbf
azalia_init_codecs(ffff8000000b6c00,ffff8000000b6c00,d1d8bb30647efc90,ffffffff82004b90,ffff8000000b6c00,0)
at azalia_init_codecs+0x344
azalia_pci_attach(ffff8000000c6800,ffff8000000b6c00,ffffffff82004b90,ffff8000000c6800,6a09b45b25c7514b,ffff8000000c6800)
at azalia_pci_attach+0x21f
config_attach(ffff8000000c6800,ffffffff81d2c1f8,ffffffff82004b90,ffffffff815ad6c0,fb1ef9caf20ebad0,8000d800)
at config_attach+0x1ee
pci_probe_device(ffff8000000c6800,8000d800,0,0,271a74bc17e998d4,0) at
pci_probe_device+0x4c0
pci_enumerate_bus(ffff8000000c6800,0,0,ffff8000000c6800,7473f8bb614e5ef1,ffff800000026100)
at pci_enumerate_bus+0xb7
config_attach(ffff800000026100,ffffffff81d2be08,ffffffff82004db8,ffffffff8143f230,fb1ef9caf2179750,ffffffff82004db8)
at config_attach+0x1ee
mainbus_attach(0,ffff800000026100,0,0,7473f8bb614e5ef1,0) at
mainbus_attach+0x280
config_attach(0,ffffffff81d2b938,0,0,fb1ef9caf259a843,2c5dc00) at
config_attach+0x1ee
cpu_configure(fb1ef9caf20e9d69,2c5dc00,0,ffff800000027000,ffffffff810dce43,ffffffff82004f00)
at cpu_configure+0x33
main(0,0,2c5dc00,0,10ff8c0,1) at main+0x4a9
end trace frame: 0x0, count: 245
End of stack trace.

Reply via email to