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]
Date:	Fri, 29 Jan 2010 09:15:09 -0500
From:	Derek Atkins <warlord@....edu>
To:	linux-kernel@...r.kernel.org
Cc:	warlord@....edu
Subject: Re-enabling non-GPL driver access to disk partition information

Hi Linuxers,

I've been working on a proprietary disk driver which has been working
for the past couple years on Linux as old as 2.6.18.  Unfortunately,
as of 2.6.28 it appears that some of the gendisk interfaces (read:
structure members) I was using were moved behind an RCU and other
GPL-ONLY accessor interfaces.  I appologize for coming at this so
late, but I don't monitor LKML and I only noticed this when we tried
to port our driver to Ubuntu 9.04 and Fedora 11, and then had delays
in getting this email out.

In particular, there is now no way for a proprietary driver to access
the gendisk partition array, to enumerate the existing partitions, or to
get information about existing partitions.  All those interfaces are now
GPL-Only, (whereas access to the structure members before were perfectly
legal for non-GPL modules).  But now the partition structure is sitting
behind the GPL-Only RCU abstraction.

While I can hack around this to some extent, I'd rather have real
interfaces I can use and play nicely with the Linux disk driver APIs.
Therefore, I propose to convert a few of these interfaces to non-GPL
export for general driver use.  The list of functions I propose to
change:

disk_get_part()
put_device() (needed for the inline disk_put_part() function)

disk_part_iter_init()
disk_part_iter_next()
disk_part_iter_exit()

I hope this patch is acceptable to the Linux community and makes it
quickly into a published Linux release.

Thanks,

-derek

** drivers/base/core.c
** block/genhd.c
Re-enable non-GPL access to disk partition information

Approved By:  Derek Atkins <warlord@....EDU>


View attachment "linux-disk.diff" of type "text/x-patch" (1295 bytes)


-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@....EDU                        PGP key available

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ