From owner-freebsd-questions@freebsd.org Sat Aug 5 08:21:50 2017 Return-Path: Delivered-To: freebsd-questions@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 D7E96DC5931 for ; Sat, 5 Aug 2017 08:21:50 +0000 (UTC) (envelope-from peo@intersonic.se) Received: from neonpark.inter-sonic.com (neonpark.inter-sonic.com [212.247.8.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "neonpark.inter-sonic.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9B9B06A916 for ; Sat, 5 Aug 2017 08:21:48 +0000 (UTC) (envelope-from peo@intersonic.se) X-Virus-Scanned: amavisd-new at Intersonic AB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intersonic.se; s=INTERSONICSE; t=1501921306; bh=En4EziNrGCptPWGnHnSmABsQ7TaHb5S+i+jtNSgGXNM=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=MTi/HHkzxNI7rVoP6FY9PbOrubrKIcXKxaF38jxqL/PyGCuJ1hf6fP+sI/mFisZvJ G6abOhfxm99B2JNrBfQ84BkHdl0CihDcUjWtWUIhIVHis8aPec597gGSq+Np83Z6oF UWOMzubvKNjfaPoYPPVspIoWdLsjivXQwTYJmFIg= Subject: Re: ioctl sign-extensio on amd64 (again) To: Christian Kujau Cc: freebsd-questions@freebsd.org References: <444dc69b-c586-7e0b-61c8-77a2bc722516@intersonic.se> From: Per olof Ljungmark Organization: Intersonic AB Message-ID: <8e2b6bd2-80d1-277a-0326-dd72df14cc72@intersonic.se> Date: Sat, 5 Aug 2017 10:21:43 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Aug 2017 08:21:50 -0000 On 2017-08-04 22:09, Christian Kujau wrote: > On Fri, 4 Aug 2017, Christian Kujau wrote: >> On Fri, 4 Aug 2017, Per olof Ljungmark wrote: >>> In building a camera system with multimedia/motion, syslog is filled up with, >>> kernel: WARNING pid 72755 (motion): ioctl sign-extension ioctl >>> ffffffffc0585611 >>> >>> After som googling this appears to be a long standing problem with some python >>> stuff and amd64. >>> >>> My question is, how can I get rid of the messages? Motion works as expected, I >>> just do not want this filling up the logs. >> >> Short of disabling the printf in sys_ioctl() in sys/kern/sys_generic.c, >> the Right Thing To Do™ would be to fix multimedia/motion not to issue >> those erroneous ioctls. This was reported (and sometimes fixed) for other >> applications too: >> >> * sysutils/duplicity-devel/ throws ioctl sign-extension ioctl ffffffff80087467 >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=152770 >> >> * mt(8): ioctl sign-extension warnings from some mt commands on 64-bit >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=147938 >> >> * Fix fcntl module to accept 'unsigned long' type commands for ioctl(2). >> https://bugs.python.org/issue25026 >> >> Maybe the respective commits could shed some light on how to do this for >> multimedia/motion? > > Should've looked before hitting "Send": > > * Fix ioctl sign-extension warning on FreeBSD > https://github.com/Motion-Project/motion/pull/393 Ah! video_v4l2.c looks like it is gone but patching video2.c works! Thank you for pointing this out. //per