ArKanjo: a tool for detecting function-level Code Duplication in the Linux Kernel
summary
ArKanjo is a new MIT-licensed command-line tool that finds function-level code duplications in the Linux kernel by focusing on C and kernel-specific patterns. It uses a two-stage design—an expensive Preprocessor that analyzes the whole codebase and a fast Query Responder for repeated duplication queries—to scale to the kernel’s 28M+ LoC and enable rapid, actionable results prioritized for maintainability (e.g., copied buggy logic). The authors evaluate ArKanjo on recent kernel versions, show it finds clones missed by generic tools, and report it has helped newcomers make initial kernel fixes.
AI-written summary · about
related talks
24mAnalysing differences in kernel parameters
31mEnhancing Kernel Functional Safety Analysis with KS-nav
38mCopy/Paste detector for source code on JavaScript
47mExploring a complex codebase with AI
25mAuto-Detection of Copied Code from StackOverflow
27mFrom Legacy to Cloud Native: Transforming Applications with Konveyor AI
50mGuide Refactorings With Behavioral Code Analysis
38mKernel Sanitizers Office Hours