From nobody Sat Jun 12 13:10:36 2021 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 22AA67CA003 for ; Sat, 12 Jun 2021 13:10:42 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4G2J403566z4m1S for ; Sat, 12 Jun 2021 13:10:39 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by mail-wm1-x32d.google.com with SMTP id l7-20020a05600c1d07b02901b0e2ebd6deso10157020wms.1 for ; Sat, 12 Jun 2021 06:10:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to; bh=FMT634I5dEHrfqPhcHRh1enUhdaLDiIffNatyBEjA4U=; b=d83dISGjiqU7PRc1joj7ZOEpa97O0yIhj/x4BhcwRsrIA1xkI7M5sDNqP+ajFgj04j gRhtYq56HuS7z3wgq9cHn0yT5Us3yLlkDfy2imFYwqZtNxRNzK9kn7uizGHv7EKiKrMX hO5lXc8O7WQJqjgGzMi6+ObRJCPnQRw3oM9kXYfg5id9Wgs9GpERXIlahJAkG0BhZm/i cvT7Clyxc5ia4duqEYcH/Ta+8cbMYjNRXdlVQ3cMYdzEabet+QPcLjYlXzpXJQzqRN37 0MoS9GUr73tZhzfpcsOf/svFHmh/ejt+z/0hI5wOHmK5L5JTzqk2bmjls7ShPHyYvoH/ 2KwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=FMT634I5dEHrfqPhcHRh1enUhdaLDiIffNatyBEjA4U=; b=aUx+WhpkT+D4SuetBAMENTauxp/XBNIL3JZlQUEFqQySt9x4CHQVFx2S4tfmCwPmcD 7vbXvpx8tdu3OqohU55N50OtB8AuYvt4UIFZwbpWOFjZT5+YA7havWdxMcRcEYiZeMAk BKFckVgrSBOM6lSfZYbD0u1voaBLe5Tgoie39DI2brxZRrpyteWT1QWrwnlCxL+hRqBw rvaInHaVkoa7oV/D/wxq1AAvZdj2aatA3r1YSaRveaQ/v/sjn3+iCP5Up+75zE2DTKe/ wczq/Yhg58DQbgJmQXRVJUVojAETRsgH0Prbvrm4tYwrODUjUhwS7oRpjHtJFsbSLEEx DEyQ== X-Gm-Message-State: AOAM5315IM6OsRJV9lkz84xm+4+tteG6MQAc9QLpyH87C2pN9P/5+f9x 0DBY5aem+l7RP8HKOX48yFwSx9f0FUA= X-Google-Smtp-Source: ABdhPJxnpilxFwcTIjY4UNAWH6UF1IWGu9hxtfdOzkeDEYclB7UFT/TUK3OcYt23vyVzktK8ExDm3g== X-Received: by 2002:a1c:770b:: with SMTP id t11mr24852673wmi.79.1623503438134; Sat, 12 Jun 2021 06:10:38 -0700 (PDT) Received: from brick (cpc159423-cmbg20-2-0-cust338.5-4.cable.virginm.net. [86.7.147.83]) by smtp.gmail.com with ESMTPSA id p10sm10155644wrr.33.2021.06.12.06.10.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Jun 2021 06:10:37 -0700 (PDT) Date: Sat, 12 Jun 2021 14:10:36 +0100 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= To: Gary Jennejohn Cc: Warner Losh , FreeBSD Current Subject: Re: kernel panic while copying files Message-ID: Mail-Followup-To: Gary Jennejohn , Warner Losh , FreeBSD Current References: <20210607090109.08ecb130@ernst.home> <20210608084646.6a7e1bc7@ernst.home> <20210608155405.5cf0e200@ernst.home> <20210610095041.38d7597c@ernst.home> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210610095041.38d7597c@ernst.home> X-Rspamd-Queue-Id: 4G2J403566z4m1S X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=d83dISGj; dmarc=none; spf=pass (mx1.freebsd.org: domain of etnapierala@gmail.com designates 2a00:1450:4864:20::32d as permitted sender) smtp.mailfrom=etnapierala@gmail.com X-Spamd-Result: default: False [-2.14 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_SENDER(0.30)[trasz@freebsd.org,etnapierala@gmail.com]; RECEIVED_SPAMHAUS_PBL(0.00)[86.7.147.83:received]; MIME_TRACE(0.00)[0:+]; R_MIXED_CHARSET(0.56)[subject]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[trasz@freebsd.org,etnapierala@gmail.com]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::32d:from]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::32d:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::32d:from]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] X-ThisMailContainsUnwantedMimeParts: N On 0610T1150, Gary Jennejohn wrote: > On Tue, 8 Jun 2021 17:54:05 +0200 > Gary Jennejohn wrote: > > [big snip] [..] > So, I did ``git reset --hard 8dc96b74edb844bb621afeba38fe4af104b13120'', > which was the penultimate commit made by trasz to clear CCBs on the stack > after he committed 3394d4239b85b5577845d9e6de4e97b18d3dba58, the change > to allocate CCBs in UMA. > > Note that I only built the kernel and not world. > > I tried to reset to 3394d4239b85b5577845d9e6de4e97b18d3dba58 itself, > but without the following commits for CCBs on the stack the kernel > paniced during startup in AHCI. > > Anyway, this is the minimum set of changes relevant to the uma_ccbs > story and also results in a panic identical to the one listed above > when I set kern.cam.da.enable_uma_ccbs=1 and turn on the external USB > disk. > > So, Warner is probably right and at least the da_uma_ccbs commits > should be reverted until more research can be done on why the panic > happens. > > The ada_uma_ccbs commits do not cause any problems in my experience and > could probably be left in the kernel. Thank you, I'm working on a fix. Meanwhile - does the current code cause any problems with set kern.cam.da.enable_uma_ccbs set to 0? If it doesn't, it probably doesn't require backing off, since 0 is the default, and will keep being the default until bugs such as this one are fixed.