[Samba] Samba stats data can get corrupted during reset

., Srikanth N S srikanth.nagasubbaraoseetharaman at hpe.com
Tue Oct 7 17:27:34 UTC 2025


Hi,
We have observed that Samba stats data can get corrupted during reset causing all stats to be zero'ed out and no new stats can get added.. Following are the reproduction steps. Please let us know if this is a known issue.


Reproduction steps:

  1.  Setup a samba server (single or clustered)
  2.
start the smbd server with --no-process-group (this is a default flag set in systemctl service)
  3.  Turn on profiling
  4.  Connect clients and have running IO
  5.  monitor/watch your stats with smbstatus -P
  6.  Flush the stats using "smbcontrol all profile flush"
  7.  Try flushing 1-10 times, at some point the stats would no longer increase!
  8.  Checking /var/log/samba/log.smbd, you will see this message multiple times

[2025/08/13 08:28:19.573488,  0] ../../lib/tdb_wrap/tdb_wrap.c:65(tdb_wrap_log)
  tdb(/var/lib/samba/smbprofile.tdb): tdb_expand overflow detected current map_size[4294967295] size[6584]!


  1.  Checking the tdb integrity, shows that it's broken.

[root at ngw-sam1 ~]# tdbtool /var/lib/samba/smbprofile.tdb check
Record offset 696 misaligned length 4294966575
Integrity check for the opened database failed.

Thanks & Regards,
Srikanth NS


More information about the samba mailing list