summaryrefslogtreecommitdiff
path: root/include/linux/rtc
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2026-03-08 22:01:27 +0300
committerIlya Dryomov <idryomov@gmail.com>2026-03-10 14:16:00 +0300
commitc4c22b846eceff05b1129b8844a80310e55a7f87 (patch)
tree0e71fd5d1a386de6d758d36aa336d2d89a9ef033 /include/linux/rtc
parenta5a373705081d7cc6363e16990e2361b0b362314 (diff)
downloadlinux-c4c22b846eceff05b1129b8844a80310e55a7f87.tar.xz
libceph: reject preamble if control segment is empty
While head_onwire_len() has a branch to handle ctrl_len == 0 case, prepare_read_control() always sets up a kvec for the CRC meaning that a non-empty control segment is effectively assumed. All frames that clients deal with meet that assumption, so let's make it official and treat the preamble with an empty control segment as malformed. Cc: stable@vger.kernel.org Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Reviewed-by: Alex Markuze <amarkuze@redhat.com>
Diffstat (limited to 'include/linux/rtc')
0 files changed, 0 insertions, 0 deletions