Bug #76066
openNFS service is crashing with buffer overflow error after creating RGW export
0%
Description
NFS service is crashing with buffer overflow error after creating RGW export
```
Apr 07 11:57:07 trial013 ceph-56a1eb86-3278-11f1-9c77-d404e6e7d460-nfs-foo-0-0-trial013-faojgy84822: 07/04/2026 11:57:07 : epoch 69d4f113 : trial013 : ganesha.nfsd-7[main] nfs_start_grace :STATE :EVENT :NFS Server Now IN GRACE, duration 90
Apr 07 11:57:13 trial013 ceph-56a1eb86-3278-11f1-9c77-d404e6e7d460-nfs-foo-0-0-trial013-faojgy84822: 07/04/2026 11:57:13 : epoch 69d4f113 : trial013 : ganesha.nfsd-7[main] nfs_start_grace :STATE :EVENT :grace reload client info completed from backend
Apr 07 11:57:13 trial013 ceph-56a1eb86-3278-11f1-9c77-d404e6e7d460-nfs-foo-0-0-trial013-faojgy84822: 07/04/2026 11:57:13 : epoch 69d4f113 : trial013 : ganesha.nfsd-7[main] nfs_try_lift_grace :STATE :EVENT :check grace:reclaim complete(0) clid count(0)
Apr 07 11:57:19 trial013 ceph-56a1eb86-3278-11f1-9c77-d404e6e7d460-nfs-foo-0-0-trial013-faojgy84822: 07/04/2026 11:57:19 : epoch 69d4f113 : trial013 : ganesha.nfsd-7[main] nfs_lift_grace_locked :STATE :EVENT :NFS Server Now NOT IN GRACE
Apr 07 11:57:19 trial013 ceph-56a1eb86-3278-11f1-9c77-d404e6e7d460-nfs-foo-0-0-trial013-faojgy84822: * buffer overflow detected *: terminated
```
Logs after enabling debug logs
```
Apr 13 16:22:54 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:22:54 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] rados_cluster_init :CLIENT ID :EVENT :rados-cluster recovery backend initialization complete
Apr 13 16:22:54 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:22:54 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] nfs_start_grace :STATE :EVENT :NFS Server Now IN GRACE, duration 90
Apr 13 16:22:57 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:22:57 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] nfs4_recovery_load_clids :STATE :DEBUG :Load recovery cli (nil)
Apr 13 16:23:00 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:00 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] rados_cluster_read_clids :CLIENT ID :DEBUG :New recovery object rec-000000000000000c:node0
Apr 13 16:23:00 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:00 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] rados_cluster_read_clids :CLIENT ID :DEBUG :Recovery object for reclaim use rec-000000000000000b:node0
Apr 13 16:23:00 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:00 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] nfs_start_grace :STATE :EVENT :grace reload client info completed from backend
Apr 13 16:23:00 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:00 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] nfs_try_lift_grace :STATE :EVENT :check grace:reclaim complete(0) clid count(0)
Apr 13 16:23:06 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:06 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] rados_cluster_end_grace :CLIENT ID :DEBUG :Recovery object removed: rec-000000000000000b:node0
Apr 13 16:23:06 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:06 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] nfs_lift_grace_locked :STATE :EVENT :NFS Server Now NOT IN GRACE
Apr 13 16:23:06 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:06 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] load_fsal :NFS STARTUP :DEBUG :Loading FSAL RGW with /usr/lib64/ganesha/libfsalrgw.so
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] init :FSAL :DEBUG :RGW module registering.
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] init_config :FSAL :DEBUG :RGW module setup.
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG :FileSystem info for FSAL RGW {
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : maxfilesize = 7FFFFFFFFFFFFFFF
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : maxlink = 8
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : maxnamelen = 1024
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : maxpathlen = 1024
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : no_trunc = 1
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : chown_restricted = 0
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : case_insensitive = 0
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : case_preserving = 1
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : link_support = 0
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : symlink_support = 0
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : lock_support = 0
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : lock_support_async_block = 0
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : named_attr = 1
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : unique_handles = 1
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : acl_support = 0
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : cansettime = 1
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : homogenous = 1
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : supported_attrs = 111DFCE
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : maxread = 67108864
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : maxwrite = 67108864
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : umask = 0
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : auth_exportpath_xdev = 0
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : delegations = 0
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : pnfs_mds = 0
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : pnfs_ds = 0
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : fsal_trace = 0
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : fsal_grace = 0
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : expire_time_parent = -1
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : xattr_support = 1
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG : readdir_mode = 1
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: 13/04/2026 16:23:07 : epoch 69dd185e : trial024 : ganesha.nfsd-7[main] display_fsinfo :FSAL :DEBUG :}
Apr 13 16:23:07 trial024 ceph-169c992d-3753-11f1-88f7-d404e6e7d460-nfs-foo-0-0-trial024-jpcgep67076: * buffer overflow detected *: terminated
```
SB Updated by Shweta Bhosale 8 months ago
Its with latest ceph main image.
[ceph: root@trial024 /]# ceph version
ceph version 21.0.0-292-ga6063b54 (a6063b54a0cf949c8f5de44065ea8d57f3b646bf) umbrella (dev - RelWithDebInfo)
[ceph: root@trial024 /]#
[ceph: root@trial024 /]# /usr/bin/ganesha.nfsd -v
NFS-Ganesha Release = V7.0
[ceph: root@trial024 /]# exit
exit
[root@trial024 ~]# cat /etc/redhat-release
CentOS Stream release 9
[root@trial024 ~]#
MB Updated by Matt Benjamin 6 months ago
redouane shared:
Redouane Kachach [9:42 AM]
I think it's this code:
if (RGWFSM.cluster) {
clen = strlen(RGWFSM.cluster) + 8; <--- this +8 is smaller than the "—cluser=" which has 10 chars
cluster = (char *)gsh_malloc(clen);
(void)sprintf(cluster, "--cluster=%s",
RGWFSM.cluster);
argv[argc] = cluster;
++argc;
}[9:43 AM]fro this file: https://github.com/nfs-ganesha/nfs-ganesha/blob/next/src/FSAL/FSAL_RGW/main.c
RK Updated by Redouane Kachach Elhicou 6 months ago · Edited
Just FYI: I opened the following issue on NFS ganesha repo https://github.com/nfs-ganesha/nfs-ganesha/issues/1398
MB Updated by Matt Benjamin 6 months ago
- Assignee set to Matt Benjamin
MB Updated by Matt Benjamin 6 months ago
- Status changed from New to Fix Under Review