From nobody Mon Jan 31 20:13:31 2022 X-Original-To: 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 DE60A198B50A for ; Mon, 31 Jan 2022 20:13:38 +0000 (UTC) (envelope-from yuri@aetern.org) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4JnfQV1DC1z4jKf for ; Mon, 31 Jan 2022 20:13:38 +0000 (UTC) (envelope-from yuri@aetern.org) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 66F0E5C0182 for ; Mon, 31 Jan 2022 15:13:32 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 31 Jan 2022 15:13:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aetern.org; h=cc :content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm2; bh=oMpakG4Sr+OWlD9ydGCE64WaA4t0h79S1d12PX 5koro=; b=F5J5R5vlOzm6QbP0GhhrLNyEIA38En2Z3IFfG1nDE0DxumF66+nQSj i6TbYmiolZnbM2Fxprz3DAMkPocwF0M0dRkJjlBRn5sj1LBaUNg+MhQYcrW4pdG4 cRDUmoTUH9J1LA1k2cJAYgq0xZvUpoCba73486VQKJHUNDah/JVSEQxEPTPraAws iP6HL9ttjqOPY400Bp6HGIlanhYG5C1iOrJekrXsF/HCcBrVc3LonCoMZetlWk4C 9BDcAsJJn1mOdijyqosusAE/nPLCHZ0kt3ZSbL55EE8YZi56Jgfq4pGs3QR4f5LY tMpiZDqdusn669gKQmO2j6SsorfrRaGg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=oMpakG4Sr+OWlD9yd GCE64WaA4t0h79S1d12PX5koro=; b=J2i5NeVFLKtnGTs6BbL41C8roQILnTXFc omMo+/83PFaKQ7eW8of5lXcIZl6DOChKwWQwr8+xOel0WKIqsrm26rQ65VmGBFmb eSVtlVi9AQcVAvvzQMNyQhv0m/zc7TyjGl222m/e5jhwIhryPwjYm44dDsqLKMZo GwcOm6cTpgzseTooyqZmP7fLT4BwewS57QVVdoPRd2RCkyiD7AvOp0kYjpRt4vZu xDeesiiubsliMalu6Hu4KgQ5mp9pOzW47Gs6GwkNdOJjoREg+h8Dk1bJHqH9Hf22 2uigVWZnTVISIaF+1W+7I2vwMWZBqihY7ggIj+UBpB5wA/9lXC/KA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrgedugddufeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfvhffutgfgsehtjeertd dtfeejnecuhfhrohhmpegjuhhrihcuoeihuhhrihesrggvthgvrhhnrdhorhhgqeenucgg tffrrghtthgvrhhnpeffvefffefgteeuudekhfefvdfhjeetgfejffffieetvdfhfeejff ekleegjefftdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpeihuhhrihesrggvthgvrhhnrdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 31 Jan 2022 15:13:31 -0500 (EST) Message-ID: <2523cbfa-f44a-da34-7e24-d92e5dcbadc6@aetern.org> Date: Mon, 31 Jan 2022 23:13:31 +0300 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 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Content-Language: en-US To: current@freebsd.org From: Yuri Subject: smartpqi: panic: malloc(M_WAITOK) with sleeping prohibited Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4JnfQV1DC1z4jKf X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=aetern.org header.s=fm2 header.b=F5J5R5vl; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=J2i5NeVF; dmarc=none; spf=pass (mx1.freebsd.org: domain of yuri@aetern.org designates 66.111.4.28 as permitted sender) smtp.mailfrom=yuri@aetern.org X-Spamd-Result: default: False [-4.60 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[66.111.4.28:from]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.28:c]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[aetern.org:+,messagingengine.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.28:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[aetern.org:s=fm2,messagingengine.com:s=fm2]; FREEFALL_USER(0.00)[yuri]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; DMARC_NA(0.00)[aetern.org]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; MLMMJ_DEST(0.00)[current] X-ThisMailContainsUnwantedMimeParts: N Got this panic after booting GENERIC kernel: panic: malloc(M_WAITOK) with sleeping prohibited cpuid = 3 time = 1643658859 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00c7b20ae0 vpanic() at vpanic+0x17f/frame 0xfffffe00c7b20b30 panic() at panic+0x43/frame 0xfffffe00c7b20b90 malloc_dbg() at malloc_dbg+0xd4/frame 0xfffffe00c7b20bb0 malloc_domainset() at malloc_domainset+0x36/frame 0xfffffe00c7b20c20 bounce_bus_dmamem_alloc() at bounce_bus_dmamem_alloc+0x5b/frame 0xfffffe00c7b20c50 os_dma_mem_alloc() at os_dma_mem_alloc+0xe3/frame 0xfffffe00c7b20c90 pqisrc_build_send_raid_request() at pqisrc_build_send_raid_request+0x78/frame 0xfffffe00c7b20d30 pqisrc_write_current_time_to_host_wellness() at pqisrc_write_current_time_to_host_wellness+0xff/frame 0xfffffe00c7b20df0os_wellness_periodic() at os_wellness_periodic+0x1a/frame 0xfffffe00c7b20e10 softclock_call_cc() at softclock_call_cc+0x14d/frame 0xfffffe00c7b20ec0 softclock_thread() at softclock_thread+0xc6/frame 0xfffffe00c7b20ef0 fork_exit() at fork_exit+0x80/frame 0xfffffe00c7b20f30 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00c7b20f30 The reason seems to be obvious enough, changing BUS_DMA_WAITOK to BUS_DMA_NOWAIT in os_dma_mem_alloc() helps.