Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3009675rwo; Mon, 24 Jul 2023 05:05:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlE+Ut2iuRAVIZgrOv2dE9lDqvqSMu3X19bHLEWZF1jzwrmNw9JvcAnj9yKo779keyqW0Dda X-Received: by 2002:a17:902:ba91:b0:1bb:673f:36ae with SMTP id k17-20020a170902ba9100b001bb673f36aemr7056803pls.15.1690200330942; Mon, 24 Jul 2023 05:05:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690200330; cv=none; d=google.com; s=arc-20160816; b=ICis/l80KebeSBSejKozvOfwAZi5cHYfC9KcnE30iN3dQxJV3YSkkNUAdVn0DdrQvk EDE+99S764s09SJ3rbOKAz8bB3CtSmKGCRIB5kuMQDeKv/Bk1iIlDDK5TA3FUv/H62jb FpC/3fJV1kCZg4SNoDyce9UQtUBfCu2stNMCI6LFkD5Jy/DjrNhRwknPK4yzd2/rWxiy hv31IZBre5KdarTE8I3L6r36HTvNI9c3Mz8rhl32A6BQ+uDbOHbJpcgqlGl/oqlyq7Jp 3s+d+HEfNAdcR2TnOZrtb+zTzZtlzvcKIHPZoTwvHGjbBa5jDXReCbg9ofSUb4usUB2O 26mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=bACLSvsioxv49MYs9XN1df4vLILpl206RVNLYoKxqpo=; fh=Z+nhx6QZ6HmyKlncTv9WSLr6zWkD8w4FZdpcUrYRH0g=; b=rvelKtx56ko7K66np5TTSidZxgY/D+YQGWWCQ2CfLilpOoJI2sOy7A6/q2sbR4aat5 XNAnFKGRTGMDEDhcUFnG+u0hxYv1shxTaBWV44k9Rm42s4Aa5S/2xBzjz8rkK0/W7f41 1BrejgOvVS8wYxGvqFI6SM/+dxQQIGPfpjU/M7iNgLpuSU83fuea7u9WlvlSBBOZK+nB 5scuhgfW4ZG7G0ZrnV8ObY/yXrlhjrofbjMBh+5sHLX/bxhDw8nr+IX80xDAYAGbWfGm uu1yVoidzzIZxAHPgxqbyYgbosgB09bBfyAE9jZf5NNi4s2kOqRnXf3SfLiqL6CtGyJ8 ebgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="oSl3Q/m8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p6-20020a170902e74600b001bb993ef74bsi3305193plf.540.2023.07.24.05.05.17; Mon, 24 Jul 2023 05:05:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="oSl3Q/m8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229837AbjGXLxq (ORCPT + 99 others); Mon, 24 Jul 2023 07:53:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbjGXLxp (ORCPT ); Mon, 24 Jul 2023 07:53:45 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DD0EE5D; Mon, 24 Jul 2023 04:53:44 -0700 (PDT) Received: from nazgul.tnic (unknown [193.118.249.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id B51951EC0D1F; Mon, 24 Jul 2023 13:53:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1690199622; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=bACLSvsioxv49MYs9XN1df4vLILpl206RVNLYoKxqpo=; b=oSl3Q/m8pqnwWocdk1fWcZ4brHhm6Ok1ukSSqc58ZqKAS1pywGBEGVL23mkjgWKTVcOEMJ eO7AW8RKkWdzKeCJV8WmeRNo9R63YuwgahETpgRNIpp5N0f74R0OvBeTrPQfKRqJuAY2aJ DwLe8BtvkipUK+bf8iGziL6jVCuRhtQ= Date: Mon, 24 Jul 2023 13:54:20 +0200 From: Borislav Petkov To: Niklas Cassel Cc: linux-ide@vger.kernel.org, Damien Le Moal , lkml , Hannes Reinecke Subject: Re: WARNING: CPU: 1 PID: 67 at drivers/ata/libata-core.c:1688 ata_read_log_page+0x173/0x1f0 Message-ID: <20230724115420.GAZL5mbE+tlsq6vOdN@fat_crate.local> References: <20230722155621.GIZLv8JbURKzHtKvQE@fat_crate.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org + hare. On Mon, Jul 24, 2023 at 01:51:19PM +0200, Niklas Cassel wrote: > Hello Boris, > > this is a null pointer dereference, > because ap->ncq_sense_buf buffer is only allocated when CDL is enabled. > > We are not supposed to fetch sense data for successful NCQ commands when > CDL is not enabled. > > This is my bad. > Could you please test and see if this patch solves your problem: > https://lore.kernel.org/linux-ide/20230723130315.427513-1-nks@flawful.org/ Yap, saw it, thanks. I'll be able to get to it towards the end of the week. Will let you know, Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette