Bug 216509

Summary: KASAN: add tests for kmalloc_track_caller
Product: Memory Management Reporter: Andrey Konovalov (andreyknvl)
Component: SanitizersAssignee: MM/Sanitizers virtual assignee (mm_sanitizers)
Status: RESOLVED CODE_FIX    
Severity: normal CC: kasan-dev
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: upstream Subsystem:
Regression: No Bisected commit-id:

Description Andrey Konovalov 2022-09-20 19:27:21 UTC
As per [1], KASAN has been missing annotations for __kmalloc_track_caller and __kmalloc_node_track_caller. Add KASAN tests that check that these functions properly poison memory.

[1] https://lore.kernel.org/all/20220817101826.236819-6-42.hyeyoo@gmail.com/