Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3933783pxb; Mon, 1 Feb 2021 08:17:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8MhxQrNAgE4IpX4g0fzzO0IhCT6xWeJKt5KrIZNh0fRrd9xU0gvSrdbel2xtu2bSM4bjc X-Received: by 2002:a17:906:cb9a:: with SMTP id mf26mr10937533ejb.339.1612196230696; Mon, 01 Feb 2021 08:17:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612196230; cv=none; d=google.com; s=arc-20160816; b=xm8BClhqSj9Y6tpDfSl/x02xh/L9L60LjxssbJeyyoOmtrnhW3T9/v7hsjg++QmlfK i7rNP873g5CEU48wbjd8J9fkOeaOunQx7FV0jr64J0qn6kcOTcTsRTlmF0gE3SkQ4/vc ZghKBrO0Na/MLpc4wc8lhG75JNEVPWWB8clJscp/hpoLGjxAuhj9iz0mcGT6lMgdhe6L xEkVtfF77g4lBz883ck3bqvVtZfEGzRmfMDBu369rIzsCDWUk0Px291Y60hIPgDJUCta a9Z28+6OImhVoyXCWGVvymXAyNOG1RY7pQWt7ecIdRWXNDd0z1/QOd8/wZCNNrXTrDdd G6dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=oe9kyxs1vAX/uhUOjLvSRTrrpJNRpCHgV3q3Ra/fPlI=; b=C5GenckhzUlVgmpIvo4MJkYO4I6HV0x+IIW7i8U5/TdSkgwAyN9Uz/hX5iq0NmFlhu 1S84MUlH3F5lEjdfQfLHN0DOfGIEqjZN7DsDMOiE0MbGhp9YJlMGMwMU8bIQiBRi9BZA uLgDR0v4KTFz49IuIcIi//Rwywz+bClx91HpaVkkZqm0qEOfh0WUAQRRu9gomDS3k2Ob /v1BiJiiZYEbtASiRh9feym13jBoz+pAEFGLZxQtp39d2UaOLG+1H5LeSqB/ufyFgiuF VsS+TWHKh6zZshTV+2a8iyW6baOwzdAWICMMwGf33o9eka0beltHbO5Vu0QzHeIt3iBY i9fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ftDEwVWo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga5si1483603ejb.413.2021.02.01.08.16.45; Mon, 01 Feb 2021 08:17:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ftDEwVWo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231292AbhBAQP2 (ORCPT + 99 others); Mon, 1 Feb 2021 11:15:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230055AbhBAQPX (ORCPT ); Mon, 1 Feb 2021 11:15:23 -0500 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78F00C06174A; Mon, 1 Feb 2021 08:14:42 -0800 (PST) Received: by mail-pj1-x1031.google.com with SMTP id a20so10599838pjs.1; Mon, 01 Feb 2021 08:14:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oe9kyxs1vAX/uhUOjLvSRTrrpJNRpCHgV3q3Ra/fPlI=; b=ftDEwVWojYxl00NqeNgdsQPlGCHIBg9DH+l7sy8IYd265AqJ48Wq9qdDTLcfWtBfHg SydNN2Fki+4FWKcIs+47Y4TNFN6kChxWYRh1KH7vQJ8S72cvL/q74WCYqxunfrkbnYQe +fzSBITqpRCl3zxUezpAwtBbNAzcrHOupprKpvbZLY3aZdm3bC63uPiDxwNqeJmsSah0 pv1W2dPBpYKFfkATUNJAayGLkCaLQN0kNBQn8fBKJMKRDWheXudgCSGEQ3W/q9sxVlN/ WZHAkqXZ0TYhhlC264IG/5kuRNfLwSyPfEmHQi+q79r5Y9xVTybwdlMagM/EDRfYWGEY yF4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oe9kyxs1vAX/uhUOjLvSRTrrpJNRpCHgV3q3Ra/fPlI=; b=qt5/zmSuEyGQhwljGp6tmDI7GH5X+QU5VWDzoubju52TX7TfbI1e7mmo7AaGQ++oIl Miha30TxdCzrKzeU6WnQGF6UjLkX0j9WgdHJcEqLbEBbHSCN5BIexMShdPrJ6HhT7dKy aW3co8dn5wNwuStZlBTFbnRAxHzaQCuj98k7nX+DvU8td254TXmjCfN3o7DxODK6MJiA 925iSErnqvctboaAc0NHzIEtNSAKfnsZuOrU7kM3eZH+ModKDR+tgdrZg2W7T5BtwsQy uQ2Z7zyS0YqVIaOH7cWRMn8//cOV2HXjWmA1FKw8+5iNU6/NqAvxYBeo16u8aUTcgXjB zntQ== X-Gm-Message-State: AOAM533Ox+GwiAZ+xNLzMRhqwn2BizpUYC8t2Z1cvhiiKhl4x/V4U/yb Fp1oSSKvpcd1N3u4rY6jXaKIKSHQFvGkBnNuRckMnWlrhmo= X-Received: by 2002:a17:90a:5403:: with SMTP id z3mr18184163pjh.198.1612196082127; Mon, 01 Feb 2021 08:14:42 -0800 (PST) MIME-Version: 1.0 References: <20210201055706.415842-1-xie.he.0141@gmail.com> <4d1988d9-6439-ae37-697c-d2b970450498@linux.ibm.com> In-Reply-To: <4d1988d9-6439-ae37-697c-d2b970450498@linux.ibm.com> From: Xie He Date: Mon, 1 Feb 2021 08:14:31 -0800 Message-ID: Subject: Re: [PATCH net] net: lapb: Copy the skb before sending a packet To: Julian Wiedmann Cc: "David S. Miller" , Jakub Kicinski , Linux X25 , Linux Kernel Network Developers , LKML , Martin Schiller Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 1, 2021 at 6:10 AM Julian Wiedmann wrote: > > This sounds a bit like you want skb_cow_head() ... ? Calling "skb_cow_head" before we call "skb_clone" would indeed solve the problem of writes to our clones affecting clones in other parts of the system. But since we are still writing to the skb after "skb_clone", it'd still be better to replace "skb_clone" with "skb_copy" to avoid interference between our own clones.