mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
2d6f45b802
After calling radix_tree_iter_retry(), 'slot' will be set to NULL. This can cause radix_tree_next_slot() to dereference the NULL pointer. Add Konstantin Khlebnikov's test to the regression framework. Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com> Reported-by: Konstantin Khlebnikov <koct9i@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
20 lines
469 B
Makefile
20 lines
469 B
Makefile
|
|
CFLAGS += -I. -g -Wall -D_LGPL_SOURCE
|
|
LDFLAGS += -lpthread -lurcu
|
|
TARGETS = main
|
|
OFILES = main.o radix-tree.o linux.o test.o tag_check.o find_next_bit.o \
|
|
regression1.o regression2.o regression3.o
|
|
|
|
targets: $(TARGETS)
|
|
|
|
main: $(OFILES)
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $(OFILES) -o main
|
|
|
|
clean:
|
|
$(RM) -f $(TARGETS) *.o radix-tree.c
|
|
|
|
$(OFILES): *.h */*.h
|
|
|
|
radix-tree.c: ../../../lib/radix-tree.c
|
|
sed -e 's/^static //' -e 's/__always_inline //' -e 's/inline //' < $< > $@
|