Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1949153pxj; Sat, 5 Jun 2021 07:53:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYVEfJAmV+Y/zLDOHEW98Nl6B8H5rIC6PZIrdZHKDBcsI+npy+5+iV8MsDdMx1bEjS8Nv8 X-Received: by 2002:a17:906:c247:: with SMTP id bl7mr9737836ejb.288.1622904821199; Sat, 05 Jun 2021 07:53:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622904821; cv=none; d=google.com; s=arc-20160816; b=S0ET4W8f+l1bkjvyUwHJDih2eWGL0NNBh54gHX/5/pt7z3uQybSUrrpqUypzs3taq4 ZACns4iUQ3bb2EDCk+W99HpaA6AgALqiu97jtUaoQEawc+zpip5fjjVEoGDxv+gu+gp7 mbkiZMSldxknPu+Eho/+LY9JTSSNaDAqZCn20ceSmJCdFbSYMmZ6aeeE+gQ4935lTzMW xBatHGEdGJRq5S6wxf3EJzZLRQ6y1w5Dk8JE+obnqJ0xO4jn2lrBfePlKsqqan+Nfwr3 J0Elp2aR0aT0ZYrTVRCiklB0XlAK5qZFRM3yOzahnLwSmV7Y/Do1wM7wnJQJKwMNL1+F f5ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:mime-version :dkim-signature; bh=EaYMRz5FnMODqFyqdlRK0aeJzGq0sU+8h7rdTmyh4FI=; b=l/nTA0C7n9uD0ZaJSWAFDWPj2CucAykei7+oLT4kqat2ZRYpX1KQxSvOVMhnnxqRx1 pkE/+JMwZzrIB3HbfTV4mNrdiiOJcMVI9Z3qHaT6VJBXATS7M3vLmYyc9NFz++h/C51F bDsutk3rwzzSCZdM8caoBLdbCxFhCS99udbNLSsHkzjve+VF2oElmckDJsceXTb9NdTO 4LH++KF5LMoHE7LKyTFI65BFi/+pRjh/hmTWSadSJcZkDQL8iybMpNDCdKjfbCTIyVx2 l2A8gqahaXb+Ln1wd2QCPFppKFh5CNqKPeDjUivH+VmVpssFJodv2Oj6HTiinF205HaQ L6nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OnLDaNMe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n20si7810137ejl.414.2021.06.05.07.53.18; Sat, 05 Jun 2021 07:53:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OnLDaNMe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230116AbhFEOyE (ORCPT + 99 others); Sat, 5 Jun 2021 10:54:04 -0400 Received: from mail-ua1-f53.google.com ([209.85.222.53]:38519 "EHLO mail-ua1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230112AbhFEOyE (ORCPT ); Sat, 5 Jun 2021 10:54:04 -0400 Received: by mail-ua1-f53.google.com with SMTP id d13so6273047uav.5 for ; Sat, 05 Jun 2021 07:52:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=EaYMRz5FnMODqFyqdlRK0aeJzGq0sU+8h7rdTmyh4FI=; b=OnLDaNMeg+Jz5REkQr9/Veu+4UVm+yAQAcq935Z1UmoEeCG94DnXjE4xEFtyQvNPln pcTDLgySGaaUode2vpolq8a58/KcOgXYZFeDQCy3KBRXPdRwUdxkkT8PI0pAFrggTJkR jStRMBOW5G4vs75HpdwRW6qUskE9dAYC0i5BB6AHLlfSFM3kjp1EqEr9zp4LBtkZ8+7z LgkxaK6SsB4eo1xG0JPzOZvFyZt/TL+LZXWvgJOhWbB42zFD2i0xOBvqyKfDLxvj1NaV tSH7AVn2Kzpzr+CjDSJXSkfdtNX+b/i9xB+BhFhoBHfblvSCA5yDxF0Cl63yPaFBMosx GdKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=EaYMRz5FnMODqFyqdlRK0aeJzGq0sU+8h7rdTmyh4FI=; b=rFpdxBICT8fNSUj+OwznklWB5RSHML77K6JLWziWizdNCYuOXC4D2EjlwD4e/zEBZy vGDTOkKM88Jj08aynIJcOWAgHVSfJzqHbE7czs3h/xS2cLI03IX+Mrzabc/zrBvJ4bRi LHG2pQFsMRh9K5axfzlixWanLxHZLTHOQx1Q4hz2wGLtyzu8zS7sASmZpo6ZkLQiTozx qBw7KMh7wYcPccfLjoM7lemOaH848PfCq16pHrB/DgZAIBGY+uM7tjqexWLDxIZVzwmf zTEDGU9yfi9QjH1dNRQIhLyWFsCnWV6CQ4/+eUN06NW4zYlVTsjJ/KOL1kdWwGUpsxTf xI7w== X-Gm-Message-State: AOAM5316URyDvwdTUK/Lzan3mVohsrGr6u4i0QWmdI1RB9z6NhkJ9wD3 8WS+OjHJwKKe7Vjn7j5PwW8lGSLNKOvVp0YpxsiCNY7B1LXjcw== X-Received: by 2002:a1f:a681:: with SMTP id p123mr5234215vke.22.1622904665047; Sat, 05 Jun 2021 07:51:05 -0700 (PDT) MIME-Version: 1.0 From: jim.cromie@gmail.com Date: Sat, 5 Jun 2021 08:50:39 -0600 Message-ID: Subject: how to return a chunk of kernel .data to free mem ? To: LKML , Linux Memory Management List , Jason Baron Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I have convinced DYNAMIC_DEBUG code to not need about 15% of its __dyndbg section, about 30kb on my test kernel. This memory is not kmalloc'd, so krealloc wont work. (I tried anyway, on a loaded module, it panicd) Is there a way to return a chunk of init .data memory to general use ? heres the patchset; https://lore.kernel.org/lkml/20210529200029.205306-1-jim.cromie@gmail.com/