From owner-freebsd-hackers Sun Dec 10 4:42:35 2000 From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 10 04:42:33 2000 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 424AC37B401 for ; Sun, 10 Dec 2000 04:42:33 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id eBACgWP23479 for hackers@freebsd.org; Sun, 10 Dec 2000 04:42:32 -0800 (PST) Date: Sun, 10 Dec 2000 04:42:32 -0800 From: Alfred Perlstein To: hackers@freebsd.org Subject: Patching live kernels Message-ID: <20001210044232.D16205@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: bright@fw.wintelcom.net Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ok, sometimes we find a bug in a particular release where what's needed is a function replaced with fixed code. I'm wondering if it's possible to: 1) look at the kernel symbol table for a particular function in a particular object file (static functions would be even better?) 2) replace the first instruction in the function with a jmp to our newly loaded code 3) have our newly loaded code be "anonymous" meaning no symbols from it enter the kernel symbol namespace (i want to be able to re-patch a patched kernel) Is it possible? Are there any takers? :) -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message