aboutsummaryrefslogtreecommitdiff
path: root/absl/strings/str_split.h
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2023-12-20 11:47:37 -0800
committerCopybara-Service <copybara-worker@google.com>2023-12-20 11:48:40 -0800
commit7a1898a04fb3ab83b869e7967ddd7721696490a3 (patch)
tree897bf0fc86b71f17e42603c11c0c80b5c232128a /absl/strings/str_split.h
parent299dbc588e4d2a6e23a4f99d5d224c042ab4a9a5 (diff)
downloadabseil-7a1898a04fb3ab83b869e7967ddd7721696490a3.tar.gz
abseil-7a1898a04fb3ab83b869e7967ddd7721696490a3.tar.bz2
abseil-7a1898a04fb3ab83b869e7967ddd7721696490a3.zip
AddressIsReadable: improve comments
Linux kernel's rt_sigprocmask correctly handles an unaligned user address[1]. The original issue was for qemu-user, which seems long irrelevant. Tested locally on an AArch64 CPU and qemu-aarch64-static. The alignment operation actually serves another purpose: when addr resides in the last 7 bytes of a page (unaligned), check only the current page and not the next. Update the comment. [1]: kernel/signal.c `SYSCALL_DEFINE4(rt_sigprocmask` arch/arm64/include/asm/uaccess.h:raw_copy_from_user arch/arm64/lib/copy_template.S "alignment handled by the hardware" PiperOrigin-RevId: 592618320 Change-Id: Ifbd05aba42f46e36e710cca940570213036b3ce0
Diffstat (limited to 'absl/strings/str_split.h')
0 files changed, 0 insertions, 0 deletions