lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f86c9ec6-d82d-4d0c-80b2-504f7c6da22e@arm.com>
Date: Mon, 14 Jul 2025 08:05:31 +0530
From: Anshuman Khandual <anshuman.khandual@....com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-mm@...ck.org, "David S. Miller" <davem@...emloft.net>,
 Thomas Gleixner <tglx@...utronix.de>, Ingo Molnar <mingo@...hat.com>,
 x86@...nel.org, sparclinux@...r.kernel.org, linux-kernel@...r.kernel.org,
 linux-fsdevel@...r.kernel.org
Subject: Re: [PATCH] fs/Kconfig: Enable HUGETLBFS only if
 ARCH_SUPPORTS_HUGETLBFS



On 13/07/25 4:45 AM, Andrew Morton wrote:
> On Fri, 11 Jul 2025 15:59:34 +0530 Anshuman Khandual <anshuman.khandual@....com> wrote:
> 
>> Enable HUGETLBFS only when platform subscrbes via ARCH_SUPPORTS_HUGETLBFS.
>> Hence select ARCH_SUPPORTS_HUGETLBFS on existing x86 and sparc for their
>> continuing HUGETLBFS support.
> 
> Looks nice.
> 
>> While here also just drop existing 'BROKEN' dependency.
> 
> Why?
> 
> What is BROKEN for, anyway?  I don't recall having dealt with it
> before.  It predates kernel git and we forgot to document it.

The original first commit had added 'BROKEN', although currently there
are no explanations about it in the tree. But looks like this might be
used for feature gating (selectively disabling features) etc. But I am
not much aware about it.

commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (tag: v2.6.12-rc2)
Author: Linus Torvalds <torvalds@...970.osdl.org>
Date:   Sat Apr 16 15:20:36 2005 -0700

    Linux-2.6.12-rc2

    Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.

    Let it rip!

BROKEN still gets used for multiple config options.

git grep "depends on BROKEN"

arch/m68k/Kconfig.devices:      depends on BROKEN && (Q40 || SUN3X)
arch/mips/loongson64/Kconfig:   depends on BROKEN
arch/parisc/Kconfig:    depends on BROKEN
arch/powerpc/lib/crypto/Kconfig:        depends on BROKEN # Needs to be fixed to work in softirq context
drivers/edac/Kconfig:   depends on BROKEN
drivers/edac/Kconfig:   depends on BROKEN
drivers/gpu/drm/Kconfig.debug:  depends on BROKEN
drivers/gpu/drm/amd/display/Kconfig:    depends on BROKEN || !CC_IS_CLANG || ARM64 || LOONGARCH || RISCV || SPARC64 || X86_64
drivers/gpu/drm/i915/Kconfig.debug:     depends on BROKEN
drivers/net/wireless/intel/iwlwifi/Kconfig:     depends on BROKEN
drivers/s390/block/Kconfig:     depends on BROKEN
drivers/staging/gpib/TODO:- fix device drivers that are broken ("depends on BROKEN" in Kconfig)
drivers/tty/Kconfig:    depends on BROKEN
drivers/virtio/Kconfig:        depends on BROKEN
init/Kconfig:   depends on BROKEN || !SMP
init/Kconfig:   depends on BROKEN
lib/Kconfig.ubsan:      depends on BROKEN

git grep "&& BROKEN"

arch/parisc/Kconfig:    depends on PA8X00 && BROKEN && !KFENCE
arch/parisc/Kconfig:    depends on PA8X00 && BROKEN && !KFENCE
arch/powerpc/platforms/amigaone/Kconfig:        depends on PPC_BOOK3S_32 && BROKEN_ON_SMP
arch/powerpc/platforms/embedded6xx/Kconfig:     depends on PPC_BOOK3S_32 && BROKEN_ON_SMP
arch/sh/Kconfig.debug:  depends on DEBUG_KERNEL && BROKEN
drivers/gpu/drm/Kconfig.debug:  depends on DRM && EXPERT && BROKEN
drivers/i2c/busses/Kconfig:     depends on ISA && HAS_IOPORT_MAP && BROKEN_ON_SMP
drivers/leds/Kconfig:   depends on LEDS_CLASS && BROKEN
drivers/net/wireless/broadcom/b43/Kconfig:      depends on B43 && BROKEN
drivers/net/wireless/broadcom/b43/Kconfig:      depends on B43 && B43_BCMA && BROKEN
drivers/pps/generators/Kconfig: depends on PARPORT && BROKEN
drivers/staging/greybus/Kconfig:        depends on MEDIA_SUPPORT && LEDS_CLASS_FLASH && BROKEN
drivers/video/fbdev/Kconfig:    depends on FB && ((AMIGA && BROKEN) || PCI)
fs/quota/Kconfig:       depends on QUOTA && BROKEN
fs/smb/client/Kconfig:  depends on CIFS && BROKEN
net/ax25/Kconfig:       depends on AX25_DAMA_SLAVE && BROKEN

git grep "|| BROKEN"

arch/sh/Kconfig.debug:  depends on DEBUG_KERNEL && (MMU || BROKEN) && !PAGE_SIZE_64KB
drivers/misc/Kconfig:   depends on X86_64 || BROKEN
drivers/net/ethernet/faraday/Kconfig:   depends on !64BIT || BROKEN
drivers/net/ethernet/faraday/Kconfig:   depends on !64BIT || BROKEN
drivers/net/ethernet/intel/Kconfig:     depends on PCI && (!SPARC32 || BROKEN)
drivers/usb/gadget/udc/Kconfig: depends on !64BIT || BROKEN
kernel/power/Kconfig:           if ARCH_WANTS_FREEZER_CONTROL || BROKEN

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ