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 shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 72B7FC433F5 for ; Fri, 14 Jan 2022 07:32:40 +0000 (UTC) Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1n8H4V-00030J-1n; Fri, 14 Jan 2022 02:32:27 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1n8H4L-0002Se-OI for kernelnewbies@kernelnewbies.org; Fri, 14 Jan 2022 02:32:17 -0500 Received: by mail-wm1-x32e.google.com with SMTP id p1-20020a1c7401000000b00345c2d068bdso6774343wmc.3 for ; Thu, 13 Jan 2022 23:32:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hifiphile-com.20210112.gappssmtp.com; s=20210112; h=in-reply-to:references:thread-topic:user-agent:mime-version :content-transfer-encoding:subject:from:date:to:cc:message-id; bh=EnY3Dm7PjXTVQlStzZudDBJ6OaH03q+BknRp8A0EKRg=; b=eW/+FF5ERISd5UtS2zvevQxotEsfkmkeCTraKykSdgkah0Kh5FstIIVbB8/n4/+eKf Ddvqu3Dd7OgV0p8hhI0PHHguwoJT4mC/c2UIB4zxmhRuz2aWMnUkq2eCqL79TONtJZzh oVkmUYQEvBNgRITEGXp6sjh+qjGOt6qQ6Q9CowIDmHYV85mDg+b34fT+/kcauBbwCG9r PSsjwOTVPF4IILgA9XmS+JZBRARQbu5hTuMSjHq7AY/DzNIJnm5WTx/x/b1P6nonUOLB 4x3OlH8JtTzPvJfL5zkB5B91u30KTUIzePKHyh1tyF/vYU3wIitn7MgJwzcQOmqgwD+E 3xQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:in-reply-to:references:thread-topic:user-agent :mime-version:content-transfer-encoding:subject:from:date:to:cc :message-id; bh=EnY3Dm7PjXTVQlStzZudDBJ6OaH03q+BknRp8A0EKRg=; b=hqV/+yEnQ2VOhfztv/NBhMjCop+Zq6fIO1ekLgruoeVnpe74T+e1UezfZ4w1UpJkBj faxQ3jTy98MQzqKfWNpIEBHPAplb1KR3WmHwHWXmAjHjiTb8I6+5fsOu3K/8X6VnyrKA d0kgducugbM0XJsS1RELldXJiwPYJIY68g2OXviu5IAancf3qqGsLvUFhpwHjx1wc7IN q2FCxZbfebmkV8c8we73pG0x+VLt/fokpAvuVF1qiGdgQoo1ds2VKSTHbvMf0d/n/XK/ LyigFeOQP+uv732t4Hb49I6jsOTBMtkkUtjDE6alBo5iUlhKBGKo879KI3ZArNf8iBGt vDcw== X-Gm-Message-State: AOAM5321J/7x+CZAVP5OsFdjh/JC3fxcxumCeq9A8jH9AXWWR6PWU48B QmLXmLsE4EtyZCD3fxHbY25MRQ== X-Google-Smtp-Source: ABdhPJxcz/zAqd/5TNT2UpKs+H0q3SqVluc6e0Lh2o6H3qKRhtjvjfc7+GnPRqVBbG0JouGq0Lwcng== X-Received: by 2002:a1c:4d17:: with SMTP id o23mr14611023wmh.44.1642145535129; Thu, 13 Jan 2022 23:32:15 -0800 (PST) Received: from ?IPV6:2a01:e34:ec1a:b010:2425:ce29:e778:70f4? ([2a01:e34:ec1a:b010:2425:ce29:e778:70f4]) by smtp.gmail.com with ESMTPSA id b14sm5341124wri.112.2022.01.13.23.32.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Jan 2022 23:32:06 -0800 (PST) In-Reply-To: References: X-Referenced-Uid: 4298 Thread-Topic: Re: How to disable address randomization ? X-Is-Generated-Message-Id: true X-Blue-Identity: !l=283&o=43&fo=1623&pl=162&po=0&qs=PREFIX&f=HTML&n=admin%20LI&e=admin%40hifiphile.com&m=!%3AOGNjZGE2ZWUtYTQwNC00MjM5LWJkMTUtZDZlY2E5Y2M0MWUy%3ASU5CT1g%3D%3ANDI5OA%3D%3D%3AANSWERED&p=134&q=SHOW User-Agent: Android MIME-Version: 1.0 X-Local-Message-Id: <7d87f959-4a72-475b-a469-8eeed2b29aa1@hifiphile.com> Subject: Re: How to disable address randomization ? From: admin LI Date: Fri, 14 Jan 2022 08:11:00 +0100 To: Aruna Hewapathirane Message-ID: <7d87f959-4a72-475b-a469-8eeed2b29aa1@hifiphile.com> Cc: noloader@gmail.com, kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============5487310938258348452==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============5487310938258348452== Content-Type: multipart/alternative; boundary="----XXA953KPNKSIKLDAZ0JUYKXVOI18RO" Content-Transfer-Encoding: 7bit ------XXA953KPNKSIKLDAZ0JUYKXVOI18RO Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Hi Aruna, Thanks for your help=2E Of cause it's in kernel space=2E I've t= ried /proc/sys/kernel/randomize_va_space which does nothing=2E Finally I = found this in kernel document: Pointer Types =3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D Pointers printed without a specifier extension (i=2Ee unadorn= ed %p) are hashed to give a unique identifier without leaking kernel addres= ses to user space=2E On 64 bit machines the first 32 bits are zeroed=2E If = you _really_ want the address see %px below=2E =E2=81=A3Get BlueMail for A= ndroid =E2=80=8B On Jan 14, 2022, 00:54, at 00:54, Aruna Hewapathirane wrote: > > >> > When I search random= ization the only thing I found is KASLR which I >> don't think is the same = thing=2E >> > > >Think about this carefully=2E When you insmod that k= ernel module which >address space is it using ? Kernel or Userspace ? :-) >= >This will help: >https://askubuntu=2Ecom/questions/318315/how-can-i-tempo= rarily-disable-aslr-address-space-layout-randomization > >Good luck -Aruna ------XXA953KPNKSIKLDAZ0JUYKXVOI18RO Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi Aruna,
Thanks for your help=2E

Of cause it's in kernel space=2E I've tried
/proc/sys/kernel/randomize_va_space which does nothing=2E

=
Finally I found this in kernel document:

Pointer Types
=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Pointers pri= nted without a specifier extension (i=2Ee unadorned %p) are
hashed to give a unique identifier without leaking kernel addr= esses to user
space=2E On 64 bit machines the f= irst 32 bits are zeroed=2E If you _really_
want= the address see %px below=2E

------XXA953KPNKSIKLDAZ0JUYKXVOI18RO-- --===============5487310938258348452== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============5487310938258348452==--