From owner-freebsd-stable@FreeBSD.ORG Thu Nov 3 19:32:48 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A42B106564A for ; Thu, 3 Nov 2011 19:32:48 +0000 (UTC) (envelope-from sneakywumpus@googlemail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id BA9048FC0C for ; Thu, 3 Nov 2011 19:32:47 +0000 (UTC) Received: by bkbzs2 with SMTP id zs2so1984527bkb.13 for ; Thu, 03 Nov 2011 12:32:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; bh=+EwLYWBrPUQK7ZnN9dS0jk396/gCxd/nq8gr/w6wpKM=; b=ecpD3KLjUhUP8MM4B5/HE11/+Pg7/1LBHpFbnoxlF8TFsqKiztMlfgWdHQ5xtr8zHe fpBrAzMpzXav1tR39yAR2y0JAW0DUUKazy9j/9ZwYEN0B4SjQBo1Vw4zsxF1oO9a7Kp5 OzmYlq6HYN3vuixl1KQ2J0XtZJoeiqdOApmWU= Received: by 10.204.34.75 with SMTP id k11mr9585450bkd.68.1320347123155; Thu, 03 Nov 2011 12:05:23 -0700 (PDT) Received: from ed209.lan (77-23-61-98-dynip.superkabel.de. [77.23.61.98]) by mx.google.com with ESMTPS id j9sm6552960bkd.2.2011.11.03.12.05.21 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 Nov 2011 12:05:22 -0700 (PDT) From: Thomas Eberhardt Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: multipart/signed; boundary="Apple-Mail=_5B42BEA0-B217-43D5-B49B-1A31BD7D87D0"; protocol="application/pkcs7-signature"; micalg=sha1 Date: Thu, 3 Nov 2011 20:05:20 +0100 In-Reply-To: <4EB2E2D7.2050809@os2.kiev.ua> To: FreeBSD Stable Mailing List References: <4EB1BCAD.7080206@zzattack.org> <20111102233807.GA67112@icarus.home.lan> <4EB1D6F9.3060008@zzattack.org> <20111103000124.GA67550@icarus.home.lan> <4EB1DD51.4080808@zzattack.org> <20111103002352.GA67904@icarus.home.lan> <4EB2538D.3090108@zzattack.org> <4EB2CB75.6070003@os2.kiev.ua> <4EB2E2D7.2050809@os2.kiev.ua> Message-Id: <5AA1B2B7-EC88-44E0-9537-A91E2AFDFFFE@googlemail.com> X-Mailer: Apple Mail (2.1251.1) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: smartctl / mpt on 9.0-RC1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Nov 2011 19:32:48 -0000 --Apple-Mail=_5B42BEA0-B217-43D5-B49B-1A31BD7D87D0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Hi. I got the same problem. After some debugging I came up with the following patch: --- os_freebsd.cpp.orig 2011-10-06 18:43:44.000000000 +0200 +++ os_freebsd.cpp 2011-10-23 11:19:31.492599837 +0200 @@ -1044,8 +1044,13 @@ } =20 if (iop->sensep) { +#if CAM_VERSION < 0x16 memcpy(iop->sensep,&(ccb->csio.sense_data),sizeof(struct = scsi_sense_data)); iop->resp_sense_len =3D sizeof(struct scsi_sense_data); +#else + memcpy(iop->sensep,&(ccb->csio.sense_data),sizeof(struct = scsi_sense_data_fixed)); + iop->resp_sense_len =3D sizeof(struct scsi_sense_data_fixed); +#endif } =20 iop->scsi_status =3D ccb->csio.scsi_status; On 03.11.2011, at 19:52, Alex Samorukov wrote: > Thank you. I currently got shell, but user-only, what is useless for = me ;-) (All ioctl/cam commands require superuser) >=20 > I asked for the root and now waiting for it. You can also provide = shell so i will have more boxes to test. I am expecting some very = trivial bug caused by some wrong data returned from the driver without = strict check in smartctl. >=20 > On 11/03/2011 07:43 PM, James wrote: >> On Thu, Nov 3, 2011 at 12:12 PM, Alex Samorukov = wrote: >>> I am smartmontools developer and FreeBSD port maintainer. If you >>> could provide shell access to the affected system i can try to debug >>> issue. I have no access to the mpt devices myself and it is unclear >>> what going on from provided backtrace. >> Hi Alex. If you're unable to get shell access from Frank, I'd be >> glad to help out. I have mps(4) and mpt(4) hardware available and >> experience the same bug. >>=20 >=20 > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to = "freebsd-stable-unsubscribe@freebsd.org" --Apple-Mail=_5B42BEA0-B217-43D5-B49B-1A31BD7D87D0--