[Samba] Samba stats data can get corrupted during reset

Ralph Boehme slow at samba.org
Wed Oct 8 13:15:19 UTC 2025


Hi Srikanth,

this seems to be a rather complex bug and in case community support 
doesn't cut it, we have a website dedicated to commercial support 
offerings on our website: https://www.samba.org/samba/support/

Cheers!
-slow

-- 
SerNet Samba Team Lead https://sernet.de/
Samba Team Member      https://samba.org/
Samba Support and Dev  https://samba.plus/services/
SAMBA+ packages        https://samba.plus/products/samba


On 10/7/25 7:27 PM, ., Srikanth N S via samba wrote:
> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba/attachments/20251008/5cb22463/OpenPGP_signature.sig>


More information about the samba mailing list