From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 9 01:15:57 2013 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6EF3BFF5 for ; Tue, 9 Apr 2013 01:15:57 +0000 (UTC) (envelope-from vijju.singh@gmail.com) Received: from mail-ee0-f47.google.com (mail-ee0-f47.google.com [74.125.83.47]) by mx1.freebsd.org (Postfix) with ESMTP id 0D5567E3 for ; Tue, 9 Apr 2013 01:15:55 +0000 (UTC) Received: by mail-ee0-f47.google.com with SMTP id t10so2589730eei.20 for ; Mon, 08 Apr 2013 18:15:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=sLA3lgDI63LcKW7SFgnRDi+5GisV9q5PyncaLsEq9BU=; b=OpZr9WNrwpb483Nx0OL2OuaS0OP7guC5kkkVIeu6L8fn24UYSAJw+AHy8VNyYDVYLf NxtEqILK3jA882hGcyz2yWcoGjt3IGfKVMG6UMvkTWjg3JIdyY05gtrXUmQQJAKq1iF5 7/g0UqUCAz36nMPT771ZPlAShscyUZjshLMyAwZuvqEpWzLlNH2aPEuZdD2Wu32qt6Af KBCVFeLVgP+ybA3iATnX6hokMx1Asp5LrTtTzNMnlC6wk3ANGlSwgjE5QNpIAqISRD+S 7DpycUCtwwYIp1BLMtmJWLjeV2l+hHDxYuqivqUexx+lQUYJZeplmA1CdJgU83aOzyR5 Welg== MIME-Version: 1.0 X-Received: by 10.14.87.199 with SMTP id y47mr41164098eee.17.1365470149248; Mon, 08 Apr 2013 18:15:49 -0700 (PDT) Received: by 10.223.61.17 with HTTP; Mon, 8 Apr 2013 18:15:49 -0700 (PDT) Date: Mon, 8 Apr 2013 18:15:49 -0700 Message-ID: Subject: copyinstr() From: Vijay Singh To: hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Apr 2013 01:15:57 -0000 Hi, I was looking for some help with copyinstr() on an amd64 platform. My from address happens to be in the kernel (stack). I am getting an EFAULT, and I am wondering how to fix that. Would using memory from malloc() make a difference? -vijay