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-next>] [day] [month] [year] [list]
Message-Id: <20221009162155.1318-1-soha@lohu.info>
Date:   Mon, 10 Oct 2022 00:21:52 +0800
From:   Soha Jin <soha@...u.info>
To:     Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc:     "Rafael J. Wysocki" <rafael@...nel.org>,
        Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
        Daniel Scally <djrscally@...il.com>,
        Heikki Krogerus <heikki.krogerus@...ux.intel.com>,
        Sakari Ailus <sakari.ailus@...ux.intel.com>,
        linux-kernel@...r.kernel.org, Soha Jin <soha@...u.info>
Subject: [PATCH 0/3] Case-insensitive match_string and fwnode_is_compatible()

I am introducing these patches for the patch for ethernet driver which I
will send later.

In Patch 1, I abstract `match_string` to `__match_string` with a comparison
function, make the original name calling it with `strcmp` and add
`match_string_nocase` calling it with `strcasecmp`.

In Patch 2 & 3, I implement `{device,fwnode}_property_match_string_nocase`
and `fwnode_is_compatible` for compatible property matching.

Soha Jin (3):
  string: add match_string_nocase() for case-insensitive match
  device property: add {device,fwnode}_property_match_string_nocase()
  device property: add fwnode_is_compatible() for compatible match

 drivers/base/property.c  | 92 ++++++++++++++++++++++++++++++++--------
 include/linux/property.h | 13 ++++++
 include/linux/string.h   | 31 +++++++++++++-
 lib/string_helpers.c     | 10 +++--
 4 files changed, 123 insertions(+), 23 deletions(-)

-- 
2.30.2

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ