The commit is pushed to "branch-rh10-6.12.0-55.52.1.5.x.vz10-ovz" and will
appear at [email protected]:openvz/vzkernel.git
after rh10-6.12.0-55.52.1.5.11.vz10
------>
commit 693e93af516224f4ba51a49191191da02dcde774
Author: Konstantin Khorenko <[email protected]>
Date: Mon Mar 23 12:20:58 2026 +0100
fs/fuse kio: convert _inline_buffer[0] to flexible array member
Zero-length arrays cause FORTIFY_SOURCE __write_overflow_field warnings
on every memcpy into _inline_buffer, because __builtin_object_size
returns 0 for [0] arrays. Converting to C99 flexible array members ([])
makes the size "unknown" to the compiler, silencing the false positives
in pcs_sock_io.c, pcs_rpc.c, pcs_cs.c and pcs_krpc.c.
Fixes: 923a394f288cc ("fuse kio: Add pcs engine combo v0.8")
https://virtuozzo.atlassian.net/browse/VSTOR-127512
Signed-off-by: Konstantin Khorenko <[email protected]>
Reviewed-by: Vasileios Almpanis <[email protected]>
Feature: vStorage
---
fs/fuse/kio/pcs/pcs_sock_io.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/fuse/kio/pcs/pcs_sock_io.h b/fs/fuse/kio/pcs/pcs_sock_io.h
index 422229fb3963d..d894aebdca7f5 100644
--- a/fs/fuse/kio/pcs/pcs_sock_io.h
+++ b/fs/fuse/kio/pcs/pcs_sock_io.h
@@ -84,7 +84,7 @@ struct pcs_msg
short _inline_len;
struct kvec _inline_kv;
- char _inline_buffer[0];
+ char _inline_buffer[];
};
static inline void * pcs_msg_aligned_data(struct pcs_msg * msg, int offset)
@@ -157,7 +157,7 @@ struct pcs_sockio
void (*write_wakeup)(struct pcs_sockio *);
struct rcu_head rcu;
- char _inline_buffer[0];
+ char _inline_buffer[];
};
void pcs_sk_data_ready(struct sock *sk);
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel