From owner-freebsd-current@freebsd.org Tue Jul 21 06:02:50 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7F30E9A7CE1 for ; Tue, 21 Jul 2015 06:02:50 +0000 (UTC) (envelope-from venkatkumar.duvvuru@avagotech.com) Received: from mail-ig0-x22e.google.com (mail-ig0-x22e.google.com [IPv6:2607:f8b0:4001:c05::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3FF411645 for ; Tue, 21 Jul 2015 06:02:50 +0000 (UTC) (envelope-from venkatkumar.duvvuru@avagotech.com) Received: by igbpg9 with SMTP id pg9so98750980igb.0 for ; Mon, 20 Jul 2015 23:02:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=avagotech.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=oocXRviPcAAP4rHGoyVqDcX+FBp8sdKiOWIT7huTnPs=; b=WqI1Veh5hrKCNSCyPNosDhNgC8OWNBq7FSYgVUMT9SiVBH3NesbecHP/G9+HPBwp6W BG3T3ZaXrA5j64Pz9eXMTjDnVTPHKNa5tvkP4L+lWXuFfbsxzEre7wtMAW404UXq1WoK 3emkUBdzGhWEJieU2EIY5xrkyC9tqatc4n2rQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=oocXRviPcAAP4rHGoyVqDcX+FBp8sdKiOWIT7huTnPs=; b=X8r9UB/wqKx3LLZauLRgTK2lFnObA2ypmRKLjH5fiSz7k1TOxvqLN6Ga4ThpVRX+cp BQM3YT8QDX0dNhlkczPpIUf3UwYIny0QCvFABBexvd1F6IUOmmca0ZBuweK+BSLaiUKY IwySkg+1PLXbexUI7kwDs2dsWESeM0GibNl9ipGz+/49QVAMJLZkSeUV8VkIO0HNcJNi Xhmi53r6+N9Xh0CQWitS2uDkl2pKw3mWNPUI0ghpiVtiq87N8iDLw12R0z5VtuzvY+0h xWtLxJ2c44HdyBCcXGtt4T97rLpMbqFw5lRghNQci3BmfV0AkjwXmcnDlO1NMNhFO4Rv ypFg== X-Gm-Message-State: ALoCoQlqY4Vvro0gCE+0y6l+8Ktv2Ary3CAyL6h9rNrkX2p0MgWqGQvsaC7Z8fS++QGk2IqTMXJL MIME-Version: 1.0 X-Received: by 10.107.6.231 with SMTP id f100mr32289816ioi.61.1437458568922; Mon, 20 Jul 2015 23:02:48 -0700 (PDT) Received: by 10.79.21.131 with HTTP; Mon, 20 Jul 2015 23:02:48 -0700 (PDT) In-Reply-To: <55A91837.50805@freebsd.org> References: <55A9157A.8050208@freebsd.org> <55A91837.50805@freebsd.org> Date: Tue, 21 Jul 2015 11:32:48 +0530 Message-ID: Subject: Re: Kernel Application Binary Interface (kABI) support in FreeBSD From: Venkat Duvvuru To: Allan Jude Cc: freebsd-current@freebsd.org X-Mailman-Approved-At: Tue, 21 Jul 2015 11:49:00 +0000 Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2015 06:02:50 -0000 Yes, my question was about kernel module compatibililty with FreeBSD's major releases of a particular version. For example, will FreeBSD makes sure that the driver built on 10.0 version of Freebsd seamlessly load on all other 10.x versions of FreeBSD? Does it make sure that the symbols and their parameters are not blindly changed without considering the binary compatibility with other FreeBSD version binaries? RHEL kABI whitelist makes sure that once the symbol is added into the whitelist, it will never be changed during the major releases of that kernel. Thanks, Venkat. On Fri, Jul 17, 2015 at 8:29 PM, Allan Jude wrote: > On 2015-07-17 10:47, Julian Elischer wrote: > > On 7/17/15 9:02 PM, Venkat Duvvuru wrote: > >> Hi, > >> > >> Is there kABI (Kabi-whitelist) equivalent feature in FreeBSD? > > well, yes and no. > > > > Firstly, FreeBSD maintains a backwards compatible kABI (with the > > exception of programs that hunt around in kernel memory). > > We also use symbol versioning on the libc. so depending on what you want > > to do. the answer may be useful to you or not. > > Basically any binary should continue to run on a newer kernel, even if > > the syscalls change, because we should still support the old abi. > > > > tell us more about what you need and we can be more specific. > > > > I have run Freebsd 1.1 binaries on a Freebsd 8 system, in fact I have > > done a system build in a freebsd 1.1 chroot on an 8 system. > > I haven't tried it on 9 or 10 but I'd expect it to work.. > > > > > >> > >> > >> > >> Thanks, > >> > >> Venkat. > >> _______________________________________________ > >> freebsd-current@freebsd.org mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-current > >> To unsubscribe, send any mail to > >> "freebsd-current-unsubscribe@freebsd.org" > >> > >> > > > > _______________________________________________ > > freebsd-current@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to " > freebsd-current-unsubscribe@freebsd.org" > > I think the question related to drivers (kernel modules). > > In which case, they should be compatible across major versions (module > from 10.0 works in 10.2, but not 9.3 or 11.0) > > -- > Allan Jude > >