From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E3D6C05027 for ; Fri, 20 Jan 2023 15:41:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229962AbjATPlW (ORCPT ); Fri, 20 Jan 2023 10:41:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231316AbjATPlQ (ORCPT ); Fri, 20 Jan 2023 10:41:16 -0500 Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38235D88C4 for ; Fri, 20 Jan 2023 07:41:05 -0800 (PST) Received: by mail-il1-x132.google.com with SMTP id b15so742296ils.11 for ; Fri, 20 Jan 2023 07:41:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=75d/J3khF4Dbn5fzcg9rN+6VjL8Dp9ov4rvyfMDhcrA=; b=d0ImBQUcvTZTl3HjI5diPzn7jbqkwmc3vqXckaGORUu5tvc7yjV+m9rM/VwD7qHNNC x2RtXoPZ4eQNDe+qK5E64wQxWuTvEMJW2JzdihOZMQXCTv7dfi8po7hZ9QSfZ8qkld3r McFuj7fZdPKHnfFWyx1ZLGCygyyrqw8DBo/T6lL9Gdy7yw7G2OExUaMVozQmRvKe00hS lyxPO5bCHwUAClFaQjzAc34hpaR+3De1IELIEZhc1krmX+3N3q3T5sKgesLgbkhNHmCW XzL2H8tm86Bsk80LTqCnZgO4OEOLilC/ctj2eBt+f1sLY3JvLnczzg8spDj7C+ZTXWVH AB3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=75d/J3khF4Dbn5fzcg9rN+6VjL8Dp9ov4rvyfMDhcrA=; b=tVrmnl3eAETeGLgxL2XNVntAnoAkM299MbFRz32Vta2cE5Pu4qHlD7ZtBa8rRFP/b1 jXNpRD1m/KiK2Tza6jWmET8vQbw80bGZMyC2N2B6Fhhy47Q9T2jlRBwdxvGNiOKwqFlz KZtDOcLqUycw1DprM1g8/X2Nxy6cQMBJXubhmK22qiL+KrK3ehPDF+z/9OhpE/dfUI04 iYTEhBLpzoMUQg96BgzcKsDK3F3hFhy0RFQ49fT9Czj+YarluVueoH3AU3zrhHNVZ0QU MAdbIiv06S2mgWKripEETqrBhya26ny8pkd1G8OBiLJfRyMaYUGv0x/KGXKonee/jOvB oCxw== X-Gm-Message-State: AFqh2kprjMjzojXJQrNWXHkAtKDWa/UZhOhRRTIP0djLmvy9OJ2fX2no dQqE4ChfKuXXsg8zYhKsq50v5x43/YcF/W4i X-Google-Smtp-Source: AMrXdXsFAniWNJYHa0I4E+Li9JxU/x4AKyLut7pnBhtNvWpyJboraEoqFVg9HDjCLUwDIhX6MwrJLQ== X-Received: by 2002:a92:c5d1:0:b0:30d:9eea:e51 with SMTP id s17-20020a92c5d1000000b0030d9eea0e51mr2273296ilt.1.1674229264495; Fri, 20 Jan 2023 07:41:04 -0800 (PST) Received: from [127.0.0.1] ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id l14-20020a92700e000000b0030c27c9eea4sm11664570ilc.33.2023.01.20.07.41.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Jan 2023 07:41:04 -0800 (PST) From: Jens Axboe To: asml.silence@gmail.com, io-uring@vger.kernel.org, Breno Leitao Cc: kasan-dev@googlegroups.com, leit@fb.com, linux-kernel@vger.kernel.org In-Reply-To: <20230118155630.2762921-1-leitao@debian.org> References: <20230118155630.2762921-1-leitao@debian.org> Subject: Re: [PATCH] io_uring: Enable KASAN for request cache Message-Id: <167422926391.670047.2726157847923072257.b4-ty@kernel.dk> Date: Fri, 20 Jan 2023 08:41:03 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.12-dev-78c63 Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On Wed, 18 Jan 2023 07:56:30 -0800, Breno Leitao wrote: > Every io_uring request is represented by struct io_kiocb, which is > cached locally by io_uring (not SLAB/SLUB) in the list called > submit_state.freelist. This patch simply enabled KASAN for this free > list. > > This list is initially created by KMEM_CACHE, but later, managed by > io_uring. This patch basically poisons the objects that are not used > (i.e., they are the free list), and unpoisons it when the object is > allocated/removed from the list. > > [...] Applied, thanks! [1/1] io_uring: Enable KASAN for request cache commit: 9f61fe5e410444ccecb429e69536ecd981c73c08 Best regards, -- Jens Axboe