From owner-freebsd-usb@freebsd.org Sun Dec 1 02:03:16 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1BE551C2375 for ; Sun, 1 Dec 2019 02:03:16 +0000 (UTC) (envelope-from anatoly@kazanfieldhockey.ru) Received: from kazanfieldhockey.ru (kazanfieldhockey.ru [78.138.152.250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "kazanfieldhockey.ru", Issuer "System Administrator" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 47QWjv01s8z3Lg4 for ; Sun, 1 Dec 2019 02:03:14 +0000 (UTC) (envelope-from anatoly@kazanfieldhockey.ru) Received: from asd2 (host-175-22.static.telecet.ru [87.117.175.22] (may be forged)) (authenticated bits=0) by kazanfieldhockey.ru (8.15.2/8.15.2) with ESMTPSA id xB11vBab005121 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO) for ; Sun, 1 Dec 2019 04:57:13 +0300 (MSK) (envelope-from anatoly@kazanfieldhockey.ru) Date: Sun, 1 Dec 2019 05:03:41 +0300 From: Anatoly To: freebsd-usb@freebsd.org Subject: Re: pendrive clone impossible ? Message-ID: <20191201050341.4a02879a@asd2> In-Reply-To: References: <20191130223322.1028feab.freebsd@edvax.de> <20191130234900.81464b43.freebsd@edvax.de> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.29; amd64-portbld-freebsd10.2) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (kazanfieldhockey.ru [192.168.13.2]); Sun, 01 Dec 2019 04:57:14 +0300 (MSK) X-Rspamd-Queue-Id: 47QWjv01s8z3Lg4 X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of anatoly@kazanfieldhockey.ru has no SPF policy when checking 78.138.152.250) smtp.mailfrom=anatoly@kazanfieldhockey.ru X-Spamd-Result: default: False [4.84 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; IP_SCORE(0.78)[asn: 28840(3.87), country: RU(0.01)]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; TO_DN_NONE(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(0.68)[0.675,0]; MIME_TRACE(0.00)[0:+]; NEURAL_SPAM_LONG(0.99)[0.993,0]; DMARC_NA(0.00)[kazanfieldhockey.ru]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:28840, ipnet:78.138.128.0/19, country:RU]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Dec 2019 02:03:16 -0000 On Sun, 1 Dec 2019 00:29:13 +0100 Tomasz CEDRO wrote: > but I have no more time to play, so I leave a trace if > someone meets similar issues in future :-) I've had a problem in the past with one of the first 32GB pendrives. Not quite similar problem, but may it be buggy RAM cache implementation too? What if: - Write sector(s) - usbconfig -d . power_off - usbconfig -d . power_on - Read and compare. As you saying some writes was succeful, some not. May it depend not on source of that bytes or their content, but on time passed between write and read? It turns out that Transcend pendrive I've got in 2010 had RAM cache (didn't remember exact cache size I measured out, as I remember something around 128K-512K), and all writes was cached. This amazingly speeds up random R/W fs operations in comparation with similar pendrives of those years, but I constantly losing the data and getting fs corrupted when used it with OSes that do not "power_off" or "suspend" that drive before I pull of it out of the socket. From owner-freebsd-usb@freebsd.org Sun Dec 1 02:53:10 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 86B9C1C3C84 for ; Sun, 1 Dec 2019 02:53:10 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47QXqT2wScz3Njv for ; Sun, 1 Dec 2019 02:53:08 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-ot1-x332.google.com with SMTP id 77so6850129oty.6 for ; Sat, 30 Nov 2019 18:53:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6eeytcF42T+BwDijZz2e0Cajo2U8TlNqbT/dvBxOgrU=; b=BcasknuO98DHCKP7IB3vJ5lWtxou0TXRbcZoWhwTrlFfBi4UAnLSZNYPyCy6LFC0sn BYinbx8GUWP4X5hx4Lt1MyZWTOJUDcZNrDI43acLwpj4ecBiU80+ofzCBh495pi7aqYS zRlT58uDXRp+TIHGDqprF60RHNPBU8OQcT4tc/weiZZuEEpRWyQ0IF2abYHX+5wNUMOB qi8iW+7uMnYzNJ+drwNfg2h3XtytDk+LSZ8o2TJE7tqe3Gf07XjJktVa5NqHvvNL3QgM fhAOpAuQTDYMm4I6jtiPa27fjsQtno8J3/ZEKpNEEQUOYunI9+ztyo3h/StCqmml9c3K eGZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6eeytcF42T+BwDijZz2e0Cajo2U8TlNqbT/dvBxOgrU=; b=SRAJEe+Fkg+JbzO2RXXYMb4CxKFgSYQZkzOVFARpCzvjQnCPFTUsq3luFZlfiKSnSr eRO4DjdLoD6iQsg7DDO5jkOUm08FU4Gujfutc08vE24tyCdObYbGrkbr5NfDlS/6wtJj RYa652xHyzV0C8XXIoV/8qzdz5C9uTovOtd8avWhmrvrFAbdxcDyyIgphCcJ1SR/X3f2 +W5gY/PmOthUSbA1vY2EvGY2jSnTXTm0dSOgnhUcikNVopzmaO6uMfoCaxSSFZFgBpj9 qYIW4fYcZzGcnVO5tCxbg4nBPTUOR+DPLZhxHdNPtaGbzC0g8HexlcalEopNem8Q+sEI qQ7w== X-Gm-Message-State: APjAAAWebGSA5YU2zrWGL2FngKp8FRv9cUUeiPIBzaMjERHA83ZSPf8m k9Cg7UaZNtSgmtikeQE8+C4/GADS5B4= X-Google-Smtp-Source: APXvYqxBKod5f3gvut3wU207UcgwV5Fm0I50cjB74ANWnYHjPhsSJ0c7+0KIM3sBRc1bVaXbzRGcMw== X-Received: by 2002:a9d:7a93:: with SMTP id l19mr16040547otn.314.1575168786836; Sat, 30 Nov 2019 18:53:06 -0800 (PST) Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com. [209.85.167.179]) by smtp.gmail.com with ESMTPSA id o4sm9257292ota.57.2019.11.30.18.53.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 30 Nov 2019 18:53:06 -0800 (PST) Received: by mail-oi1-f179.google.com with SMTP id a124so5674523oii.13 for ; Sat, 30 Nov 2019 18:53:05 -0800 (PST) X-Received: by 2002:aca:5cc4:: with SMTP id q187mr3772263oib.45.1575168785296; Sat, 30 Nov 2019 18:53:05 -0800 (PST) MIME-Version: 1.0 References: <20191130223322.1028feab.freebsd@edvax.de> <20191130234900.81464b43.freebsd@edvax.de> <20191201050341.4a02879a@asd2> In-Reply-To: <20191201050341.4a02879a@asd2> From: Tomasz CEDRO Date: Sun, 1 Dec 2019 03:52:50 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: pendrive clone impossible ? To: Anatoly Cc: "freebsd-usb@FreeBSD.org" , Polytropon Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 47QXqT2wScz3Njv X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=BcasknuO; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::332) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.84 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; RCVD_IN_DNSWL_NONE(0.00)[2.3.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[]; IP_SCORE(-2.54)[ip: (-8.48), ipnet: 2607:f8b0::/32(-2.25), asn: 15169(-1.94), country: US(-0.05)] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Dec 2019 02:53:10 -0000 On Sun, Dec 1, 2019 at 3:03 AM Anatoly wrote: > I've had a problem in the past with one of the first 32GB pendrives. > Not quite similar problem, but may it be buggy RAM cache > implementation too? What if: > - Write sector(s) > - usbconfig -d . power_off > - usbconfig -d . power_on > - Read and compare. > > As you saying some writes was succeful, some not. May it > depend not on source of that bytes or their content, but on time passed > between write and read? > > It turns out that Transcend pendrive I've got in 2010 had RAM cache > (didn't remember exact cache size I measured out, as I remember > something around 128K-512K), and all writes was cached. This amazingly > speeds up random R/W fs operations in comparation with similar > pendrives of those years, but I constantly losing the data and getting > fs corrupted when used it with OSes that do not "power_off" or > "suspend" that drive before I pull of it out of the socket. The first pendrive is physically smaller Kingston slower and more expensive. The second Kingston (the one with write problems) is physically bigger 30% cheaper and a bit faster (50% read, 10% write, but not as advertised 2x read, 4x write). If its cheaper and faster then Kingston is bullshitting their clients. Also one of their workers admitted that they have various vendors of flash controllers and different firmware among them. so their products looks more like a lottery. Not cool. Thank you Anatoly! It looks then like a pendrive faulty tricky design to fool users with exaggerated read/w/rite speeds. -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-usb@freebsd.org Sun Dec 1 07:28:07 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 982461C1FEE for ; Sun, 1 Dec 2019 07:28:07 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Qfwk11n1z4Xgp for ; Sun, 1 Dec 2019 07:28:05 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr1-x433.google.com with SMTP id y11so36920129wrt.6 for ; Sat, 30 Nov 2019 23:28:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=wMlpkJKhQPk+5pMVzIMR8iymxdl1hnZp388Xlh6NZig=; b=I0oXvk5jL131vTVwdC7pvpHAxbSJnPh91nUxhME1GMJDaHuqB5Ze6Qg7wZu1K5hmS5 rFjMcUaxHdikR6OjbLrH2Sx8FsouiX6K6bc8MfKW8sJnJR2R/Ju5XJG4BHahkdAr8HGH x9KT1mhORf+0rDAF6h2muh06bNt6fGTOL8ZWTn7JdYH5s77PYsEscADkLSPYXCJGWPHO rT9sM3aKK6V+02jEtJXE2PEehXpIX9USKXoVHYr8QtyMgojatVGxIKxBsPmyaMHmAzz1 k6xEepzGpO8YTQfqvJsPXCYGswD9bWT8YMRA2J365gp7ZFn5wlkfJKiLK+M7rxawMB1g mJ2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=wMlpkJKhQPk+5pMVzIMR8iymxdl1hnZp388Xlh6NZig=; b=bAgzh2KB9fvBlcGiZ2ni7JYKQv2jnJKoQoPY9CaYoAMfz8ToHGSFJX1EvKvQavaoBq U9/MnG83sF+j11KDqjRWNTN3V6+BxwDgzyOdgo/orfDI4x5HspbYJs3riTJcjoB36vb2 8GabYFMLqsdYQJhFIFcknx3r0C0eMzVEJMF50zbE99kUw6zkwWeYfu14f5CUnOx5J/wJ lwOpS6uPJIpPAuLkNV+0z+tYfUO74SYW32gXtjqx6b6IynZQOXJXy9z1Hxa4WJ+VUXzS umYvIPDqzaubSpKQJA98F3n6JslnylB6IFlKblU8KGF5RN1xbpbo2DcaASSmxPJowKip o6zQ== X-Gm-Message-State: APjAAAX4gi2Xf8xoAEWwbL58rHZTVQTPaDcaU1ZK0rbHvF2UzI9HIr2X httFRw5qM0Z76iE1wvkJIuw= X-Google-Smtp-Source: APXvYqxDxKqIiqfm8SbyGmLs3Eil1HLBeRX9JHEva0OZGMvGQt8nOYsFlAJw7B0JUe/6RqCaCTNTJw== X-Received: by 2002:a5d:4481:: with SMTP id j1mr196718wrq.348.1575185282484; Sat, 30 Nov 2019 23:28:02 -0800 (PST) Received: from ernst.home (pD9E239E8.dip0.t-ipconnect.de. [217.226.57.232]) by smtp.gmail.com with ESMTPSA id a64sm21571228wmc.18.2019.11.30.23.28.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Nov 2019 23:28:01 -0800 (PST) Date: Sun, 1 Dec 2019 08:28:01 +0100 From: Gary Jennejohn To: Tomasz CEDRO Cc: Anatoly , Polytropon , "freebsd-usb@FreeBSD.org" Subject: Re: pendrive clone impossible ? Message-ID: <20191201082801.6a8c7639@ernst.home> In-Reply-To: References: <20191130223322.1028feab.freebsd@edvax.de> <20191130234900.81464b43.freebsd@edvax.de> <20191201050341.4a02879a@asd2> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47Qfwk11n1z4Xgp X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=I0oXvk5j; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gljennjohn@gmail.com designates 2a00:1450:4864:20::433 as permitted sender) smtp.mailfrom=gljennjohn@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[gljennjohn@gmail.com]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MIME_TRACE(0.00)[0:+]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RECEIVED_SPAMHAUS_PBL(0.00)[232.57.226.217.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[3.3.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (-9.10), ipnet: 2a00:1450::/32(-2.69), asn: 15169(-1.94), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Dec 2019 07:28:07 -0000 On Sun, 1 Dec 2019 03:52:50 +0100 Tomasz CEDRO wrote: > On Sun, Dec 1, 2019 at 3:03 AM Anatoly wrote: > > I've had a problem in the past with one of the first 32GB pendrives. > > Not quite similar problem, but may it be buggy RAM cache > > implementation too? What if: > > - Write sector(s) > > - usbconfig -d . power_off > > - usbconfig -d . power_on > > - Read and compare. > > > > As you saying some writes was succeful, some not. May it > > depend not on source of that bytes or their content, but on time passed > > between write and read? > > > > It turns out that Transcend pendrive I've got in 2010 had RAM cache > > (didn't remember exact cache size I measured out, as I remember > > something around 128K-512K), and all writes was cached. This amazingly > > speeds up random R/W fs operations in comparation with similar > > pendrives of those years, but I constantly losing the data and getting > > fs corrupted when used it with OSes that do not "power_off" or > > "suspend" that drive before I pull of it out of the socket. > > The first pendrive is physically smaller Kingston slower and more > expensive. The second Kingston (the one with write problems) is > physically bigger 30% cheaper and a bit faster (50% read, 10% write, > but not as advertised 2x read, 4x write). If its cheaper and faster > then Kingston is bullshitting their clients. Also one of their workers > admitted that they have various vendors of flash controllers and > different firmware among them. so their products looks more like a > lottery. Not cool. > > Thank you Anatoly! It looks then like a pendrive faulty tricky design > to fool users with exaggerated read/w/rite speeds. > The geom code protects certain parts of the data area on the drive, in particular GPT/MBR areas, unless ``sysctl kern.geom.debugflags=16'' is run beforehand. One can see this in many places in the geom code. I always set this sysctl when I know I'm going to overwrite the first sectors of a drive. -- Gary Jennejohn From owner-freebsd-usb@freebsd.org Sun Dec 1 10:13:45 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 39C131C60FC for ; Sun, 1 Dec 2019 10:13:45 +0000 (UTC) (envelope-from anatoly@kazanfieldhockey.ru) Received: from kazanfieldhockey.ru (kazanfieldhockey.ru [78.138.152.250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "kazanfieldhockey.ru", Issuer "System Administrator" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Qkbq6dzsz4fsX for ; Sun, 1 Dec 2019 10:13:43 +0000 (UTC) (envelope-from anatoly@kazanfieldhockey.ru) Received: from asd2 (host-175-22.static.telecet.ru [87.117.175.22] (may be forged)) (authenticated bits=0) by kazanfieldhockey.ru (8.15.2/8.15.2) with ESMTPSA id xB1A7jbP012633 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO) for ; Sun, 1 Dec 2019 13:07:47 +0300 (MSK) (envelope-from anatoly@kazanfieldhockey.ru) Date: Sun, 1 Dec 2019 13:14:16 +0300 From: Anatoly To: freebsd-usb@freebsd.org Subject: Re: pendrive clone impossible ? Message-ID: <20191201131416.3a1554ec@asd2> In-Reply-To: <20191201082801.6a8c7639@ernst.home> References: <20191130223322.1028feab.freebsd@edvax.de> <20191130234900.81464b43.freebsd@edvax.de> <20191201050341.4a02879a@asd2> <20191201082801.6a8c7639@ernst.home> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.29; amd64-portbld-freebsd10.2) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (kazanfieldhockey.ru [192.168.13.2]); Sun, 01 Dec 2019 13:07:47 +0300 (MSK) X-Rspamd-Queue-Id: 47Qkbq6dzsz4fsX X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of anatoly@kazanfieldhockey.ru has no SPF policy when checking 78.138.152.250) smtp.mailfrom=anatoly@kazanfieldhockey.ru X-Spamd-Result: default: False [4.84 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; IP_SCORE(0.77)[asn: 28840(3.86), country: RU(0.01)]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(0.67)[0.671,0]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_LONG(0.99)[0.993,0]; DMARC_NA(0.00)[kazanfieldhockey.ru]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:28840, ipnet:78.138.128.0/19, country:RU]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Dec 2019 10:13:45 -0000 On Sun, 1 Dec 2019 08:28:01 +0100 Gary Jennejohn wrote: > The geom code protects certain parts of the data area on the > drive, in particular GPT/MBR areas, unless ``sysctl > kern.geom.debugflags=16'' is run beforehand. One can see this in > many places in the geom code. > > I always set this sysctl when I know I'm going to overwrite the > first sectors of a drive. > Interesting, but I've succefully overwrited MBR many times on FreeBSD 5.x-11.x without setting this sysctl. I've learned about this sysctl when I first time failed to overwrite bsd label inside MBR slice under FreeBSD 7.1 with dd (but not MBR). There was explicit write error, not just silent succeful write to nowhere. I may be wrong, but as I remember, I newer got this trouble again starting from 10.x. Is there something new on 12.x? From owner-freebsd-usb@freebsd.org Sun Dec 1 10:28:08 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 41CC61C65A2 for ; Sun, 1 Dec 2019 10:28:08 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47QkwQ5Z1tz4gGK for ; Sun, 1 Dec 2019 10:28:06 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr1-x444.google.com with SMTP id b18so40471797wrj.8 for ; Sun, 01 Dec 2019 02:28:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=hmuutWjfccnG7a8QjMukKcV0hTGzONCfI1CAX2yiVbg=; b=CZhMHUGrZQlVhMEY9uyut15yv0oS5mJDnvoqmOe5RBoY7CRyum68r2gQRbfWJ9360q XZFaywcFVhUQm/6sHdcKw+b9jWc7ZxiiQXMMJdcA2S/hytLhIe8U7VGWjarzCzH4+TuP 3ttHIP0RJQtzwRg4lZe754ZJ2bcK74TGfSPVakIv+p9fLOkeCkgwWAh5QDcsmie4vpNr /8pp/EqAj0IB5N6/SppsHd7yT0KBmRb7jeFMty4DPia7196VJ1k2U1/PSZfI2D7bWzo8 fF0vkLKF4UNjkPklarKyDKdDwd6WeByoSLQCOtBaoR1CHtps8Jd9m5SykYH1Q3jbT0FC 1jGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=hmuutWjfccnG7a8QjMukKcV0hTGzONCfI1CAX2yiVbg=; b=WBIp3yaqRgFZbryaxx7nhMvGVlUP8VRhV2Fkw/oOgTXvW7kQaaKoTdBgCkEc4j7uvF 20B9Y/88yrDXKdvPnfM2rHPxcWQrcm7ZNj8LmwIZFhMYMogSu8bPIz9x35ce7ywHTSY+ OG61P/1eVgdmtCsAr18Yy3641h752nqsHp+Ds/zNkjWp49E6YPRsnhwRI1+ebH8tQVsG kAc0SIDPnTutg78zdAkicBpufnAcbbRzsfuSb2PvEcNsM0PYLVJLSU9sTkv0nxPRt0h7 TVxzG+rysmMMa4Rpaos6m+LoQ7//tK6Vmd/pdahefeWpZFEVz6HhyrhIrpLO6+Joj5Z7 nelg== X-Gm-Message-State: APjAAAVWIpQIEAgyyr9t7wKtSp+UXXS1RgdBrG6t78U1Q7WH6pYB09Gz yLNppS9asMgWHl8oCCDf2birWuos X-Google-Smtp-Source: APXvYqxmSSbmnKm8Fmr4V2Sb02/7+YYTuv6Yuh9ANIfqijiPy73krvNz4JHBx7+RcFOARr/YnjAvhQ== X-Received: by 2002:a5d:5306:: with SMTP id e6mr62433960wrv.187.1575196084540; Sun, 01 Dec 2019 02:28:04 -0800 (PST) Received: from ernst.home (pD9E239E8.dip0.t-ipconnect.de. [217.226.57.232]) by smtp.gmail.com with ESMTPSA id u69sm21073247wmu.39.2019.12.01.02.28.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Dec 2019 02:28:04 -0800 (PST) Date: Sun, 1 Dec 2019 11:28:03 +0100 From: Gary Jennejohn To: freebsd-usb@freebsd.org Subject: Re: pendrive clone impossible ? Message-ID: <20191201112803.7c7677d4@ernst.home> In-Reply-To: <20191201131416.3a1554ec@asd2> References: <20191130223322.1028feab.freebsd@edvax.de> <20191130234900.81464b43.freebsd@edvax.de> <20191201050341.4a02879a@asd2> <20191201082801.6a8c7639@ernst.home> <20191201131416.3a1554ec@asd2> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47QkwQ5Z1tz4gGK X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=CZhMHUGr; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gljennjohn@gmail.com designates 2a00:1450:4864:20::444 as permitted sender) smtp.mailfrom=gljennjohn@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[gljennjohn@gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MIME_TRACE(0.00)[0:+]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RECEIVED_SPAMHAUS_PBL(0.00)[232.57.226.217.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; FREEMAIL_REPLYTO(0.00)[gmail.com]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.00)[ip: (3.01), ipnet: 2a00:1450::/32(-2.69), asn: 15169(-1.94), country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[4.4.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Dec 2019 10:28:08 -0000 On Sun, 1 Dec 2019 13:14:16 +0300 Anatoly wrote: > On Sun, 1 Dec 2019 08:28:01 +0100 > Gary Jennejohn wrote: > > > The geom code protects certain parts of the data area on the > > drive, in particular GPT/MBR areas, unless ``sysctl > > kern.geom.debugflags=16'' is run beforehand. One can see this in > > many places in the geom code. > > > > I always set this sysctl when I know I'm going to overwrite the > > first sectors of a drive. > > > Interesting, but I've succefully overwrited MBR many times > on FreeBSD 5.x-11.x without setting this sysctl. > I've learned about this sysctl when I first time failed to overwrite bsd > label inside MBR slice under FreeBSD 7.1 with dd (but not MBR). There > was explicit write error, not just silent succeful write to nowhere. I > may be wrong, but as I remember, I newer got this trouble again > starting from 10.x. > Is there something new on 12.x? > This sysctl has been around for quite some time. I added a shellscript to my ~/bin to set it in 2015. IIRC Julian Elischer requested it because he had problems initializing disks. I just use it by default when I write to the first sectors on a disk. There is geom code which explicitly checks whether debugflags is set to 16. I have not looked at the code to see what happens when that is the case. -- Gary Jennejohn From owner-freebsd-usb@freebsd.org Sun Dec 1 16:45:35 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2C0721B0BF8 for ; Sun, 1 Dec 2019 16:45:35 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oi1-x244.google.com (mail-oi1-x244.google.com [IPv6:2607:f8b0:4864:20::244]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47QvHx11Hgz40h8 for ; Sun, 1 Dec 2019 16:45:32 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oi1-x244.google.com with SMTP id l20so30221677oie.10 for ; Sun, 01 Dec 2019 08:45:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Vvnm+YwnOcSsu7Jrhb7VP1vqRW2h+tAKlAI7YxRxit8=; b=gTi/7w5hFd5OmCP6KX2moEMz/Xekv0/YKQtv5r5va8EZQpkK2sZ2QuTGJYaumUVcq3 B7k4Dk8uy2GOn/Bp8olZMkxMtQe5Au3gVi5aGjAHIs74Dw24WQu+GsaiLPQyN8Wab8Yd GB0Sz4gPQ+xWQ7HnfhITC50lTXxhpe8rcswMdPCNgbktOoXEVkAORCiVGwoTsvROr9nb lmoPe1fOnLRWrcxXvllA2rUQlN3zEVxmWFcZuo/Moa1AiXnznzvd/gZ9h7mhQiF0AHI/ FRP/GCFGjqbXXjlOwldCJVsijLvSE3oLnfPWcsG56RR7nCBDe7ZryYWtPcfZE2aMHcsO iWTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Vvnm+YwnOcSsu7Jrhb7VP1vqRW2h+tAKlAI7YxRxit8=; b=cgaLZejrqasjDTSXk/X67oopAnj6hNftJmCBT/P4GqsrXdOaCBZy3f1idNp7tobcd5 hk2bvwJezZdLOJIeMihEc+NuwjwR465Uf/FI+SqSX69ZE4etu7rieGsJhgOeFno4HJmz WZrG1Mxl5QxPdYjP+h6S3cmmlezNtX9rC1Drth0rQyZDwtS0GPgLSD5tBHIyCeyE2UaP L8RUZ3tXw5HCUHICIJbQM8CQYebA71JUnZu2WNMlSAkBizgxMuL8ThuvRVLSShg0xaVg iH7Ljwjv19Bn/J6PkuIi0fhofVAnuVHI+sx8arzausUNg7XdmXPo1NOHSAaQJiIrJiXg Br5A== X-Gm-Message-State: APjAAAVHL93W/kTixo6CTxcfRvH8Cjkj/ndY2n+CiCOHv3wa5u4kcdpd YLpaIRfKlPZQJsPBV7ETq2C04tLfLmo= X-Google-Smtp-Source: APXvYqzEU7xkmQWhxUcj3J6VZ5IuuRjFgs2MAtgSW8+1vIUcc4RLUd+dRw6jwgT9WRe4lTgCI/Ajfg== X-Received: by 2002:aca:5091:: with SMTP id e139mr19807192oib.41.1575218731383; Sun, 01 Dec 2019 08:45:31 -0800 (PST) Received: from mail-oi1-f175.google.com (mail-oi1-f175.google.com. [209.85.167.175]) by smtp.gmail.com with ESMTPSA id 64sm5169850oth.31.2019.12.01.08.45.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 01 Dec 2019 08:45:30 -0800 (PST) Received: by mail-oi1-f175.google.com with SMTP id c16so8093402oic.3; Sun, 01 Dec 2019 08:45:29 -0800 (PST) X-Received: by 2002:aca:5cc4:: with SMTP id q187mr5810235oib.45.1575218729332; Sun, 01 Dec 2019 08:45:29 -0800 (PST) MIME-Version: 1.0 References: <201912010728.xB17SQkC019214@sdf.org> In-Reply-To: <201912010728.xB17SQkC019214@sdf.org> From: Tomasz CEDRO Date: Sun, 1 Dec 2019 17:45:17 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: pendrive clone impossible ? To: Scott Bennett Cc: FreeBSD Questions Mailing List , Polytropon , Anatoly , gljennjohn@gmail.com, "freebsd-usb@FreeBSD.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 47QvHx11Hgz40h8 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=gTi/7w5h; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::244) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-1.67 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCPT_COUNT_FIVE(0.00)[6]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; RCVD_IN_DNSWL_NONE(0.00)[4.4.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[]; IP_SCORE(-0.37)[ip: (2.37), ipnet: 2607:f8b0::/32(-2.25), asn: 15169(-1.94), country: US(-0.05)] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Dec 2019 16:45:35 -0000 On Sun, Dec 1, 2019 at 8:28 AM Scott Bennett wrote: > >Does GEOM in any way prevents me from using disk that has corrupt MBR? > Yes, most likely. > > >Why I cannot write a MBR from a file but I can from a md0? > >Any hints welcome :-) > See the last line of your messages below. > (..) > >ugen0.8: at usbus0 > >umass1 on uhub0 > >umass1: on usbus0 > >umass1: SCSI over Bulk-Only; quirks = 0x8100 > >umass1:3:1: Attached to scbus3 > >da1 at umass-sim1 bus 1 scbus3 target 0 lun 0 > >da1: Removable Direct Access SPC-4 SCSI device > >da1: Serial Number BLAHBLAH > >da1: 400.000MB/s transfers > >da1: 118272MB (242221056 512 byte sectors) > >da1: quirks=0x2 > >GEOM_PART: integrity check failed (da1, MBR) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ There is your hint, courtesy of > ||||||||| |||||||||||||||||||||| FreeBSD's GEOM_PART kernel class. Hello Scott and thank you for your valuable input. If you are sure that this is NOT a problem of a pendrive or anything USB related with that particular pendrive (i.e. some quirk required for valid operations), and you ARE sure that this is a matter of GEOM, then: 1. OS / GEOM is hiding things from operator. It does not write bytes as instructed to fix the disk, instead, it considers disk invalid and silently discards _only_some_of_the_data_ with no clear error/warning indication. Unacceptable!!! 2. OS / GEOM lies to operator. It does return a SUCCESS code while _some_ data goes to /dev/null. Unacceptale!!! 3. If disk is _considered_ broken then access should be _fully_ blocked. But how am I supposed to fix it when OS silently blocks essential part of the fix? Who allows writing over a corrupted disk anyway? 4. OS / GEOM is broken and incoherent in this area and proves system unreliable / not trustworthy. This needs to be fixed please. Will report a bug. That "irrelevant blather" just proves above. OS cannot silently interfere with operator actions and do whatever it likes. Other people also noticed this problem. This is not the FreeBSD way, looks more like Linux way. Now it looks like the factory pre-format pendrive was considered invalid by GEOM, this is why the initial `dd if=/dev/da0 of=/dev/da1` copied _almost_ whole data but without MBR. Then the situation escalated - MBR dumped to a file could not be written to a target drive, but it could be written from a md0 device, and all sorts of black magic. It THIS IS UNACCEPTABLE!!! When I DD something from IF then it must get untouched into OF, unless missing privilege or hardware failure error is clearly reported preventing further actions. Damn, the DD is the simplest thing in Unix. Either I get the command executed exactly as instructed, or not executed at all. The return code is here to say what happened. Error is here to show me something is wrong. As simple as that. Now it looks like the disk is okay, just GEOM did some interpretation, knew better what I want to, and did, without telling me that. Imagine there were some really sensitive backups on the drive and system decided only to copy selected parts of them with no error. Not a problem for you? Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-usb@freebsd.org Sun Dec 1 16:56:43 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E90081B1031 for ; Sun, 1 Dec 2019 16:56:43 +0000 (UTC) (envelope-from dr.klepp@gmx.at) Received: from vie01a-dmta-at51-1.mx.upcmail.net (vie01a-dmta-at51-1.mx.upcmail.net [62.179.121.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47QvXq2KgMz416f for ; Sun, 1 Dec 2019 16:56:42 +0000 (UTC) (envelope-from dr.klepp@gmx.at) Received: from [172.31.216.41] (helo=vie01a-pemc-psmtp-at50) by vie01a-dmta-at51.mx.upcmail.net with esmtp (Exim 4.92) (envelope-from ) id 1ibSQu-000ATb-O9 for freebsd-usb@freebsd.org; Sun, 01 Dec 2019 17:50:52 +0100 Received: from x61.lan ([85.126.97.210]) by vie01a-pemc-psmtp-at50 with SMTP @ mailcloud.upcmail.net id Ygqk2100J4YLlkt0Bgqk0m; Sun, 01 Dec 2019 17:50:44 +0100 X-SourceIP: 85.126.97.210 X-CNFS-Analysis: v=2.2 cv=O6RJhF1W c=1 sm=2 tr=0 cx=a_idp_f a=/Ac8Q0O/YFE5LOLfUiYZVw==:117 a=/Ac8Q0O/YFE5LOLfUiYZVw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=8nJEP1OIZ-IA:10 a=oX08kPI8AAAA:8 a=oLXOUSOz6OexxVcRGBMA:9 a=wPNLvfGTeEIA:10 a=HoS0eNqkKlFy34tK5QRU:22 From: "Dr. Nikolaus Klepp" To: freebsd-usb@freebsd.org Subject: Re: pendrive clone impossible ? Date: Sun, 1 Dec 2019 17:50:53 +0100 User-Agent: KMail/1.9.10 References: <201912010728.xB17SQkC019214@sdf.org> In-Reply-To: X-KMail-QuotePrefix: > MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201912011750.53770.dr.klepp@gmx.at> X-Rspamd-Queue-Id: 47QvXq2KgMz416f X-Spamd-Bar: ++++++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=fail (mx1.freebsd.org: domain of dr.klepp@gmx.at does not designate 62.179.121.139 as permitted sender) smtp.mailfrom=dr.klepp@gmx.at X-Spamd-Result: default: False [8.79 / 15.00]; FREEMAIL_FROM(0.00)[gmx.at]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; RCVD_IN_DNSWL_LOW(-0.10)[139.121.179.62.list.dnswl.org : 127.0.5.1]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:6830, ipnet:62.179.0.0/17, country:AT]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[gmx.at]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; R_SPF_FAIL(1.00)[-all]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[gmx.at]; NEURAL_SPAM_MEDIUM(0.99)[0.989,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE_FREEMAIL(0.00)[]; MIME_TRACE(0.00)[0:+]; NEURAL_SPAM_LONG(1.00)[1.000,0]; MID_CONTAINS_FROM(1.00)[]; FROM_NAME_HAS_TITLE(1.00)[dr]; IP_SCORE(0.00)[ipnet: 62.179.0.0/17(1.50), asn: 6830(3.73), country: AT(-0.10)]; FORGED_MUA_KMAIL_MSGID(3.00)[]; GREYLIST(0.00)[pass,body] X-Spam: Yes X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Dec 2019 16:56:44 -0000 Anno domini 2019 Sun, 1 Dec 17:45:17 +0100 Tomasz CEDRO scripsit: > On Sun, Dec 1, 2019 at 8:28 AM Scott Bennett wrote: > > >Does GEOM in any way prevents me from using disk that has corrupt MBR? > > Yes, most likely. > > > > >Why I cannot write a MBR from a file but I can from a md0? > > >Any hints welcome :-) > > See the last line of your messages below. > > (..) > > >ugen0.8: at usbus0 > > >umass1 on uhub0 > > >umass1: on usbus0 > > >umass1: SCSI over Bulk-Only; quirks = 0x8100 > > >umass1:3:1: Attached to scbus3 > > >da1 at umass-sim1 bus 1 scbus3 target 0 lun 0 > > >da1: Removable Direct Access SPC-4 SCSI device > > >da1: Serial Number BLAHBLAH > > >da1: 400.000MB/s transfers > > >da1: 118272MB (242221056 512 byte sectors) > > >da1: quirks=0x2 > > >GEOM_PART: integrity check failed (da1, MBR) > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ There is your hint, courtesy of > > ||||||||| |||||||||||||||||||||| FreeBSD's GEOM_PART kernel class. > > Hello Scott and thank you for your valuable input. If you are sure > that this is NOT a problem of a pendrive or anything USB related with > that particular pendrive (i.e. some quirk required for valid > operations), and you ARE sure that this is a matter of GEOM, then: > > 1. OS / GEOM is hiding things from operator. It does not write bytes > as instructed to fix the disk, instead, it considers disk invalid and > silently discards _only_some_of_the_data_ with no clear error/warning > indication. Unacceptable!!! > > 2. OS / GEOM lies to operator. It does return a SUCCESS code while > _some_ data goes to /dev/null. Unacceptale!!! > > 3. If disk is _considered_ broken then access should be _fully_ > blocked. But how am I supposed to fix it when OS silently blocks > essential part of the fix? Who allows writing over a corrupted disk > anyway? > > 4. OS / GEOM is broken and incoherent in this area and proves system > unreliable / not trustworthy. This needs to be fixed please. Will > report a bug. > > > That "irrelevant blather" just proves above. OS cannot silently > interfere with operator actions and do whatever it likes. Other people > also noticed this problem. This is not the FreeBSD way, looks more > like Linux way. > > Now it looks like the factory pre-format pendrive was considered > invalid by GEOM, this is why the initial `dd if=/dev/da0 of=/dev/da1` > copied _almost_ whole data but without MBR. Then the situation > escalated - MBR dumped to a file could not be written to a target > drive, but it could be written from a md0 device, and all sorts of > black magic. It THIS IS UNACCEPTABLE!!! > > When I DD something from IF then it must get untouched into OF, unless > missing privilege or hardware failure error is clearly reported > preventing further actions. > > Damn, the DD is the simplest thing in Unix. > > Either I get the command executed exactly as instructed, or not > executed at all. The return code is here to say what happened. Error > is here to show me something is wrong. As simple as that. > > Now it looks like the disk is okay, just GEOM did some interpretation, > knew better what I want to, and did, without telling me that. > > Imagine there were some really sensitive backups on the drive and > system decided only to copy selected parts of them with no error. Not > a problem for you? > > Tomek > IMO your pendrive is broken. Please try the same operation on a live-linux and check again. Nik -- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ... From owner-freebsd-usb@freebsd.org Sun Dec 1 17:22:31 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 62CC51B1E4A for ; Sun, 1 Dec 2019 17:22:31 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Qw6Z3ZrZz42Zf for ; Sun, 1 Dec 2019 17:22:30 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oi1-x22c.google.com with SMTP id l136so14669919oig.1 for ; Sun, 01 Dec 2019 09:22:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=aoRzL/gyZ3aClP8P5Cs+MbT9uQ2smm8ZTdO0mtzhNIs=; b=DreyDbBgH+gjMI0K9DNimbsq4BEQqCSwIv8HJzyW+/yT29xKb21MpWW8A/AvHPiyil fqLJVMOG7qkx2zg7ECy/jZO35csZkgrro+13GDxHSWlj2KHJPXrY/glsKDCZOwev2aor iEazMs+DOr0mA5jreF/RUbC7ZV5QpuC4kYnik/J8urbO4azeBJ98qly/9rk1BQDQHxqY 17Df1HWJIj9U/2MQOaWyj84Y5/k5CCZcM9mP/40exepBUlfV6hlnMxA42zFqUleYavNU CdUaLA3/MMBeztLVWAXYbsYlEBGymHDyi1M8pAyW1B/5zihBgI/LZ1DS30wxfPYqt3j2 mvvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=aoRzL/gyZ3aClP8P5Cs+MbT9uQ2smm8ZTdO0mtzhNIs=; b=dk4UHt/KwWJzAgw4uARwQBxbDG+9t7zbgm/Ph05Bx69INlIFpu0TF3Xtuj/dApdIFA Q4NtALWDPl+Cpu+fNQkfaTty67A6iXlKqNXEWGsSgjGGEHm2QDTmx/vPxAoj/v0Ski6J Zm3E62S++HX7W9iEGjHWZkseh/bAPFUMeSZrfuYnkm89JjLNZpQ1I+3c/FFaWDjSUNGA vGc1ZQKyu08Tr06sZVNRXxVn5W6Ad4ZHpzihtm5h8o6UMl697iasou5fT0Z+P+kHWLyV VAx4u1F7AxlrzQm6PZrp1QBWD3nMdKoe/ZMdibfhoGiys2JrDu3bVmBnlbhtJ/Zh6JaL ZODA== X-Gm-Message-State: APjAAAXhufGHv8ufX2amzvv8p3bSfNFrUnhrSivD5OjO3FRDBVaYZMj6 b+I9323y/PXoTEQsI/7fVOkezEuy6pc= X-Google-Smtp-Source: APXvYqwvQDN+ChWSBiA0KjZuR9dEqFnlqztrCkcUpBOppOBKSUpXrZqjgfEJ+RHXbqrhb67mvNyoHw== X-Received: by 2002:aca:c492:: with SMTP id u140mr17314534oif.80.1575220949009; Sun, 01 Dec 2019 09:22:29 -0800 (PST) Received: from mail-oi1-f171.google.com (mail-oi1-f171.google.com. [209.85.167.171]) by smtp.gmail.com with ESMTPSA id o2sm9714230oih.19.2019.12.01.09.22.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 01 Dec 2019 09:22:28 -0800 (PST) Received: by mail-oi1-f171.google.com with SMTP id b8so1039072oiy.5; Sun, 01 Dec 2019 09:22:27 -0800 (PST) X-Received: by 2002:aca:d5d3:: with SMTP id m202mr9212431oig.161.1575220947348; Sun, 01 Dec 2019 09:22:27 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Tomasz CEDRO Date: Sun, 1 Dec 2019 18:22:15 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: pendrive clone impossible ? To: FreeBSD Questions Mailing List , "freebsd-usb@FreeBSD.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 47Qw6Z3ZrZz42Zf X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=DreyDbBg; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::22c) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.88 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[c.2.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[]; IP_SCORE(-2.58)[ip: (-8.68), ipnet: 2607:f8b0::/32(-2.25), asn: 15169(-1.94), country: US(-0.05)] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Dec 2019 17:22:31 -0000 As my previous message got moderated, just a quick summary - looks like a GEOM_PART silently discards writes to MBR with a DD when it considers MBR broken (writing to the rest of the disk is possible). I have reported this as error: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242341 -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-usb@freebsd.org Sun Dec 1 18:33:51 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 02FDB1B4139 for ; Sun, 1 Dec 2019 18:33:51 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Qxht0CqSz45vg for ; Sun, 1 Dec 2019 18:33:49 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x72e.google.com with SMTP id x1so15612934qkl.12 for ; Sun, 01 Dec 2019 10:33:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eZO7X52rNQ5gEhcp8cJsf76ixZbsVncglcuUj3a3X7w=; b=u87tDB+WcUGhcMPZ5pbIRQboWKWFjoJnKkebDCw8D2q/6dnOeg3gecDcNjPLfBd2up eiLGKrwRoSlxnscVjLcYrG17Q1V2bCOJFWqjFnJAXPNNiVbRc0+bydX1Khz/qMX0V/VY qwHFT5Y/YvbRrQeyYp4NQN4UheQ1kAvte4m3FZx6EBorWO3dp0r+pCqxroumkkz74EYW xFzMH30slugT4RLB1fpmxLodOzVIYRiLjzzXP20LrQFuAiBbpLEgLN0T8NFsJWMWXBIq J1DpzyNYACeFo4yjtzrJTpmyeuFgwO0sji+Np5z76rslE7TatrqwRQ/z7BYagLASUMjE Sa3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eZO7X52rNQ5gEhcp8cJsf76ixZbsVncglcuUj3a3X7w=; b=F1chpT+5Vw2P7Fqh6L4UPuh8ai2p6bgdHmDCTkcje25zB3+7L/FdhiFYdV1y5Wz8qZ J6UqnDSibsTWGhKOv+jS6pfFp7cCZMA4N+J0aTiAGTI9wF0AUcvLWq04X/lbuZMYeLx+ kDptIC939x9pqE+VaTS9AWnDNV8VL6HLIgX4f+D0ZF/C6pW5D0gmszVXRVLp53ynXgM3 3fiy7eSvL2MJs8SHa2yzEXer70kHGwF3wlmSua4e894i6qsUgYkQw7tTkQmqgcwqu4qN erqG/B5XSplULCQXTJPokRRshtlXl2csGjTmHB63Bzm9eFd0r1Zlep7YoKTuIjp70h1t EK3Q== X-Gm-Message-State: APjAAAWI30nrBJAfN6Gj1/h0vvTD3DRGRh1HR6eqAJG6QMisNirNK9/J hNY+gBHoojenK2cQUAo2m3hchdfcJ0G3uxHtEyoPPA== X-Google-Smtp-Source: APXvYqzPxsXBTfwCLyqczSM8tI0VZYvjUhgHVBCD+sNVyjLQf9+xOnaG6z3CdFRaH9sq2Stf2/avdC5aQ6EZHfLJEHc= X-Received: by 2002:a05:620a:144:: with SMTP id e4mr27047874qkn.240.1575225228320; Sun, 01 Dec 2019 10:33:48 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Sun, 1 Dec 2019 11:33:36 -0700 Message-ID: Subject: Re: pendrive clone impossible ? To: Tomasz CEDRO Cc: freebsd-questions@freebsd.org, "freebsd-usb@FreeBSD.org" X-Rspamd-Queue-Id: 47Qxht0CqSz45vg X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=u87tDB+W; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::72e) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-2.70 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; IP_SCORE(-2.70)[ip: (-9.27), ipnet: 2607:f8b0::/32(-2.25), asn: 15169(-1.94), country: US(-0.05)]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; URI_COUNT_ODD(1.00)[9]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCVD_IN_DNSWL_NONE(0.00)[e.2.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Dec 2019 18:33:51 -0000 On Sun, Dec 1, 2019, 10:22 AM Tomasz CEDRO wrote: > As my previous message got moderated, just a quick summary - looks > like a GEOM_PART silently discards writes to MBR with a DD when it > considers MBR broken (writing to the rest of the disk is possible). I > have reported this as error: > I'm sorry, but you are wrong. It does no such thing. The error posted is on close when geom retastes the drive and finds bogus data. Geom *never* changes a write, ever, nor does it filter them. Gpart is not even looped in when writing to the raw disk with dd, though it may indirectly deny the open of the device. Debug flags 16 permits the open, but has no other effect. Some thumb drive have antivirus protection that will reject a write that is bogus. Warner https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242341 > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info > _______________________________________________ > freebsd-usb@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > From owner-freebsd-usb@freebsd.org Sun Dec 1 21:00:55 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5306C1B8718 for ; Sun, 1 Dec 2019 21:00:55 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47R0yb1bj3z4Gbl for ; Sun, 1 Dec 2019 21:00:55 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 339221B8707; Sun, 1 Dec 2019 21:00:55 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3312A1B8706 for ; Sun, 1 Dec 2019 21:00:55 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47R0yb0fTVz4Gbg for ; Sun, 1 Dec 2019 21:00:55 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id EEAF41C972 for ; Sun, 1 Dec 2019 21:00:54 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xB1L0sPh020147 for ; Sun, 1 Dec 2019 21:00:54 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xB1L0srb020146 for usb@FreeBSD.org; Sun, 1 Dec 2019 21:00:54 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201912012100.xB1L0srb020146@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: usb@FreeBSD.org Subject: Problem reports for usb@FreeBSD.org that need special attention Date: Sun, 1 Dec 2019 21:00:54 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Dec 2019 21:00:55 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 213877 | xhci reset causes panic on SuperMicro A1SRi-2758F Open | 233884 | Corsair CORSAIR K70 RGB MK.2 / K63 / K63 Wireless Open | 234578 | Support for Sierra Wireless EM7455 modem Open | 237666 | repeated messages of "uhub_reattach_port: giving 4 problems total for which you should take action. From owner-freebsd-usb@freebsd.org Wed Dec 4 12:14:03 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0BBA21B3130 for ; Wed, 4 Dec 2019 12:14:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47Sd7G6TkDz3HlQ for ; Wed, 4 Dec 2019 12:14:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id DE8541B312E; Wed, 4 Dec 2019 12:14:02 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DE49E1B312B for ; Wed, 4 Dec 2019 12:14:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Sd7G3ZFPz3HlN for ; Wed, 4 Dec 2019 12:14:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5E03C27DDB for ; Wed, 4 Dec 2019 12:14:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xB4CE2wK068533 for ; Wed, 4 Dec 2019 12:14:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xB4CE25w068529 for usb@FreeBSD.org; Wed, 4 Dec 2019 12:14:02 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 237666] repeated messages of "uhub_reattach_port: giving up port reset - device vanished" Date: Wed, 04 Dec 2019 12:13:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: needs-qa, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Dec 2019 12:14:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237666 --- Comment #69 from Hans Petter Selasky --- Ping - any news here? Did anyone complete bisecting? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Wed Dec 4 13:35:11 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3EAF51BB63B for ; Wed, 4 Dec 2019 13:35:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47Sfwv10J8z3Lsy for ; Wed, 4 Dec 2019 13:35:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 204BC1BB63A; Wed, 4 Dec 2019 13:35:11 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 201131BB639 for ; Wed, 4 Dec 2019 13:35:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Sfwv06WPz3Lsx for ; Wed, 4 Dec 2019 13:35:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D8CBECB7 for ; Wed, 4 Dec 2019 13:35:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xB4DZAYb080026 for ; Wed, 4 Dec 2019 13:35:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xB4DZAGQ080023 for usb@FreeBSD.org; Wed, 4 Dec 2019 13:35:10 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 237666] repeated messages of "uhub_reattach_port: giving up port reset - device vanished" Date: Wed, 04 Dec 2019 13:35:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: needs-qa, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: gerard_seibert@outlook.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Dec 2019 13:35:11 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237666 --- Comment #70 from Gerard Seibert --- (In reply to Hans Petter Selasky from comment #69) I don't believe that a solution has been discovered as of yet. The really b= ad news is that this "bug" apparently also infects the FreeBSD 13.x branch. I = am still stuck on the 11.x branch with no avenue available to upgrade my OS. I have faith that they will find the bug and squash it. Thought of the Day: "Real stupidity beats artificial intelligence every time.=E2=80=9D --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Wed Dec 4 14:23:09 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2BD661C0A84 for ; Wed, 4 Dec 2019 14:23:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47Sh0F0PTgz3NwB for ; Wed, 4 Dec 2019 14:23:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 0DBF21C0A83; Wed, 4 Dec 2019 14:23:09 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0D84F1C0A82 for ; Wed, 4 Dec 2019 14:23:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Sh0D6h4cz3Nw9 for ; Wed, 4 Dec 2019 14:23:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CA13E1633 for ; Wed, 4 Dec 2019 14:23:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xB4EN8Tv093170 for ; Wed, 4 Dec 2019 14:23:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xB4EN86k093163 for usb@FreeBSD.org; Wed, 4 Dec 2019 14:23:08 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 237666] repeated messages of "uhub_reattach_port: giving up port reset - device vanished" Date: Wed, 04 Dec 2019 14:23:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: needs-qa, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Dec 2019 14:23:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237666 --- Comment #71 from Hans Petter Selasky --- Is this hardware something that can be bought cheaply? --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Wed Dec 4 15:55:18 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2B41B1CA6C6 for ; Wed, 4 Dec 2019 15:55:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47Sk2Z0RWqz40kW for ; Wed, 4 Dec 2019 15:55:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 0F1431CA6C5; Wed, 4 Dec 2019 15:55:18 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0ED831CA6C4 for ; Wed, 4 Dec 2019 15:55:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Sk2Y6kKlz40kV for ; Wed, 4 Dec 2019 15:55:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CA44726E0 for ; Wed, 4 Dec 2019 15:55:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xB4FtH3k076158 for ; Wed, 4 Dec 2019 15:55:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xB4FtH8s076157 for usb@FreeBSD.org; Wed, 4 Dec 2019 15:55:17 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 237666] repeated messages of "uhub_reattach_port: giving up port reset - device vanished" Date: Wed, 04 Dec 2019 15:55:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: needs-qa, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: gerard_seibert@outlook.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Dec 2019 15:55:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237666 --- Comment #72 from Gerard Seibert --- (In reply to Hans Petter Selasky from comment #71) I cannot speak for anyone else; however, in my case, this was a brand new D= ell XPS 8930 PC. I purchased it as a cheap replacement for one of my old (2007)= PCs that was barely limping along. Everything was stock. No fancy add-ons, etcetera. I have posted the DMESG, comment #68, previously. For the record,= my "OLD" unit was running FreeBSD 12. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Wed Dec 4 16:01:52 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D84091CB0D7 for ; Wed, 4 Dec 2019 16:01:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47SkB85VLrz418R for ; Wed, 4 Dec 2019 16:01:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id BC9F81CB0D6; Wed, 4 Dec 2019 16:01:52 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BC6651CB0D5 for ; Wed, 4 Dec 2019 16:01:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47SkB84dhVz418P for ; Wed, 4 Dec 2019 16:01:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8399D2875 for ; Wed, 4 Dec 2019 16:01:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xB4G1q7E096408 for ; Wed, 4 Dec 2019 16:01:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xB4G1q7U096407 for usb@FreeBSD.org; Wed, 4 Dec 2019 16:01:52 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 237666] repeated messages of "uhub_reattach_port: giving up port reset - device vanished" Date: Wed, 04 Dec 2019 16:01:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: needs-qa, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: schmidt@ze.tum.de X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Dec 2019 16:01:52 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237666 --- Comment #73 from schmidt@ze.tum.de --- (In reply to Hans Petter Selasky from comment #71) My Mainboad is a servermainboard from supermicro. So nothing realy cheap th= ere. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Wed Dec 4 16:21:40 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1FE111CCD1A for ; Wed, 4 Dec 2019 16:21:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47Skd0071vz42Df for ; Wed, 4 Dec 2019 16:21:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 044231CCD19; Wed, 4 Dec 2019 16:21:40 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 040CA1CCD18 for ; Wed, 4 Dec 2019 16:21:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Skcz6Pr4z42Dc for ; Wed, 4 Dec 2019 16:21:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BFF682B53 for ; Wed, 4 Dec 2019 16:21:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xB4GLdxx041132 for ; Wed, 4 Dec 2019 16:21:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xB4GLdhh041104 for usb@FreeBSD.org; Wed, 4 Dec 2019 16:21:39 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 237666] repeated messages of "uhub_reattach_port: giving up port reset - device vanished" Date: Wed, 04 Dec 2019 16:21:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: needs-qa, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: gerard_seibert@outlook.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Dec 2019 16:21:40 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237666 --- Comment #74 from Gerard Seibert --- While I do not believe this to be an "edge" case, I don't think it will get= any serious attention until more users speak up. I know of at least one other u= ser who has the same problem and has not posted it. I will encourage them to do= so. I do know that this problem has been reported on the Dell Community Forum. = They are claiming it is FreeBSD's problem since there have been no reports of is= sues from users of other operating systems. Until enough users file a complaint against this bug, I doubt that it will = get any serious attention. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu Dec 5 01:46:18 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DA1DA1B5428 for ; Thu, 5 Dec 2019 01:46:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47Sz8V5XQ4z4bMy for ; Thu, 5 Dec 2019 01:46:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id BDFB81B5427; Thu, 5 Dec 2019 01:46:18 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BDBD51B5426 for ; Thu, 5 Dec 2019 01:46:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Sz8V4h5nz4bMx for ; Thu, 5 Dec 2019 01:46:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8490E972D for ; Thu, 5 Dec 2019 01:46:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xB51kIc2015654 for ; Thu, 5 Dec 2019 01:46:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xB51kIaa015653 for usb@FreeBSD.org; Thu, 5 Dec 2019 01:46:18 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 237666] repeated messages of "uhub_reattach_port: giving up port reset - device vanished" Date: Thu, 05 Dec 2019 01:46:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: needs-qa, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: karels@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Dec 2019 01:46:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237666 --- Comment #75 from Mike Karels --- (In reply to Hans Petter Selasky from comment #71) My hardware is not especially cheap, but is also not new and might not be readily available. It's a Gigabyte motherboard with a Haswell-E CPU. About bisection: I bisected on head, and ended up with r330957 as the commit that started the problem (see comment #50). It appears that that revision = was not merged separately to 12, so there is nothing to bisect there. That com= mit was an ACPI update. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri Dec 6 09:59:41 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4A2A21C7C14 for ; Fri, 6 Dec 2019 09:59:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47Tp3K1K3yz4G5D for ; Fri, 6 Dec 2019 09:59:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 2B3821C7C13; Fri, 6 Dec 2019 09:59:41 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2AFD51C7C12 for ; Fri, 6 Dec 2019 09:59:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Tp3K0P1cz4G5C for ; Fri, 6 Dec 2019 09:59:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E5A6A276E5 for ; Fri, 6 Dec 2019 09:59:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xB69xesI067715 for ; Fri, 6 Dec 2019 09:59:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xB69xebI067714 for usb@FreeBSD.org; Fri, 6 Dec 2019 09:59:40 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 237666] repeated messages of "uhub_reattach_port: giving up port reset - device vanished" Date: Fri, 06 Dec 2019 09:59:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: needs-qa, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Dec 2019 09:59:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237666 --- Comment #76 from Hans Petter Selasky --- OK, Can you add "options ACPI_DEBUG" to your kernel configuration file? Then in /boot/loader.conf add: debug.acpi.layer=3D"ACPI_ALL_COMPONENTS ACPI_ALL_DRIVERS" debug.acpi.level=3D"ACPI_LV_ERROR" The list of valid keywords are given by: sys/dev/acpica/acpi.c Try to correlate an ACPI event with the enumeration failure! If no ACPI events, try to enable more ACPI debug layers/levels until you fi= nd such an event or error message. --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri Dec 6 10:16:38 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 81DCC1C8121 for ; Fri, 6 Dec 2019 10:16:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47TpQt2xPQz4Ghk for ; Fri, 6 Dec 2019 10:16:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 62C701C8120; Fri, 6 Dec 2019 10:16:38 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 628311C811F for ; Fri, 6 Dec 2019 10:16:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47TpQt20Y0z4Ghh for ; Fri, 6 Dec 2019 10:16:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 291FB27A7C for ; Fri, 6 Dec 2019 10:16:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xB6AGct1015017 for ; Fri, 6 Dec 2019 10:16:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xB6AGcns015016 for usb@FreeBSD.org; Fri, 6 Dec 2019 10:16:38 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 237666] repeated messages of "uhub_reattach_port: giving up port reset - device vanished" Date: Fri, 06 Dec 2019 10:16:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: needs-qa, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Dec 2019 10:16:38 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237666 --- Comment #77 from Hans Petter Selasky --- If that fails, try to compare ACPI debug output before and after r330957. --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Sat Dec 7 15:19:17 2019 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 476FC1D528E for ; Sat, 7 Dec 2019 15:19:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47VY5d1GLRz3Nyw for ; Sat, 7 Dec 2019 15:19:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 2B5731D528D; Sat, 7 Dec 2019 15:19:17 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2B1C31D528C for ; Sat, 7 Dec 2019 15:19:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47VY5d0RqGz3Nyv for ; Sat, 7 Dec 2019 15:19:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E75271BB61 for ; Sat, 7 Dec 2019 15:19:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xB7FJGLj011356 for ; Sat, 7 Dec 2019 15:19:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xB7FJGqA011346 for usb@FreeBSD.org; Sat, 7 Dec 2019 15:19:16 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 237666] repeated messages of "uhub_reattach_port: giving up port reset - device vanished" Date: Sat, 07 Dec 2019 15:19:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: needs-qa, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: karels@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Dec 2019 15:19:17 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237666 --- Comment #78 from Mike Karels --- I built a stable/12 kernel with ACPI debug. ACPI_DEBUG by itself didn't compile; it used global variables conditional on ACPI_DEBUGGER. I added ACPI_DEBUGGER, and added that to conf/options. Using the suggested loader variables, there was no new output. I don't see ACPI_LV_ERROR in acpi.c. I tried verbosity1, and that spewed messages so f= ast it prevented a successful boot in 20 minutes or so. I then tried ACPI_LV_I= NFO. Here is what is logged in about a second, from one "vanished" message to t= he next: Dec 7 09:09:35 pughole kernel: uhub_reattach_port: giving up port reset - devic e vanished Dec 7 09:09:35 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-Confi g 0 (8) Seg(0000) Bus(0000) Dev(0003) Func(0002) Reg(00b2) Dec 7 09:09:35 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-Confi g 0 (8) Seg(0000) Bus(0000) Dev(0003) Func(0002) Reg(00aa) Dec 7 09:09:35 pughole syslogd: last message repeated 3 times Dec 7 09:09:35 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-Confi g 1 (8) Seg(0000) Bus(0000) Dev(0003) Func(0002) Reg(00aa) Dec 7 09:09:35 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-Confi g 0 (8) Seg(0000) Bus(0000) Dev(0003) Func(0002) Reg(00aa) Dec 7 09:09:35 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-Confi g 0 (8) Seg(0000) Bus(0000) Dev(0003) Func(0003) Reg(00b2) Dec 7 09:09:35 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-Confi g 0 (8) Seg(0000) Bus(0000) Dev(0003) Func(0003) Reg(00aa) Dec 7 09:09:35 pughole syslogd: last message repeated 3 times Dec 7 09:09:35 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-Confi g 1 (8) Seg(0000) Bus(0000) Dev(0003) Func(0003) Reg(00aa) Dec 7 09:09:35 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-Confi g 0 (8) Seg(0000) Bus(0000) Dev(0003) Func(0003) Reg(00aa) Dec 7 09:09:35 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-Confi g 0 (8) Seg(0000) Bus(0080) Dev(0000) Func(0000) Reg(00b2) Dec 7 09:09:35 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-Confi g 0 (8) Seg(0000) Bus(0080) Dev(0000) Func(0000) Reg(00aa) Dec 7 09:09:35 pughole syslogd: last message repeated 3 times Dec 7 09:09:35 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-Confi g 1 (8) Seg(0000) Bus(0080) Dev(0000) Func(0000) Reg(00aa) Dec 7 09:09:35 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-Confi g 0 (8) Seg(0000) Bus(0080) Dev(0000) Func(0000) Reg(00aa) Dec 7 09:09:36 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-Confi g 0 (8) Seg(0000) Bus(0080) Dev(0002) Func(0000) Reg(00b2) Dec 7 09:09:36 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-Confi g 0 (8) Seg(0000) Bus(0080) Dev(0002) Func(0000) Reg(00aa) Dec 7 09:09:36 pughole syslogd: last message repeated 3 times ec 7 09:09:36 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-C= onfi g 1 (8) Seg(0000) Bus(0080) Dev(0002) Func(0000) Reg(00aa) Dec 7 09:09:36 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-Confi g 0 (8) Seg(0000) Bus(0080) Dev(0002) Func(0000) Reg(00aa) Dec 7 09:09:36 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-Confi g 0 (8) Seg(0000) Bus(0080) Dev(0002) Func(0001) Reg(00b2) Dec 7 09:09:36 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-Confi g 0 (8) Seg(0000) Bus(0080) Dev(0002) Func(0001) Reg(00aa) Dec 7 09:09:36 pughole syslogd: last message repeated 3 times Dec 7 09:09:36 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-Confi g 1 (8) Seg(0000) Bus(0080) Dev(0002) Func(0001) Reg(00aa) Dec 7 09:09:36 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-Confi g 0 (8) Seg(0000) Bus(0080) Dev(0002) Func(0001) Reg(00aa) Dec 7 09:09:36 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-Confi g 0 (8) Seg(0000) Bus(0080) Dev(0002) Func(0002) Reg(00b2) Dec 7 09:09:36 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-Confi g 0 (8) Seg(0000) Bus(0080) Dev(0002) Func(0002) Reg(00aa) Dec 7 09:09:36 pughole syslogd: last message repeated 3 times Dec 7 09:09:36 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-Confi g 1 (8) Seg(0000) Bus(0080) Dev(0002) Func(0002) Reg(00aa) Dec 7 09:09:36 pughole kernel: exregion-0527 ExPciConfigSpaceHandle: Pci-Confi g 0 (8) Seg(0000) Bus(0080) Dev(0002) Func(0002) Reg(00aa) Dec 7 09:09:36 pughole kernel: uhub_reattach_port: giving up port reset - devic e vanished I have no idea if this includes any useful information. --=20 You are receiving this mail because: You are the assignee for the bug.=