linux-next: build failure after merge of the akpm tree
Subsystems (3)
Hi all,
After merging the akpm tree, today's linux-next build (x86_64 allmodconfig) failed like this:
mm/kasan/quarantine.c: In function 'quarantine_put':mm/kasan/quarantine.c:197:15: error: 'info' undeclared (first use in this function)
197 | qlink_free(&info->quarantine_link, cache);
| ^~~~mm/kasan/quarantine.c:197:15: note: each undeclared identifier is reported only once for each function it appears in mm/kasan/quarantine.c:199:3: error: 'return' with no value, in function returning non-void [-Werror=return-type]
199 | return;
| ^~~~~~
mm/kasan/quarantine.c:171:6: note: declared here
171 | bool quarantine_put(struct kmem_cache *cache, void *object)
| ^~~~~~~~~~~~~~Caused by patches
"kasan: rename get_alloc/free_info"
"kasan: sanitize objects when metadata doesn't fit"
I have applied the following fix patch:
From: Stephen Rothwell <[email protected]>
Date: Thu, 3 Dec 2020 19:41:49 +1100
Subject: [PATCH] kasan-rename-get_alloc-free_info-fix
--- mm/kasan/quarantine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
mm/kasan/quarantine.c +2 -2
@@ -194,9 +194,9 @@ bool quarantine_put(struct kmem_cache *cache, void *object) q =this_cpu_ptr (&cpu_quarantine);if (q->offline) { -qlink_free (&info->quarantine_link, cache); +qlink_free (&meta->quarantine_link, cache);local_irq_restore (flags); -return ; +return false; }qlist_put (q, &meta->quarantine_link, cache->size);if (unlikely (q->bytes >QUARANTINE_PERCPU_SIZE )) {
Signature · 5 lines
2.29.2 -- Cheers, Stephen Rothwell
Quoted 18 lines · Stephen Rothwell
Hi all,
After merging the akpm tree, today's linux-next build (
x86_64allmodconfig) failed like this:
mm/kasan/quarantine.c: In function 'quarantine_put':mm/kasan/quarantine.c:197:15: error: 'info' undeclared (first use in this function)
197 |qlink_free(&info->quarantine_link, cache);
| ^~~~mm/kasan/quarantine.c:197:15: note: each undeclared identifier is reported only once for each function it appears inmm/kasan/quarantine.c:199:3: error: 'return' with no value, in function returning non-void [-Werror=return-type]199 | return; | ^~~~~~ mm/kasan/quarantine.c:171:6: note: declared here 171 | bool quarantine_put(struct kmem_cache *cache, void *object) | ^~~~~~~~~~~~~~
Quoted 4 lines
Caused by patches
"kasan: rename get_alloc/free_info"
"kasan: sanitize objects when metadata doesn't fit"
Yeah, this is conflict with the "kasan: fix object remain in offline per-cpu quarantine" patch.
Quoted 30 lines
I have applied the following fix patch:
From: Stephen Rothwell <[email protected]>
Date: Thu, 3 Dec 2020 19:41:49 +1100
Subject: [PATCH] kasan-rename-get_alloc-free_info-fixSigned-off-by Stephen Rothwell <[email protected]>--- mm/kasan/quarantine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)mm/kasan/quarantine.c +2
-3@@ -194,9 +194,9 @@ bool quarantine_put(struct kmem_cache *cache, void *object) q =this_cpu_ptr (&cpu_quarantine);if (q->offline) { -qlink_free (&info->quarantine_link, cache); +qlink_free (&meta->quarantine_link, cache);local_irq_restore (flags); -return ; +return false; }qlist_put (q, &meta->quarantine_link, cache->size);if (unlikely (q->bytes >QUARANTINE_PERCPU_SIZE )) { --2.29.2
Quoted 3 lines
--
Cheers,
Stephen Rothwell
This fixup looks good to me. Thanks!