Thanks Yi Zhang for reporting. We will analyze it and get back. Thanks, Selvin Xavier On Tue, Mar 26, 2024 at 12:21 PM Yi Zhang wrote: > > Hello > > I found this kmemleak issue after system boots up with the latest > linux tree, please help check it and let me know if you need any info, > thanks. > > (gdb) l *(bnxt_re_alloc_pd+0x3d0) > 0x22160 is in bnxt_re_alloc_pd (drivers/infiniband/hw/bnxt_re/ib_verbs.c:678). > 673 goto dbfail; > 674 } > 675 } > 676 > 677 if (!udata) > 678 if (bnxt_re_create_fence_mr(pd)) > 679 ibdev_warn(&rdev->ibdev, > 680 "Failed to create Fence-MR\n"); > 681 active_pds = atomic_inc_return(&rdev->stats.res.pd_count); > 682 if (active_pds > rdev->stats.res.pd_watermark) > > > unreferenced object 0xffffc90006a41000 (size 4096): > comm "systemd-udevd", pid 1233, jiffies 4294779228 > hex dump (first 32 bytes): > 00 e0 43 80 81 88 ff ff 2a 3e 03 00 00 00 00 00 ..C.....*>...... > ea 7b 06 00 00 00 00 00 0a 00 00 00 30 00 00 00 .{..........0... > backtrace (crc cd29ebd4): > [] kmemleak_vmalloc+0x95/0x160 > [] __vmalloc_node_range+0x3fc/0x540 > [] __vmalloc_node+0xb4/0x150 > [] __alloc_pbl+0x199/0x960 [bnxt_re] > [] bnxt_qplib_alloc_init_hwq+0xec9/0x1c20 [bnxt_re] > [] bnxt_qplib_reg_mr+0x245/0x630 [bnxt_re] > [] bnxt_re_create_fence_mr+0x419/0xc90 [bnxt_re] > [] bnxt_re_alloc_pd+0x3d0/0x540 [bnxt_re] > [] __ib_alloc_pd+0xfc/0x5b0 [ib_core] > [] ib_mad_port_open+0x685/0xfb0 [ib_core] > [] ib_mad_init_device+0xf1/0x370 [ib_core] > [] add_client_context+0x2ed/0x440 [ib_core] > [] enable_device_and_get+0x1aa/0x340 [ib_core] > [] ib_register_device+0x1c8/0x3a0 [ib_core] > [] bnxt_re_ib_init+0x401/0x6a0 [bnxt_re] > [] bnxt_re_probe+0x4bc/0x710 [bnxt_re] > unreferenced object 0xffffc90006a71000 (size 4096): > comm "systemd-udevd", pid 1233, jiffies 4294779229 > hex dump (first 32 bytes): > 00 e0 43 80 01 00 00 00 00 00 00 00 00 00 00 00 ..C............. > 01 00 3e 00 01 00 00 00 00 00 00 00 00 00 00 00 ..>............. > backtrace (crc f97dda8f): > [] kmemleak_vmalloc+0x95/0x160 > [] __vmalloc_node_range+0x3fc/0x540 > [] __vmalloc_node+0xb4/0x150 > [] __alloc_pbl+0x1d7/0x960 [bnxt_re] > [] bnxt_qplib_alloc_init_hwq+0xec9/0x1c20 [bnxt_re] > [] bnxt_qplib_reg_mr+0x245/0x630 [bnxt_re] > [] bnxt_re_create_fence_mr+0x419/0xc90 [bnxt_re] > [] bnxt_re_alloc_pd+0x3d0/0x540 [bnxt_re] > [] __ib_alloc_pd+0xfc/0x5b0 [ib_core] > [] ib_mad_port_open+0x685/0xfb0 [ib_core] > [] ib_mad_init_device+0xf1/0x370 [ib_core] > [] add_client_context+0x2ed/0x440 [ib_core] > [] enable_device_and_get+0x1aa/0x340 [ib_core] > [] ib_register_device+0x1c8/0x3a0 [ib_core] > [] bnxt_re_ib_init+0x401/0x6a0 [bnxt_re] > [] bnxt_re_probe+0x4bc/0x710 [bnxt_re] > unreferenced object 0xffff8882b5c5bc00 (size 512): > comm "systemd-udevd", pid 1233, jiffies 4294779229 > hex dump (first 32 bytes): > 00 00 c0 43 82 88 ff ff 00 00 00 00 00 00 00 00 ...C............ > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > backtrace (crc 754e43ab): > [] kmalloc_trace+0x30d/0x3b0 > [] bnxt_re_alloc_mw+0x73/0x280 [bnxt_re] > [] bnxt_re_create_fence_mr+0x49b/0xc90 [bnxt_re] > [] bnxt_re_alloc_pd+0x3d0/0x540 [bnxt_re] > [] __ib_alloc_pd+0xfc/0x5b0 [ib_core] > [] ib_mad_port_open+0x685/0xfb0 [ib_core] > [] ib_mad_init_device+0xf1/0x370 [ib_core] > [] add_client_context+0x2ed/0x440 [ib_core] > [] enable_device_and_get+0x1aa/0x340 [ib_core] > [] ib_register_device+0x1c8/0x3a0 [ib_core] > [] bnxt_re_ib_init+0x401/0x6a0 [bnxt_re] > [] bnxt_re_probe+0x4bc/0x710 [bnxt_re] > [] auxiliary_bus_probe+0xa0/0x110 > [] really_probe+0x1e0/0x920 > [] __driver_probe_device+0x18a/0x3d0 > [] driver_probe_device+0x49/0x120 > unreferenced object 0xffffc90006d4e000 (size 4096): > comm "systemd-udevd", pid 1233, jiffies 4294822916 > hex dump (first 32 bytes): > 00 c0 44 b8 82 88 ff ff 00 00 00 00 00 00 00 00 ..D............. > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > backtrace (crc 48b8bc5a): > [] kmemleak_vmalloc+0x95/0x160 > [] __vmalloc_node_range+0x3fc/0x540 > [] __vmalloc_node+0xb4/0x150 > [] __alloc_pbl+0x199/0x960 [bnxt_re] > [] bnxt_qplib_alloc_init_hwq+0xec9/0x1c20 [bnxt_re] > [] bnxt_qplib_reg_mr+0x245/0x630 [bnxt_re] > [] bnxt_re_create_fence_mr+0x419/0xc90 [bnxt_re] > [] bnxt_re_alloc_pd+0x3d0/0x540 [bnxt_re] > [] __ib_alloc_pd+0xfc/0x5b0 [ib_core] > [] ib_mad_port_open+0x685/0xfb0 [ib_core] > [] ib_mad_init_device+0xf1/0x370 [ib_core] > [] add_client_context+0x2ed/0x440 [ib_core] > [] enable_device_and_get+0x1aa/0x340 [ib_core] > [] ib_register_device+0x1c8/0x3a0 [ib_core] > [] bnxt_re_ib_init+0x401/0x6a0 [bnxt_re] > [] bnxt_re_probe+0x4bc/0x710 [bnxt_re] > unreferenced object 0xffffc90006d59000 (size 4096): > comm "systemd-udevd", pid 1233, jiffies 4294822916 > hex dump (first 32 bytes): > 00 c0 44 b8 02 00 00 00 00 00 00 00 00 00 00 00 ..D............. > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > backtrace (crc 1bc211ce): > [] kmemleak_vmalloc+0x95/0x160 > [] __vmalloc_node_range+0x3fc/0x540 > [] __vmalloc_node+0xb4/0x150 > [] __alloc_pbl+0x1d7/0x960 [bnxt_re] > [] bnxt_qplib_alloc_init_hwq+0xec9/0x1c20 [bnxt_re] > [] bnxt_qplib_reg_mr+0x245/0x630 [bnxt_re] > [] bnxt_re_create_fence_mr+0x419/0xc90 [bnxt_re] > [] bnxt_re_alloc_pd+0x3d0/0x540 [bnxt_re] > [] __ib_alloc_pd+0xfc/0x5b0 [ib_core] > [] ib_mad_port_open+0x685/0xfb0 [ib_core] > [] ib_mad_init_device+0xf1/0x370 [ib_core] > [] add_client_context+0x2ed/0x440 [ib_core] > [] enable_device_and_get+0x1aa/0x340 [ib_core] > [] ib_register_device+0x1c8/0x3a0 [ib_core] > [] bnxt_re_ib_init+0x401/0x6a0 [bnxt_re] > [] bnxt_re_probe+0x4bc/0x710 [bnxt_re] > unreferenced object 0xffff888295670400 (size 512): > comm "systemd-udevd", pid 1233, jiffies 4294822916 > hex dump (first 32 bytes): > 00 00 c0 33 81 88 ff ff 00 00 00 00 00 00 00 00 ...3............ > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > backtrace (crc 5378fcd7): > [] kmalloc_trace+0x30d/0x3b0 > [] bnxt_re_alloc_mw+0x73/0x280 [bnxt_re] > [] bnxt_re_create_fence_mr+0x49b/0xc90 [bnxt_re] > [] bnxt_re_alloc_pd+0x3d0/0x540 [bnxt_re] > [] __ib_alloc_pd+0xfc/0x5b0 [ib_core] > [] ib_mad_port_open+0x685/0xfb0 [ib_core] > [] ib_mad_init_device+0xf1/0x370 [ib_core] > [] add_client_context+0x2ed/0x440 [ib_core] > [] enable_device_and_get+0x1aa/0x340 [ib_core] > [] ib_register_device+0x1c8/0x3a0 [ib_core] > [] bnxt_re_ib_init+0x401/0x6a0 [bnxt_re] > [] bnxt_re_probe+0x4bc/0x710 [bnxt_re] > [] auxiliary_bus_probe+0xa0/0x110 > [] really_probe+0x1e0/0x920 > [] __driver_probe_device+0x18a/0x3d0 > [] driver_probe_device+0x49/0x120 > > -- > Best Regards, > Yi Zhang >