Module Name: src Committed By: riastradh Date: Mon Jun 27 03:56:37 UTC 2022
Modified Files: src/sys/kern: kern_ktrace.c Log Message: ktrace(9): Make sure ktrkuser initializes the full ktr_id member. strlcpy does not; strncpy does. However, the member must be NUL-terminated, because kdump uses it, e.g., with printf("%s"), so expicitly set the last byte to NUL. Possible fix for a host of sanitizer complaints in syzkaller. To generate a diff of this commit: cvs rdiff -u -r1.179 -r1.180 src/sys/kern/kern_ktrace.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.