Message ID | 20220513192228.2079DC34113@smtp.kernel.org |
---|---|
State | New |
Headers | show |
Series | [merged,mm-stable] mm-page_owner-use-strscpy-instead-of-strlcpy.patch removed from -mm tree | expand |
--- a/mm/page_owner.c~mm-page_owner-use-strscpy-instead-of-strlcpy +++ a/mm/page_owner.c @@ -168,7 +168,7 @@ static inline void __set_page_owner_hand page_owner->pid = current->pid; page_owner->tgid = current->tgid; page_owner->ts_nsec = local_clock(); - strlcpy(page_owner->comm, current->comm, + strscpy(page_owner->comm, current->comm, sizeof(page_owner->comm)); __set_bit(PAGE_EXT_OWNER, &page_ext->flags); __set_bit(PAGE_EXT_OWNER_ALLOCATED, &page_ext->flags);