Linux Documentation
 help / color / mirror / Atom feed
* Re: [PATCH v12 10/11] sparc64: Add support for ADI (Application Data Integrity)
       [not found] ` <d8602e35e65c8bf6df1a85166bf181536a6f3664.1519227112.git.khalid.aziz@oracle.com>
@ 2018-03-05 19:22   ` Dave Hansen
  2018-03-05 21:14     ` Khalid Aziz
  2018-03-05 21:26   ` Dave Hansen
  1 sibling, 1 reply; 10+ messages in thread
From: Dave Hansen @ 2018-03-05 19:22 UTC (permalink / raw)
  To: Khalid Aziz, davem, akpm
  Cc: corbet, bob.picco, steven.sistare, pasha.tatashin, mike.kravetz,
	rob.gardner, mingo, nitin.m.gupta, anthony.yznaga,
	kirill.shutemov, tom.hromatka, allen.pais, tklauser,
	shannon.nelson, vijay.ac.kumar, mhocko, jack, punit.agrawal,
	hughd, thomas.tai, ross.zwisler, dave.jiang, willy, minchan,
	imbrenda, aarcange, kstewart, pombredanne, tglx, gregkh,
	nagarathnam.muthusamy, linux, jane.chu, dan.j.williams, jglisse,
	ktkhai, linux-doc, linux-kernel, linux-mm, sparclinux,
	Khalid Aziz

On 02/21/2018 09:15 AM, Khalid Aziz wrote:
> +#define arch_validate_prot(prot, addr) sparc_validate_prot(prot, addr)
> +static inline int sparc_validate_prot(unsigned long prot, unsigned long addr)
> +{
> +	if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM | PROT_ADI))
> +		return 0;
> +	if (prot & PROT_ADI) {
> +		if (!adi_capable())
> +			return 0;
> +
> +		if (addr) {
> +			struct vm_area_struct *vma;
> +
> +			vma = find_vma(current->mm, addr);
> +			if (vma) {
> +				/* ADI can not be enabled on PFN
> +				 * mapped pages
> +				 */
> +				if (vma->vm_flags & (VM_PFNMAP | VM_MIXEDMAP))
> +					return 0;

You don't hold mmap_sem here.  How can this work?
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v12 10/11] sparc64: Add support for ADI (Application Data Integrity)
  2018-03-05 19:22   ` [PATCH v12 10/11] sparc64: Add support for ADI (Application Data Integrity) Dave Hansen
@ 2018-03-05 21:14     ` Khalid Aziz
  2018-03-05 21:26       ` Dave Hansen
  2018-03-05 21:31       ` Dave Hansen
  0 siblings, 2 replies; 10+ messages in thread
From: Khalid Aziz @ 2018-03-05 21:14 UTC (permalink / raw)
  To: Dave Hansen, davem, akpm
  Cc: corbet, bob.picco, steven.sistare, pasha.tatashin, mike.kravetz,
	rob.gardner, mingo, nitin.m.gupta, anthony.yznaga,
	kirill.shutemov, tom.hromatka, allen.pais, tklauser,
	shannon.nelson, vijay.ac.kumar, mhocko, jack, punit.agrawal,
	hughd, thomas.tai, ross.zwisler, dave.jiang, willy, minchan,
	imbrenda, aarcange, kstewart, pombredanne, tglx, gregkh,
	nagarathnam.muthusamy, linux, jane.chu, dan.j.williams, jglisse,
	ktkhai, linux-doc, linux-kernel, linux-mm, sparclinux,
	Khalid Aziz

On 03/05/2018 12:22 PM, Dave Hansen wrote:
> On 02/21/2018 09:15 AM, Khalid Aziz wrote:
>> +#define arch_validate_prot(prot, addr) sparc_validate_prot(prot, addr)
>> +static inline int sparc_validate_prot(unsigned long prot, unsigned long addr)
>> +{
>> +	if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM | PROT_ADI))
>> +		return 0;
>> +	if (prot & PROT_ADI) {
>> +		if (!adi_capable())
>> +			return 0;
>> +
>> +		if (addr) {
>> +			struct vm_area_struct *vma;
>> +
>> +			vma = find_vma(current->mm, addr);
>> +			if (vma) {
>> +				/* ADI can not be enabled on PFN
>> +				 * mapped pages
>> +				 */
>> +				if (vma->vm_flags & (VM_PFNMAP | VM_MIXEDMAP))
>> +					return 0;
> 
> You don't hold mmap_sem here.  How can this work?
>

Are you suggesting that vma returned by find_vma() could be split or 
merged underneath me if I do not hold mmap_sem and thus make the flag 
check invalid? If so, that is a good point.

Thanks,
Khalid
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v12 10/11] sparc64: Add support for ADI (Application Data Integrity)
       [not found] ` <d8602e35e65c8bf6df1a85166bf181536a6f3664.1519227112.git.khalid.aziz@oracle.com>
  2018-03-05 19:22   ` [PATCH v12 10/11] sparc64: Add support for ADI (Application Data Integrity) Dave Hansen
@ 2018-03-05 21:26   ` Dave Hansen
  2018-03-05 21:37     ` Khalid Aziz
  1 sibling, 1 reply; 10+ messages in thread
From: Dave Hansen @ 2018-03-05 21:26 UTC (permalink / raw)
  To: Khalid Aziz, davem, akpm
  Cc: corbet, bob.picco, steven.sistare, pasha.tatashin, mike.kravetz,
	rob.gardner, mingo, nitin.m.gupta, anthony.yznaga,
	kirill.shutemov, tom.hromatka, allen.pais, tklauser,
	shannon.nelson, vijay.ac.kumar, mhocko, jack, punit.agrawal,
	hughd, thomas.tai, ross.zwisler, dave.jiang, willy, minchan,
	imbrenda, aarcange, kstewart, pombredanne, tglx, gregkh,
	nagarathnam.muthusamy, linux, jane.chu, dan.j.williams, jglisse,
	ktkhai, linux-doc, linux-kernel, linux-mm, sparclinux,
	Khalid Aziz

On 02/21/2018 09:15 AM, Khalid Aziz wrote:
> +tag_storage_desc_t *alloc_tag_store(struct mm_struct *mm,
> +				    struct vm_area_struct *vma,
> +				    unsigned long addr)
...
> +	tags = kzalloc(size, GFP_NOWAIT|__GFP_NOWARN);
> +	if (tags == NULL) {
> +		tag_desc->tag_users = 0;
> +		tag_desc = NULL;
> +		goto out;
> +	}
> +	tag_desc->start = addr;
> +	tag_desc->tags = tags;
> +	tag_desc->end = end_addr;
> +
> +out:
> +	spin_unlock_irqrestore(&mm->context.tag_lock, flags);
> +	return tag_desc;
> +}

OK, sorry, I missed this.  I do see that you now have per-ADI-block tag
storage and it is not per-page.

How big can this storage get, btw?  Superficially it seems like it might
be able to be gigantic for a large, sparse VMA.
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v12 10/11] sparc64: Add support for ADI (Application Data Integrity)
  2018-03-05 21:14     ` Khalid Aziz
@ 2018-03-05 21:26       ` Dave Hansen
  2018-03-05 21:31       ` Dave Hansen
  1 sibling, 0 replies; 10+ messages in thread
From: Dave Hansen @ 2018-03-05 21:26 UTC (permalink / raw)
  To: Khalid Aziz, davem, akpm
  Cc: corbet, bob.picco, steven.sistare, pasha.tatashin, mike.kravetz,
	rob.gardner, mingo, nitin.m.gupta, anthony.yznaga,
	kirill.shutemov, tom.hromatka, allen.pais, tklauser,
	shannon.nelson, vijay.ac.kumar, mhocko, jack, punit.agrawal,
	hughd, thomas.tai, ross.zwisler, dave.jiang, willy, minchan,
	imbrenda, aarcange, kstewart, pombredanne, tglx, gregkh,
	nagarathnam.muthusamy, linux, jane.chu, dan.j.williams, jglisse,
	ktkhai, linux-doc, linux-kernel, linux-mm, sparclinux,
	Khalid Aziz

On 03/05/2018 01:14 PM, Khalid Aziz wrote:
> On 03/05/2018 12:22 PM, Dave Hansen wrote:
>> On 02/21/2018 09:15 AM, Khalid Aziz wrote:
>>> +#define arch_validate_prot(prot, addr) sparc_validate_prot(prot, addr)
>>> +static inline int sparc_validate_prot(unsigned long prot, unsigned
>>> long addr)
>>> +{
>>> +    if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM |
>>> PROT_ADI))
>>> +        return 0;
>>> +    if (prot & PROT_ADI) {
>>> +        if (!adi_capable())
>>> +            return 0;
>>> +
>>> +        if (addr) {
>>> +            struct vm_area_struct *vma;
>>> +
>>> +            vma = find_vma(current->mm, addr);
>>> +            if (vma) {
>>> +                /* ADI can not be enabled on PFN
>>> +                 * mapped pages
>>> +                 */
>>> +                if (vma->vm_flags & (VM_PFNMAP | VM_MIXEDMAP))
>>> +                    return 0;
>>
>> You don't hold mmap_sem here.  How can this work?
>>
> Are you suggesting that vma returned by find_vma() could be split or
> merged underneath me if I do not hold mmap_sem and thus make the flag
> check invalid? If so, that is a good point.

Um, yes.  You can't walk the vma tree without holding mmap_sem.
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v12 10/11] sparc64: Add support for ADI (Application Data Integrity)
  2018-03-05 21:14     ` Khalid Aziz
  2018-03-05 21:26       ` Dave Hansen
@ 2018-03-05 21:31       ` Dave Hansen
  2018-03-05 22:55         ` Khalid Aziz
  1 sibling, 1 reply; 10+ messages in thread
From: Dave Hansen @ 2018-03-05 21:31 UTC (permalink / raw)
  To: Khalid Aziz, davem, akpm
  Cc: corbet, bob.picco, steven.sistare, pasha.tatashin, mike.kravetz,
	rob.gardner, mingo, nitin.m.gupta, anthony.yznaga,
	kirill.shutemov, tom.hromatka, allen.pais, tklauser,
	shannon.nelson, vijay.ac.kumar, mhocko, jack, punit.agrawal,
	hughd, thomas.tai, ross.zwisler, dave.jiang, willy, minchan,
	imbrenda, aarcange, kstewart, pombredanne, tglx, gregkh,
	nagarathnam.muthusamy, linux, jane.chu, dan.j.williams, jglisse,
	ktkhai, linux-doc, linux-kernel, linux-mm, sparclinux,
	Khalid Aziz

On 03/05/2018 01:14 PM, Khalid Aziz wrote:
> Are you suggesting that vma returned by find_vma() could be split or
> merged underneath me if I do not hold mmap_sem and thus make the flag
> check invalid? If so, that is a good point.

This part does make me think that this code hasn't been tested very
thoroughly.  Could you describe the testing that you have done?  For MPX
and protection keys, I added something to tools/testing/selftests/x86,
for instance.
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v12 10/11] sparc64: Add support for ADI (Application Data Integrity)
  2018-03-05 21:26   ` Dave Hansen
@ 2018-03-05 21:37     ` Khalid Aziz
  2018-03-05 21:50       ` Dave Hansen
  0 siblings, 1 reply; 10+ messages in thread
From: Khalid Aziz @ 2018-03-05 21:37 UTC (permalink / raw)
  To: Dave Hansen, davem, akpm
  Cc: corbet, bob.picco, steven.sistare, pasha.tatashin, mike.kravetz,
	rob.gardner, mingo, nitin.m.gupta, anthony.yznaga,
	kirill.shutemov, tom.hromatka, allen.pais, tklauser,
	shannon.nelson, vijay.ac.kumar, mhocko, jack, punit.agrawal,
	hughd, thomas.tai, ross.zwisler, dave.jiang, willy, minchan,
	imbrenda, aarcange, kstewart, pombredanne, tglx, gregkh,
	nagarathnam.muthusamy, linux, jane.chu, dan.j.williams, jglisse,
	ktkhai, linux-doc, linux-kernel, linux-mm, sparclinux,
	Khalid Aziz

On 03/05/2018 02:26 PM, Dave Hansen wrote:
> On 02/21/2018 09:15 AM, Khalid Aziz wrote:
>> +tag_storage_desc_t *alloc_tag_store(struct mm_struct *mm,
>> +				    struct vm_area_struct *vma,
>> +				    unsigned long addr)
> ...
>> +	tags = kzalloc(size, GFP_NOWAIT|__GFP_NOWARN);
>> +	if (tags == NULL) {
>> +		tag_desc->tag_users = 0;
>> +		tag_desc = NULL;
>> +		goto out;
>> +	}
>> +	tag_desc->start = addr;
>> +	tag_desc->tags = tags;
>> +	tag_desc->end = end_addr;
>> +
>> +out:
>> +	spin_unlock_irqrestore(&mm->context.tag_lock, flags);
>> +	return tag_desc;
>> +}
> 
> OK, sorry, I missed this.  I do see that you now have per-ADI-block tag
> storage and it is not per-page.
> 
> How big can this storage get, btw?  Superficially it seems like it might
> be able to be gigantic for a large, sparse VMA.
> 

Tags are stored only for the pages being swapped out, not for the pages 
in entire vma. Each tag storage page can hold tags for 128 pages (each 
page has 128 4-bit tags, hence 64 bytes are needed to store tags for an 
entire page allowing each page to store tags for 128 pages). Sparse VMA 
does not cause any problems since holes do not have corresponding pages 
that will be swapped out. Tag storage pages are freed once all the pages 
they store tags for have been swapped back in, except for a small number 
of pages (maximum of 8) marked for emergency tag storage.

--
Khalid
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v12 10/11] sparc64: Add support for ADI (Application Data Integrity)
  2018-03-05 21:37     ` Khalid Aziz
@ 2018-03-05 21:50       ` Dave Hansen
  0 siblings, 0 replies; 10+ messages in thread
From: Dave Hansen @ 2018-03-05 21:50 UTC (permalink / raw)
  To: Khalid Aziz, davem, akpm
  Cc: corbet, bob.picco, steven.sistare, pasha.tatashin, mike.kravetz,
	rob.gardner, mingo, nitin.m.gupta, anthony.yznaga,
	kirill.shutemov, tom.hromatka, allen.pais, tklauser,
	shannon.nelson, vijay.ac.kumar, mhocko, jack, punit.agrawal,
	hughd, thomas.tai, ross.zwisler, dave.jiang, willy, minchan,
	imbrenda, aarcange, kstewart, pombredanne, tglx, gregkh,
	nagarathnam.muthusamy, linux, jane.chu, dan.j.williams, jglisse,
	ktkhai, linux-doc, linux-kernel, linux-mm, sparclinux,
	Khalid Aziz

On 03/05/2018 01:37 PM, Khalid Aziz wrote:
>> How big can this storage get, btw?  Superficially it seems like it might
>> be able to be gigantic for a large, sparse VMA.
>>
> Tags are stored only for the pages being swapped out, not for the pages
> in entire vma. Each tag storage page can hold tags for 128 pages (each
> page has 128 4-bit tags, hence 64 bytes are needed to store tags for an
> entire page allowing each page to store tags for 128 pages). Sparse VMA
> does not cause any problems since holes do not have corresponding pages
> that will be swapped out. Tag storage pages are freed once all the pages
> they store tags for have been swapped back in, except for a small number
> of pages (maximum of 8) marked for emergency tag storage.

With a linear scan holding a process-wide spinlock?  If you have a fast
swap device, does this become the bottleneck when swapping ADI-tagged
memory?

FWIW, this tag storage is complex and subtle enough code that it
deserves to be in its own well-documented patch, not buried in a
thousand-line patch.

> +tag_storage_desc_t *find_tag_store(struct mm_struct *mm,
> +				   struct vm_area_struct *vma,
> +				   unsigned long addr)
> +{
> +	tag_storage_desc_t *tag_desc = NULL;
> +	unsigned long i, max_desc, flags;
> +
> +	/* Check if this vma already has tag storage descriptor
> +	 * allocated for it.
> +	 */
> +	max_desc = PAGE_SIZE/sizeof(tag_storage_desc_t);
> +	if (mm->context.tag_store) {
> +		tag_desc = mm->context.tag_store;
> +		spin_lock_irqsave(&mm->context.tag_lock, flags);
> +		for (i = 0; i < max_desc; i++) {
> +			if ((addr >= tag_desc->start) &&
> +			    ((addr + PAGE_SIZE - 1) <= tag_desc->end))
> +				break;
> +			tag_desc++;
> +		}
> +		spin_unlock_irqrestore(&mm->context.tag_lock, flags);

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v12 10/11] sparc64: Add support for ADI (Application Data Integrity)
  2018-03-05 21:31       ` Dave Hansen
@ 2018-03-05 22:55         ` Khalid Aziz
  0 siblings, 0 replies; 10+ messages in thread
From: Khalid Aziz @ 2018-03-05 22:55 UTC (permalink / raw)
  To: Dave Hansen, davem, akpm
  Cc: corbet, steven.sistare, pasha.tatashin, mike.kravetz, rob.gardner,
	mingo, nitin.m.gupta, anthony.yznaga, kirill.shutemov,
	tom.hromatka, allen.pais, tklauser, shannon.nelson,
	vijay.ac.kumar, mhocko, jack, punit.agrawal, hughd, thomas.tai,
	ross.zwisler, dave.jiang, willy, minchan, imbrenda, aarcange,
	kstewart, pombredanne, tglx, gregkh, nagarathnam.muthusamy, linux,
	jane.chu, dan.j.williams, jglisse, ktkhai, linux-doc,
	linux-kernel, linux-mm, sparclinux, Khalid Aziz

On 03/05/2018 02:31 PM, Dave Hansen wrote:
> On 03/05/2018 01:14 PM, Khalid Aziz wrote:
>> Are you suggesting that vma returned by find_vma() could be split or
>> merged underneath me if I do not hold mmap_sem and thus make the flag
>> check invalid? If so, that is a good point.
> 
> This part does make me think that this code hasn't been tested very
> thoroughly.  Could you describe the testing that you have done?  For MPX
> and protection keys, I added something to tools/testing/selftests/x86,
> for instance.

This code was tested by a QA team and I ran a number of tests myself. I 
wrote tests to exercise all of the API, induce exceptions for 
invalid/illegal accesses and swapping was tested by allocating memory 
2-4 times of the system RAM available across 4-8 threads and 
reading/writing to this memory with ADI enabled. QA team wrote unit 
tests to test each API with valid and invalid combinations of arguments 
to the API. Stress tests that allocate and free ADI tagged memory were 
also run. A version of database server was created that uses ADI tagged 
memory for in-memory copy of database to test database workload. 100's 
of hours of tests were run across these tests over the last 1+ year 
these patches have been under review for. Cover letter includes 
description of most of these tests. This code has held up through all of 
these tests. It is entirely feasible some race conditions have not been 
uncovered yet, just like any other piece of software. Pulling this code 
into mainline kernel and having lot more people exercise this code will 
help shake out any remaining issues.

Thanks,
Khalid
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v12 00/11] Application Data Integrity feature introduced by SPARC M7
       [not found] <cover.1519227112.git.khalid.aziz@oracle.com>
       [not found] ` <d8602e35e65c8bf6df1a85166bf181536a6f3664.1519227112.git.khalid.aziz@oracle.com>
@ 2018-03-18 15:08 ` David Miller
  2018-03-19 15:19   ` Khalid Aziz
  1 sibling, 1 reply; 10+ messages in thread
From: David Miller @ 2018-03-18 15:08 UTC (permalink / raw)
  To: khalid.aziz
  Cc: dave.hansen, aarcange, akpm, allen.pais, aneesh.kumar,
	anthony.yznaga, arnd, benh, bob.picco, bsingharora, corbet,
	dan.j.williams, dave.jiang, david.j.aldridge, dwindsor, ebiederm,
	elena.reshetova, gregkh, hannes, henry.willard, hpa, hughd,
	imbrenda, jack, jag.raman, jane.chu, jglisse, jroedel, khalid,
	khandual, kirill.shutemov, kstewart, ktkhai, liam.merwick,
	linux-arch, linux-doc, linux-kernel, linux-mm, linuxppc-dev,
	linuxram, linux, me, mgorman, mgorman, mhocko, mike.kravetz,
	minchan, mingo

From: Khalid Aziz <khalid.aziz@oracle.com>
Date: Wed, 21 Feb 2018 10:15:42 -0700

> V12 changes:
> This series is same as v10 and v11 and was simply rebased on 4.16-rc2
> kernel and patch 11 was added to update signal delivery code to use the
> new helper functions added by Eric Biederman. Can mm maintainers please
> review patches 2, 7, 8 and 9 which are arch independent, and
> include/linux/mm.h and mm/ksm.c changes in patch 10 and ack these if
> everything looks good? 

Khalid I've applied this series to sparc-next, thank you!

But one thing has to be fixed up.

In uapi/asm/auxvec.h you conditionalize the ADI aux vectors on
CONFIG_SPARC64.

That's not correct, you should never control user facing definitions
based upon kernel configuration.

Also, both 32-bit and 64-bit applications running on ADI capable
machines want to compile against and use this informaiton.

So please remove these CPP checks.
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v12 00/11] Application Data Integrity feature introduced by SPARC M7
  2018-03-18 15:08 ` [PATCH v12 00/11] Application Data Integrity feature introduced by SPARC M7 David Miller
@ 2018-03-19 15:19   ` Khalid Aziz
  0 siblings, 0 replies; 10+ messages in thread
From: Khalid Aziz @ 2018-03-19 15:19 UTC (permalink / raw)
  To: David Miller
  Cc: dave.hansen, aarcange, akpm, allen.pais, aneesh.kumar,
	anthony.yznaga, arnd, benh, bob.picco, bsingharora, corbet,
	dan.j.williams, dave.jiang, david.j.aldridge, dwindsor, ebiederm,
	elena.reshetova, gregkh, hannes, henry.willard, hpa, hughd,
	imbrenda, jack, jag.raman, jane.chu, jglisse, jroedel, khalid,
	khandual, kirill.shutemov, kstewart, ktkhai, liam.merwick,
	linux-arch, linux-doc, linux-kernel, linux-mm, linuxppc-dev,
	linuxram, linux, me, mgorman, mgorman, mhocko, mike.kravetz,
	minchan, mingo

On 03/18/2018 09:08 AM, David Miller wrote:
> In uapi/asm/auxvec.h you conditionalize the ADI aux vectors on
> CONFIG_SPARC64.
> 
> That's not correct, you should never control user facing definitions
> based upon kernel configuration.
> 
> Also, both 32-bit and 64-bit applications running on ADI capable
> machines want to compile against and use this informaiton.
> 
> So please remove these CPP checks.
> 

Hi Dave,

That makes sense. I will send a patch to remove these.

Thanks,
Khalid
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-03-19 15:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <cover.1519227112.git.khalid.aziz@oracle.com>
     [not found] ` <d8602e35e65c8bf6df1a85166bf181536a6f3664.1519227112.git.khalid.aziz@oracle.com>
2018-03-05 19:22   ` [PATCH v12 10/11] sparc64: Add support for ADI (Application Data Integrity) Dave Hansen
2018-03-05 21:14     ` Khalid Aziz
2018-03-05 21:26       ` Dave Hansen
2018-03-05 21:31       ` Dave Hansen
2018-03-05 22:55         ` Khalid Aziz
2018-03-05 21:26   ` Dave Hansen
2018-03-05 21:37     ` Khalid Aziz
2018-03-05 21:50       ` Dave Hansen
2018-03-18 15:08 ` [PATCH v12 00/11] Application Data Integrity feature introduced by SPARC M7 David Miller
2018-03-19 15:19   ` Khalid Aziz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox