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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAG_fn=UVa=x+idoHoHjfe+ASsT30aQGHLW3KkEgfmsOcwh_fQA@mail.gmail.com>
Date:   Fri, 10 Feb 2023 16:18:56 +0100
From:   Alexander Potapenko <glider@...gle.com>
To:     "Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>
Cc:     Dave Hansen <dave.hansen@...ux.intel.com>,
        Andy Lutomirski <luto@...nel.org>,
        Peter Zijlstra <peterz@...radead.org>, x86@...nel.org,
        Kostya Serebryany <kcc@...gle.com>,
        Andrey Ryabinin <ryabinin.a.a@...il.com>,
        Andrey Konovalov <andreyknvl@...il.com>,
        Taras Madan <tarasmadan@...gle.com>,
        Dmitry Vyukov <dvyukov@...gle.com>,
        "H . J . Lu" <hjl.tools@...il.com>,
        Andi Kleen <ak@...ux.intel.com>,
        Rick Edgecombe <rick.p.edgecombe@...el.com>,
        Bharata B Rao <bharata@....com>,
        Jacob Pan <jacob.jun.pan@...ux.intel.com>,
        Ashok Raj <ashok.raj@...el.com>,
        Linus Torvalds <torvalds@...ux-foundation.org>,
        linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCHv15 06/17] x86/uaccess: Provide untagged_addr() and remove
 tags before address check

> +#define untagged_addr_remote(mm, addr) ({                              \
> +       u64 __addr = (__force u64)(addr);                               \
> +       mmap_assert_locked(mm);                                         \
> +       __addr = __untagged_addr(__addr, (mm)->context.untag_mask);     \
> +       (__force __typeof__(addr))__addr;                               \
> +})
> +
> +#else
> +#define untagged_addr(addr)    (addr)
Could you please use tabs for indentation here?

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ