From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42E57C433F5 for ; Tue, 10 May 2022 17:20:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347927AbiEJRYg (ORCPT ); Tue, 10 May 2022 13:24:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237841AbiEJRY3 (ORCPT ); Tue, 10 May 2022 13:24:29 -0400 Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CE2F268652 for ; Tue, 10 May 2022 10:20:32 -0700 (PDT) Received: by mail-il1-x130.google.com with SMTP id 3so8838125ily.2 for ; Tue, 10 May 2022 10:20:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qBpP6H1QXIcItowN4taveL7xKKbFDSnKJ/RJbBSFPLc=; b=Lt7mUYnnSclD1NWgc2asYmgfRPG7Azod9mS1i2Jh8ultjaohoNhp9mUqvPMvwKfeFX +3lH2aXb4zAOEjHUEIh/QVpMfpb9lKwD1l33mRtYpWmJOuh9xpwJWcEVBzirx6yRiesk WDtra/VPQTon4LSEOjPwOfjDj5UL5OodfpB/IY8DYaUQSBbceMfgj7BfdTiPDcbWkcll t5vePG3fWKJma1cjQnbkPeCrEoMcTseLIfxwK+ZqjFpnr0DHujza42/uicb0xoV9VzGW pTeZVOaE5ChLPaILdSZp6y/jgaoW5QXbz0KwNageXa1xo4t9su4rAvd/x9qBn+UIntVt 3dog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qBpP6H1QXIcItowN4taveL7xKKbFDSnKJ/RJbBSFPLc=; b=XcdGTK5NSZrP8BRWtIvbxicU8U7aQ8CnFkpBye5ssuBbPW8Du7LnlcF+aWY13q2y2a 6ejC20kbazbn5t4ShFSPJkRf4aSoj9GDuJBVApE9VGkgoQoR1M/YlXgv7Gws/9rbbCjS X3NEgOxwGc1+KXWjTzYxcsYXbHnT2Ih20YJIsvvDelQgacNfDrm/JpuJBfdntnMZBbr8 wUQbXdeQYPZozHVa4aFYi3g6HZCze4WcZgpXX/gNVw7pzBCAcBebQzWNMRULAPY7JgnS xX+YWFGF+PlqjCVVn1DkuG7A/QOzZc2E39luBaTZX5iYn0vWlOhmuDqzYBe/oFGWYqBb hjPw== X-Gm-Message-State: AOAM533z9cATzjlHLYepb6GFRftUb1A4IR/PjDIc8tZ8CRb4y+uWBY+m ygBLRkubTTzo9KS2//e7lwjqTCIlKO5ylYyHkYg= X-Google-Smtp-Source: ABdhPJwf74Pk1zAv2/dFYx/EPtp9CNrSoRlsl9nMcl48xPvVRkR3cgKz4KPOSlSBn0J9kL7SbZSWcNRZLopRSf3Quhc= X-Received: by 2002:a92:3609:0:b0:2c6:3595:2a25 with SMTP id d9-20020a923609000000b002c635952a25mr9876403ila.233.1652203231521; Tue, 10 May 2022 10:20:31 -0700 (PDT) MIME-Version: 1.0 References: <5bd58ebebf066593ce0e1d265d60278b5f5a1874.1652123204.git.andreyknvl@google.com> <47afaecec29221347bee49f58c258ac1ced3b429.1652123204.git.andreyknvl@google.com> In-Reply-To: From: Andrey Konovalov Date: Tue, 10 May 2022 19:20:20 +0200 Message-ID: Subject: Re: [PATCH 3/3] kasan: clean-up kconfig options descriptions To: Marco Elver Cc: andrey.konovalov@linux.dev, Alexander Potapenko , Dmitry Vyukov , Andrey Ryabinin , kasan-dev , Andrew Morton , Linux Memory Management List , LKML , Andrey Konovalov Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 10, 2022 at 1:57 PM Marco Elver wrote: > > > - Currently CONFIG_KASAN_GENERIC doesn't work with CONFIG_DEBUG_SLAB > > - (the resulting kernel does not boot). > > + (Incompatible with CONFIG_DEBUG_SLAB: the kernel does not boot.) > > Why aren't they made mutually exclusive via Kconfig constraints? Does it > work these days? > > Either KASAN_GENERIC and KASAN_SW_TAGS do "depends on !DEBUG_SLAB || > COMPILE_TEST", or DEBUG_SLAB does "depends on !(KASAN_GENERIC || KASAN_SW_TAGS) || COMPILE_TEST". > > I feel DEBUG_SLAB might not be used very much these days, so perhaps > DEBUG_SLAB should add the constraint, also given KASAN is the better > debugging aid. They are made exclusive: it's the KASAN option that depends on !DEBUG_SLAB. And KASAN_HW_TAGS doesn't have this note, as it doesn't work with SLAB at all at the moment. Moving the constraint to DEBUG_SLAB might make sense, but let's keep this patchset as a non-functional change. Thanks!