From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DCACF3B1EE2; Fri, 21 Aug 2026 08:35:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787301361; cv=none; b=YlOR4UrgTH17CrPHVXSmCVUCYOX8f0/j7MytLnZA3jOjS9gdYnw+iYyYt/1l3Oeto6jAlaqoP2d5LeeXM7m5TK9+t+Tgw01kD7WXG1MG/hHEo6K75ojgAORRW2Blip/+ee1m+OmfTUrli1HdoFvHkGgWkVaohbvKl2mXEfgHwrw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787301361; c=relaxed/simple; bh=EJYE5osII66Y2HveI+uu49t7RXfKKfg3eaJiiA93NT8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mTxlu8oESbVv/lEEbEAihakHnMTyDcGwGYNBR/nZw6vEZR2WQaE5mB0eDl6MsBqcx653tvsGGfDESoNPKJwZArXlrLU5cbhd2qkMMHFdKd+7LuCINn9w/465CcFYLMlagsmO5JOE0nHPNY8yEoy2CLahVvzRJ9LhSOXospqyeQI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=jJ8tdoi1; arc=none smtp.client-ip=198.175.65.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="jJ8tdoi1" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1787301360; x=1818837360; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=EJYE5osII66Y2HveI+uu49t7RXfKKfg3eaJiiA93NT8=; b=jJ8tdoi1zMht0om2NbYCpNBHhnyUJCIONDs+CtgM3FgCYFkyt0s6W6zP HPEWeM9hhk566wpjudUVgN2kVun/RqJxqrIb+Flq1FHrhoychad17XvZ4 MMRUX4T0Ynb+qhSPVrlsNXhft9VmYTgxkD6Nto/Gpr6HKbAJdEiHIBrFu pueJTO7aUgs3uKgtHdAz1Z1nfqYXITAUuVg3BQm4P8yZo7l6GgNcjbl4T rNjulrMcmQ2oXtmh4yg/TJWnSHo/dF/V89sSsUPBUCgOoAd95DKujWaS9 YxbDwniilgwDB8KQEdxSE4yWXuswjk2mQpbgbensdmeypqrONj3TvVVNi Q==; X-CSE-ConnectionGUID: nSAq3SgOTfW63Xf1NcCy9w== X-CSE-MsgGUID: zAxAajugTTurGyqn102/YQ== X-IronPort-AV: E=McAfee;i="6800,10657,11881"; a="87865763" X-IronPort-AV: E=Sophos;i="6.25,234,1779174000"; d="scan'208";a="87865763" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Aug 2026 01:35:59 -0700 X-CSE-ConnectionGUID: XwtK2wYaT4+DOIFOe8HJ6g== X-CSE-MsgGUID: NUDoPnBaSYOfThemt2JFJw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,234,1779174000"; d="scan'208";a="291125078" Received: from lkp-server01.sh.intel.com (HELO 6eda058d650d) ([10.239.97.150]) by fmviesa001.fm.intel.com with ESMTP; 21 Aug 2026 01:35:56 -0700 Received: from kbuild by 6eda058d650d with local (Exim 4.98.2) (envelope-from ) id 1wxKjC-00000000pbx-1BME; Fri, 21 Aug 2026 08:35:54 +0000 Date: Fri, 21 Aug 2026 16:35:29 +0800 From: kernel test robot To: Xin Chen , gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, stable@vger.kernel.org, liulzhao@qti.qualcomm.com, cheng.jiang@oss.qualcomm.com, cxin@qti.qualcomm.com, Xin Chen Subject: Re: [PATCH v2] tty: n_tty: use kvzalloc/kvfree for line discipline data Message-ID: <202608211618.rZcRAXep-lkp@intel.com> References: <20260818070324.136726-1-xin.chen2@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260818070324.136726-1-xin.chen2@oss.qualcomm.com> Hi Xin, kernel test robot noticed the following build errors: [auto build test ERROR on tty/tty-testing] [also build test ERROR on tty/tty-next tty/tty-linus linus/master v7.2 next-20260819] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Xin-Chen/tty-n_tty-use-kvzalloc-kvfree-for-line-discipline-data/20260818-150324 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing patch link: https://lore.kernel.org/r/20260818070324.136726-1-xin.chen2%40oss.qualcomm.com patch subject: [PATCH v2] tty: n_tty: use kvzalloc/kvfree for line discipline data config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260821/202608211618.rZcRAXep-lkp@intel.com/config) compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260821/202608211618.rZcRAXep-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202608211618.rZcRAXep-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/tty/n_tty.c:1890:8: error: incompatible pointer types assigning to 'struct n_tty_data *' from 'typeof (ldata) *' (aka 'struct n_tty_data **'); dereference with * [-Wincompatible-pointer-types] 1890 | ldata = kvzalloc_obj(ldata); | ^ ~~~~~~~~~~~~~~~~~~~ | *( ) 1 error generated. vim +1890 drivers/tty/n_tty.c 1876 1877 /** 1878 * n_tty_open - open an ldisc 1879 * @tty: terminal to open 1880 * 1881 * Called when this line discipline is being attached to the terminal device. 1882 * Can sleep. Called serialized so that no other events will occur in parallel. 1883 * No further open will occur until a close. 1884 */ 1885 static int n_tty_open(struct tty_struct *tty) 1886 { 1887 struct n_tty_data *ldata; 1888 1889 /* Currently a malloc failure here can panic */ > 1890 ldata = kvzalloc_obj(ldata); 1891 if (!ldata) 1892 return -ENOMEM; 1893 1894 ldata->overrun_time = jiffies; 1895 mutex_init(&ldata->atomic_read_lock); 1896 mutex_init(&ldata->output_lock); 1897 1898 tty->disc_data = ldata; 1899 tty->closing = 0; 1900 /* indicate buffer work may resume */ 1901 clear_bit(TTY_LDISC_HALTED, &tty->flags); 1902 n_tty_set_termios(tty, NULL); 1903 tty_unthrottle(tty); 1904 return 0; 1905 } 1906 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki