From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753388AbcB2JgS (ORCPT ); Mon, 29 Feb 2016 04:36:18 -0500 Received: from mout.kundenserver.de ([212.227.126.130]:60376 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751093AbcB2JgQ (ORCPT ); Mon, 29 Feb 2016 04:36:16 -0500 From: Arnd Bergmann To: Joonsoo Kim , linux-mm@kvack.org, Herbert Xu Cc: linux-arm-kernel@lists.infradead.org, Michal Nazarewicz , Steven Rostedt , Andrew Morton , Arnd Bergmann , Dan Williams , "David S. Miller" , NeilBrown , Markus Stockhausen , Vinod Koul , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto/async_pq: use __free_page() instead of put_page() Date: Mon, 29 Feb 2016 10:33:58 +0100 Message-Id: <1456738445-876239-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:pxSK8yWDWtvqL/g+51OBY9+e5BtO1K7HlMsPFMr8itN9PgA+67W G8FfeXbIT5Pg6eulliqvb1yw1r/JlALRc47gCioVcNHadUOI3Xywgk4nWUAtaOPvY0LJF5k J0yOzW26ckRFqyaajjLN6jdty0N1NJldlW9asYEoW5s1OwHlf76I3qBKea/vACdWpI0VtuT wiFBLZPZKdk08t3E3prQw== X-UI-Out-Filterresults: notjunk:1;V01:K0:OjzeZHK2S4Q=:YZDcQx1qas0HXk7keD5KMe FbkdU6QWxNHznactIWYnLk8Dnf83waZbfFrqN8ys4oHOt9xhHJgwuI7v9hsALpfwjyhxJMwC6 u9GTrL5Ep3VaEVi9tcTvM+w6JzqhAQcrD893Hw6uJUsRDWymS8fIw+tsXGyIaLgHzvyuz1Cjl HlHZRk9Rs7eAUZB3dzwflXYQcKfOAXRD2gSlWD3SJLW+D20HoNDz9BmWxaohZSKcYsBIYhw/n 9xYWOMbBlfF7Q1xbe5Oix5JZQAaFfOZgDWMiTGdDmTdDK42vZKRe2j7W8EbDPnktRPhF3ClST WKRhxcuzDbSB0BPGsywOXco7gFF6DTrZ0eICWt5oxLU9G23bd+JM//lBHI8YzIp08QKWzm3o5 vL76qHt+RWpas5g1sp3bVJwTa9D4s3gw3UZTrr9MbS8I9tzm8L1q4A5LArdwIEVuTnIgqqxFP ipsNO8p5Vcw1PL5fdqCAcWgPAAKY8ViN8tzOyHmt+Lgt47eANexptIp508SK3kJYIMiZYsPae 07hqbm95ZZzY2nUAuKNeVAtOt0r6nYuWQyX6yGPoWidHYu+ixDM13JrwDwVKhLis1jZmzlR+e cnF1JcpuxR/pqXRnKFy2jmZxAicgsukRzCvgKXp+Z4kcnCXvkkxq6xrbPg5FvbJx8tFk3peao nyXPlqz6RCZAhAZXaN43n9Z7b3RxtOIeEi/wreAOB0wkz0dYoB6pDHWPVwCa+qh1V+Ps= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The addition of tracepoints to the page reference tracking had an unfortunate side-effect in at least one driver that calls put_page from its exit function, resulting in a link error: `.exit.text' referenced in section `__jump_table' of crypto/built-in.o: defined in discarded section `.exit.text' of crypto/built-in.o >>From a cursory look at that this driver, it seems that it may be doing the wrong thing here anyway, as the page gets allocated using 'alloc_page()', and should be freed using '__free_page()' rather than 'put_page()'. With this patch, I no longer get any other build errors from the page_ref patch, so hopefully we can assume that it's always wrong to call any of those functions from __exit code, and that no other driver does it. Fixes: 0f80830dd044 ("mm/page_ref: add tracepoint to track down page reference manipulation") Signed-off-by: Arnd Bergmann --- crypto/async_tx/async_pq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/async_tx/async_pq.c b/crypto/async_tx/async_pq.c index c0748bbd4c08..08b3ac68952b 100644 --- a/crypto/async_tx/async_pq.c +++ b/crypto/async_tx/async_pq.c @@ -444,7 +444,7 @@ static int __init async_pq_init(void) static void __exit async_pq_exit(void) { - put_page(pq_scribble_page); + __free_page(pq_scribble_page); } module_init(async_pq_init); -- 2.7.0