Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3718271imm; Tue, 29 May 2018 12:14:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoiTHRDRN+ntrIrCagzz7PlqCl/HC+li31utSgu3MMBykfviMJUXrfJKMalMmiQzSEDqi7h X-Received: by 2002:a62:ec5b:: with SMTP id k88-v6mr17375881pfh.85.1527621295284; Tue, 29 May 2018 12:14:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527621295; cv=none; d=google.com; s=arc-20160816; b=wAwtHNkyMjKw705RTRoc3DpGpanQauWhQgTIpUTvNRBUiEscf8Hm3i2DEL7490GJvl CJaWEcZbi4meLslxAlZiMPQ0/k40kaLG6dV89NCKeIZTPnRPKA5NFGIxjxcSRniyr4IQ AvLCb5JWFN03gzMsxAGPxXr89bJUVr323l20ZP7LSXW23+tcUHAQKxmOzLhP57REAQL+ OWbcTzl58/Q9c+2aBcNME2SlDpIA1WO7eMCHGW/o3VJxjYCqWxtLAjb75PmR1TscxDCD xJP0VukiWG8qqXD6T8vy4jNnmjyN8fHi+xMTdSXJX3LQ0R9NG91BpfBiF8hZCVlvVpD4 c/Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature:arc-authentication-results; bh=9IGHPIv0bXkCl0UzZLpMDaV7utAwkqKQ5IzJzXLEpIA=; b=i8Sucr1Re1nDoUjh6sL8hin+kg4vjHcSJV+oekKp0f504zY4uBkyKTD9p+z+YEdm82 HWrcS5JXBN6G02RzW4m8WTgJUCdBBOjl+pkDI//k7LVnIngMiKzwL3G+RVCQYXr1F+Ko Hv6bYHKa573mUmtt8iOXaKoCnFB5xmfKvJJfyFlL73T2PNfq4sA/MfGWVkrMwkd97EaR dYB92Ht6W8tHCQQ91SoM9oRwCGp6wFS1ERf2OJaMgnn6bX7XnxZDBDNv8jKurxJX5bAZ PUaaI3+lGsOxf+DflzooFLfMC4So0GGJ5n+MH2pifj6WdbJTDkM2SLbQjdTK3XwZqNNi mvFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@do-not-panic-com.20150623.gappssmtp.com header.s=20150623 header.b=okY6+wu+; 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 o11-v6si2355902pgq.506.2018.05.29.12.14.40; Tue, 29 May 2018 12:14:55 -0700 (PDT) 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; dkim=pass header.i=@do-not-panic-com.20150623.gappssmtp.com header.s=20150623 header.b=okY6+wu+; 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 S966320AbeE2TOP (ORCPT + 99 others); Tue, 29 May 2018 15:14:15 -0400 Received: from mail-vk0-f68.google.com ([209.85.213.68]:44559 "EHLO mail-vk0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965614AbeE2TON (ORCPT ); Tue, 29 May 2018 15:14:13 -0400 Received: by mail-vk0-f68.google.com with SMTP id x66-v6so9587763vka.11; Tue, 29 May 2018 12:14:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=do-not-panic-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=9IGHPIv0bXkCl0UzZLpMDaV7utAwkqKQ5IzJzXLEpIA=; b=okY6+wu+yG/Wdt994Jtq26j/NapI001zZEReai2GcwkOZmtgYhruudWutBSj/yee8/ L+JNMbrvtWD0uA2hCWz4yuZOMgo25zygG+IqeVemniOaBIWSAPSGvld7w9EiIo5ND7Kv wo87LKrz+2QDIjeWVSneyH/lGUZEmvfg1V6BB7/72252TGG2NRujmilOCzQxEuwsoWzX s5BUwfu+Izeho3hQaZN8m94r/lX10H6w3rYTltC4f+6AfDioaqKWkcSofe7xFSzX8JRa wuPc6qNMXpnMzjG4AlJfcqCryPOn/vl1X7Xj8MadHa6XwRT7UEBurLDeupXV9Ws/f5g4 AIzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=9IGHPIv0bXkCl0UzZLpMDaV7utAwkqKQ5IzJzXLEpIA=; b=kK2ueeQXyM/nRDVfm/VK3jCEv2Ml+ZlqNvlAlvpG3B4XmCxpG5qYFODzndDpXt7sQU KU/0XbFRtIF44ok3gFfsjlZ5PnqNOgawgTZAeqRCe8SI7Uo/9DenLZpjSXUgraqAD1/d 6OLs/RoPb3DvG0oZsmjmHONyelLkcQCSRJgTIlPzNXHq/Dtg3pUHHqHafN3MP4YhdtcJ DhJpVg8ZlG7nrcZomFRkUJC+GlpARvbuSUevvkD8sbOT+C9USeiAolK/SZB8OaRs3j2U nbcsH2znuwYfyEzDOsmDK0YpQmDGprS7XaZJBMTF46tXjkOT3eqlY4TfK1O4Vr0TGuRG VAYg== X-Gm-Message-State: ALKqPwccwsLqEDLEHutbs2D8T3BTjn7yPFCLrCVLmB7l8yhrGhdzmq2j 5whk1u4BPUefFAT9pvAyuatt/4q7Om21lAC7zs8= X-Received: by 2002:a1f:ff1a:: with SMTP id p26-v6mr10876389vki.124.1527621252918; Tue, 29 May 2018 12:14:12 -0700 (PDT) MIME-Version: 1.0 From: "Luis R. Rodriguez" Date: Tue, 29 May 2018 12:14:01 -0700 Message-ID: Subject: PostgreSQL licensed code on Linux To: Kent Overstreet Cc: Coly Li , Ciaran Farrell , One Thousand Gnomes , linux-bcache@vger.kernel.org, "linux-kernel@vger.kernel.org" , Greg Kroah-Hartman , Tso Ted , Linus Torvalds , Thomas Gleixner , Philippe Ombredanne , Kate Stewart , Jonas Oberg Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The question over future possible PostgreSQL licensed code on Linux came up to me recently. While doing some quick of digging around I found code already under such license it seems: The file drivers/md/bcache/util.c has: cafe563591446 (Kent Overstreet 2013-03-23 16:11:31 -0700 318) /* cafe563591446 (Kent Overstreet 2013-03-23 16:11:31 -0700 319) * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group (Any cafe563591446 (Kent Overstreet 2013-03-23 16:11:31 -0700 320) * use permitted, subject to terms of PostgreSQL license; see.) That seems to indicate that we've had already PostgreSQL licensed code on Linux since Kent's addition of bcache to Linux in 2013. The portion of code is rather small though, to me it seems to cover only crc_table[], bch_crc64_update(), and bch_crc64(). Four things: a) This is the only code on Linux which seems to use PostgreSQL b) The language for license seem to be cut off, 'see.' seems incomplete, whereas typically it would point to a file with the full language text. c) We can only infer what portions of the file are under this license d) Even though some licenses claim to be GPL-Compatible, if possible we should dual license such with the GPL if possible (*) If some folks are considering adding yet more code to Linux which is currently under a PostgreSQL license I figured reviewing the existing PostgreSQL code's use may be a good start to set precedent for future work. Since we already have at least one file with a PostgreSQL-sort-of boiler plate it at least sets the precedent we have already sort of dealt with PostgreSQL. My recommendations: As silly as it may be we should split out the PostgreSQL licensed code from drivers/md/bcache/util.c into its own file and while at it clarify the license. If possible, if we can dual license this code with GPL it would be good as it would do two things: 1) Removes any ambiguity in case of questions over GPL Compatibility in the future about the PostgreSQL license 2) Other folks considering using PostgreSQL licensed code on Linux have a template they can use Other thoughts? * Although some websites / organizations may state a license is GPL compatible we have to be careful in the kernel as some companies or organizations may disagree with some of these views (example is FSF's website and position -- an example was one of the old BSD licenses which some folks questioned its GPL compatibility with); despite the ambiguity possible with dual licensing language [0], if one chooses a clear language it can be extremely useful and cautious on the kernel community's part. [0] https://www.softwarefreedom.org/resources/2007/gpl-non-gpl-collaboration.html Luis