From owner-freebsd-current@FreeBSD.ORG Thu Jan 29 00:55:10 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8BEFED88; Thu, 29 Jan 2015 00:55:10 +0000 (UTC) Received: from mail-lb0-x236.google.com (mail-lb0-x236.google.com [IPv6:2a00:1450:4010:c04::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0F6FAD83; Thu, 29 Jan 2015 00:55:10 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id l4so22875183lbv.13; Wed, 28 Jan 2015 16:55:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=bzoMcUYfTkGKOyMkuYKUmfupYVP3069M2jKCcsOJM+U=; b=g+Rc7/LIjiM5hX2PFcrVgjmclKW85VNzVPTk9RgYme5CSLT0RdZy7ou3NQvixW//kU qY214ybC+NhffRl4Qg1K+yG88p/Xi8soAJ2q9ycPbRYYwHpfl1q+TgAC13w/7OgH1I1I 9pX0AxCdSDMbQuJC26w512XDhD/rdtVBPyUpZDRHvkK85xYWw/XNrZ7Jms9c1uaCRKLi Sen5Wwx4RAuMs1kseKL2ShkkH48NTnxhWze4oFdCQNzX8K3BKDoUIDEMWALEUiQe1uTC iiysewff88Atin1Epp1bF4EFleS1d4zV7F3/rA913Vy0RgP2Qvl6umakQ4TzEUJt4biL BY+w== X-Received: by 10.152.115.212 with SMTP id jq20mr11556287lab.36.1422492908177; Wed, 28 Jan 2015 16:55:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.12.6 with HTTP; Wed, 28 Jan 2015 16:54:37 -0800 (PST) From: Yue Chen Date: Wed, 28 Jan 2015 19:54:37 -0500 Message-ID: Subject: How to know the address ranges of kernel stacks, for user processes and kernel threads? To: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2015 00:55:10 -0000 How can we know the kernel stack ranges for user process and kernel threads under FreeBSD x86_64? It seems that each kernel stack has two pages (IA-32) to use. Does x86_64 still have two pages or more? And how can we find the address of these two pages from a kernel module?