Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1097401ybf; Thu, 27 Feb 2020 05:02:48 -0800 (PST) X-Google-Smtp-Source: APXvYqw0m5m+2O7s5fL+mEljBHlS7w/a9tFWD12metWZ3upT/uZ1fqE5MPeQHme+nmtwqD6AIOET X-Received: by 2002:aca:1a10:: with SMTP id a16mr3238024oia.9.1582808567946; Thu, 27 Feb 2020 05:02:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582808567; cv=none; d=google.com; s=arc-20160816; b=vkc9cqDlqBn5pS0C4gSwY3fngt+OLaXVGuU7/lEXa3DwsVf96cVkz7fGhNy7T6MJCc qCWgq5t6tF8mS+P8TUgwti6E1wO5jDQM5npB1P6+WRGhqOF7HPRmiRIiaO0qYWFs6FiL +/QtsUBf6UyK8CdqLmunmx96Fg4CgXj8TufuQCNa/KOmv1yhgSLuV7aFrL3Z2qW8tdVW N7Q98ebCsIT55cz4+R2MKt3iXCLaNJTBKCwIgrsJBlxUVEscdliNu5658S/xYG/zBUD/ ncbtW79l3NyO9LE6kyVpJ2nfrsrqj2oIPbx6SLzrfqpRsmXMKkU+eff2MZpG7H7rpuJE SyqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=EzQFTFud9Oi0WjC+k5XNE4ECwTJyAnQ1lUeHziCKdgw=; b=FZnglmOXCpGtRk9hni5s83qNhCeWXKistL5hFi6ObHwfDnN7ofDHWev4jZXk8pFuBe 2UdyaARTzTygDTVyWeU4Pw2hfLymAvlRrnEzEF4GC9/SgRvzWmJuXmIlZkhUNKMmI6dh cI5ksJoGSG7HJAFwAkOe9boS9Vs5+JCwoozJFwEKGciohpRFkSRMGZRgdk/YbZsiUsz8 36Retak1LmVc6LvqPcPquE7SUoP0aulyM2Nddb3OiQMznOwNPzlO8MvtRpYaPOWH+9Ri HFuuvDSazTsIOpUaqkja9JxQNBUyFDRKlidedDt6d44JVV8pnCeLXC5xHbOMEpWLZeSr 0k5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b191si1266541oii.266.2020.02.27.05.02.30; Thu, 27 Feb 2020 05:02:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729082AbgB0NCX (ORCPT + 99 others); Thu, 27 Feb 2020 08:02:23 -0500 Received: from mx2.suse.de ([195.135.220.15]:37262 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728977AbgB0NCX (ORCPT ); Thu, 27 Feb 2020 08:02:23 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 7626BB308; Thu, 27 Feb 2020 13:02:21 +0000 (UTC) From: Petr Mladek To: Andy Shevchenko , Sergey Senozhatsky , Steven Rostedt Cc: Rasmus Villemoes , Sergey Senozhatsky , linux-kernel@vger.kernel.org, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Ilya Dryomov , Kees Cook , "Tobin C . Harding" , Petr Mladek Subject: [PATCH 0/3] lib/test_printf: Clean up basic pointer testing Date: Thu, 27 Feb 2020 14:01:20 +0100 Message-Id: <20200227130123.32442-1-pmladek@suse.com> X-Mailer: git-send-email 2.16.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The discussion about hashing NULL pointer value[1] uncovered that the basic tests of pointer formatting do not follow the original structure and cause confusion. I feel responsible for it and here is a proposed clean up. [1] https://lkml.kernel.org/r/bcfb2f94-e7a8-0860-86e3-9fc866d98742@rasmusvillemoes.dk Petr Mladek (3): lib/test_printf: Clean up test of hashed pointers lib/test_printf: Fix structure of basic pointer tests lib/test_printf: Clean up invalid pointer value testing lib/test_printf.c | 170 ++++++++++++++++++++---------------------------------- 1 file changed, 64 insertions(+), 106 deletions(-) -- 2.16.4