Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6065436yba; Thu, 11 Apr 2019 11:18:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0XVKMG6A/Ywz+4n0MHXYqB8dGsl8ERg8HCoMC1/O5rbRLD0diN6zcxffSOZqgLKYOvIYV X-Received: by 2002:a62:8381:: with SMTP id h123mr51947533pfe.226.1555006680892; Thu, 11 Apr 2019 11:18:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555006680; cv=none; d=google.com; s=arc-20160816; b=jE2gnl3kYaHhZ3RYT3QHTUP1Zhj9rR5WSoBeobFdzRtzsnHjJjDxlPyfc4qElKBds3 QQserligWFXQIi0ZmWAU3Nh4Z3+vn5bRtKlCyi3rnctInVBttKyZ/Cs7mkMrwpOrhf9o ZrFXcVZAwiZwlS5g9tBAeAAuc6DBo0ay92AC093QbeYJdJGfYegiZE0hkGUUsdyehrdr 7gHvQf1Q3G6dZD2YX7Wa0crJxYoXA97CfPWITHG8wmciCReXiYG8Z/ICgCjxpJoEDeJq dwuyAng6O3DHVnhXrdI47ZCTfHNWSnner0KIgwuTGpyyF/HnDMZjv0Z1njYKlB2i5VHu oqgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:subject:from:dkim-signature; bh=TVgurs4GiZUYMCyRAOgHBG6ClH9hAVLK6w8uzS9DNis=; b=akpSGr1AdoSq5diSlgFYGTIyTlbTFoC4knc47XgUOJtMJfDhTB3NzPpF45h9ANPyPC DRwofsjgmLA/atgiC/psmO8neipY5qypY/sgR5znxAIZnR4wHbR4Hrua545Qg2ZVJNO9 Y9GEjifIkA5SOUpjt1krsZ5zomNjPMWRkC1C6egPOwZxeu7qUNIwPOHM5YtukyDOsmbj 68ThzPW/FYoY93+U2IjTdcHJ54SxuDYgqgopdZ2WffgyVjxRdjShEURIaTc2ibrCAr6H tOcpW3gVrADhL7QLIWKbP86crlAUWyByr6vae3Y2eZ7x5FG/Yy+mN7N/UrzhRHkzAS6i gr4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="GEc2j/2x"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 61si8819179plf.290.2019.04.11.11.17.44; Thu, 11 Apr 2019 11:18:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="GEc2j/2x"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726664AbfDKSPj (ORCPT + 99 others); Thu, 11 Apr 2019 14:15:39 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:33414 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726538AbfDKSPj (ORCPT ); Thu, 11 Apr 2019 14:15:39 -0400 Received: by mail-qt1-f193.google.com with SMTP id k14so8289841qtb.0 for ; Thu, 11 Apr 2019 11:15:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=TVgurs4GiZUYMCyRAOgHBG6ClH9hAVLK6w8uzS9DNis=; b=GEc2j/2xhzfpicBPi6SMEwiPnM45uwzCZqrp+AOKZ7AMieV+rFT5hinylJbaZFZOb8 h9rCaGy4khD2r/4TbZ3vLJya5tY+hW6mxg8dYwyG+7ZRtk3LxaSyofZkXdguuTQlD793 nj+yPRtAJc3RdSHLWh4i2cmw/jQHZEqHXhFEKyRZfwQ/kyAWPLkcWI4fJjIrrmOpelXF Cj0Wa6LvgfBM6Yg1ccXg09utXzNrqBAVgVf1yJJC34DyCW+vSAq6qvgEas9rPqkgS5X6 FKVqULURWjRl8z9cnHDo9kkG+rqLPZ8zoZLLMJ/r71PawPghB/vW3QLNtcHNuij0acVb sEMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:subject:to:cc:references:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=TVgurs4GiZUYMCyRAOgHBG6ClH9hAVLK6w8uzS9DNis=; b=PL5ZK3bgx6aV01z2Cu6lbCA0erPUAT27LqGXjrm5Ct/tIEfDbGdSk6h2R97ZTB/Um/ g8xx6nkSohj8U/pdjjmbu6DF0ElmZ+LSuhFWvwFkHmR+ANNwuEivu+S847Y5DYBoWHmd PU/NKmIoLwlUdLcDuIwoKPdiTI/vQOCYdG7GtkFo3LWy41ACUXB9KofPP0nxHKOWCvzs AjhChIRX9k4bgFuuwy4TqVGnsumiUlaBf5XFjcNp+0ofR+a3D8veSs3V1+nTHM46pLtW 5GRm6n+gUWFhmrZ/rNnA4hmSXXASFmCL52S/l2F3LmMGaEbrTKCPX7jB3uHPMG+Xp4CR /DgQ== X-Gm-Message-State: APjAAAWZv0pXe3ngtf3k0lTF2G7tWIIh/d2adwQevNHzQ737A1MuYL2G 42JQfZcGZVZBegaerPcb5NM= X-Received: by 2002:ac8:2246:: with SMTP id p6mr42032186qtp.225.1555006538066; Thu, 11 Apr 2019 11:15:38 -0700 (PDT) Received: from [10.84.150.23] ([167.220.149.23]) by smtp.gmail.com with ESMTPSA id v58sm25999568qtv.66.2019.04.11.11.15.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Apr 2019 11:15:37 -0700 (PDT) From: Sinan Kaya X-Google-Original-From: Sinan Kaya Subject: Re: [PATCH v3] init: Do not select DEBUG_KERNEL by default To: Masahiro Yamada Cc: Linux Kernel Mailing List , Josh Triplett , Kees Cook , Andrew Morton , "Peter Zijlstra (Intel)" , Johannes Weiner , Nicholas Piggin , Mathieu Desnoyers , Vasily Gorbik , Adrian Reber , Richard Guy Briggs , Andy Shevchenko , Petr Mladek , Joe Lawrence , Matthew Wilcox , Randy Dunlap , Mikulas Patocka , Robin Murphy , Tetsuo Handa , Changbin Du References: <20190411005634.8495-1-okaya@kernel.org> Message-ID: Date: Thu, 11 Apr 2019 14:15:36 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/11/2019 1:48 AM, Masahiro Yamada wrote: >> I was going by what Kconfig tells me >> >> Symbol: KALLSYMS_ALL [=n] >> Depends on: DEBUG_KERNEL [=n] && KALLSYMS [=y] > Lots of features have 'depends on DEBUG_KERNEL'. > What is special about KALLSYMS_ALL here? I had to do some learning about KALLSYSM_ALL. Based on my limited searching, KALLSYMS_ALL allows you to locate the symbol location at runtime from the kernel. Without KALLSYM_ALL, you can only locate the kernel code only. With KALLSYMS_ALL, you can locate the symbols for any data structure including kernel modules. I'm not a KALLSYMS person but based on my search, I'd consider KALLSYMS_ALL a debug feature as it is today. kernel/kallsyms.c: else if (IS_ENABLED(CONFIG_KALLSYMS_ALL)) kernel/livepatch/Kconfig: depends on KALLSYMS_ALL kernel/module.c:#ifdef CONFIG_KALLSYMS_ALL kernel/module.c:#ifndef CONFIG_KALLSYMS_ALL lib/Kconfig.debug: select KALLSYMS_ALL config LOCKDEP bool depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT select KALLSYMS select KALLSYMS_ALL lib/Kconfig.debug: select KALLSYMS_ALL config LATENCYTOP bool "Latency measuring infrastructure" select KALLSYMS select KALLSYMS_ALL scripts/link-vmlinux.sh: if [ -n "${CONFIG_KALLSYMS_ALL}" ]; then