Blame SOURCES/CVE-2023-45871.patch

edb02f
From f5204071e2323f1d695a4d19be727fd6ad5f154c Mon Sep 17 00:00:00 2001
edb02f
From: Joe Lawrence <joe.lawrence@redhat.com>
edb02f
Date: Wed, 17 Jan 2024 15:29:28 -0500
edb02f
Subject: [KPATCH CVE-2023-45871] kpatch fixes for CVE-2023-45871
edb02f
edb02f
Kernels:
edb02f
3.10.0-1160.95.1.el7
edb02f
3.10.0-1160.99.1.el7
edb02f
3.10.0-1160.102.1.el7
edb02f
3.10.0-1160.105.1.el7
edb02f
edb02f
edb02f
Kpatch-MR: https://gitlab.com/redhat/prdsc/rhel/src/kpatch/rhel-7/-/merge_requests/65
edb02f
Changes since last build:
edb02f
[x86_64]:
edb02f
igb_main.o: changed function: igb_configure
edb02f
l2cap_core.o: changed function: l2cap_chan_hold
edb02f
l2cap_core.o: changed function: l2cap_conn_get
edb02f
l2cap_core.o: changed function: l2cap_global_chan_by_psm
edb02f
l2cap_core.o: changed function: l2cap_recv_frame
edb02f
l2cap_core.o: new function: klp_l2cap_le_sig_cmd
edb02f
sch_atm.o: changed function: atm_tc_peek
edb02f
sch_atm.o: changed function: sch_atm_dequeue
edb02f
sch_drr.o: changed function: drr_dequeue
edb02f
sch_dsmark.o: changed function: dsmark_peek
edb02f
sch_hfsc.o: changed function: hfsc_enqueue
edb02f
sch_hfsc.o: changed function: qdisc_peek_len
edb02f
sch_multiq.o: changed function: multiq_peek
edb02f
sch_prio.o: changed function: prio_peek
edb02f
sch_qfq.o: changed function: qfq_change_class
edb02f
sch_qfq.o: changed function: qfq_dequeue
edb02f
sch_red.o: changed function: red_peek
edb02f
sch_sfb.o: changed function: sfb_peek
edb02f
sch_tbf.o: changed function: tbf_dequeue
edb02f
edb02f
[ppc64le]:
edb02f
l2cap_core.o: changed function: __l2cap_chan_add
edb02f
l2cap_core.o: changed function: __l2cap_physical_cfm
edb02f
l2cap_core.o: changed function: __set_monitor_timer
edb02f
l2cap_core.o: changed function: __set_retrans_timer.part.24
edb02f
l2cap_core.o: changed function: l2cap_ack_timeout
edb02f
l2cap_core.o: changed function: l2cap_build_conf_req
edb02f
l2cap_core.o: changed function: l2cap_chan_busy
edb02f
l2cap_core.o: changed function: l2cap_chan_close
edb02f
l2cap_core.o: changed function: l2cap_chan_connect
edb02f
l2cap_core.o: changed function: l2cap_chan_del
edb02f
l2cap_core.o: changed function: l2cap_chan_hold
edb02f
l2cap_core.o: changed function: l2cap_chan_put
edb02f
l2cap_core.o: changed function: l2cap_chan_send
edb02f
l2cap_core.o: changed function: l2cap_chan_timeout
edb02f
l2cap_core.o: changed function: l2cap_conn_add.part.28
edb02f
l2cap_core.o: changed function: l2cap_conn_del
edb02f
l2cap_core.o: changed function: l2cap_conn_start
edb02f
l2cap_core.o: changed function: l2cap_connect
edb02f
l2cap_core.o: changed function: l2cap_connect_cfm
edb02f
l2cap_core.o: changed function: l2cap_connect_create_rsp
edb02f
l2cap_core.o: changed function: l2cap_data_channel
edb02f
l2cap_core.o: changed function: l2cap_disconn_cfm
edb02f
l2cap_core.o: changed function: l2cap_do_create
edb02f
l2cap_core.o: changed function: l2cap_do_start
edb02f
l2cap_core.o: changed function: l2cap_ertm_resend
edb02f
l2cap_core.o: changed function: l2cap_ertm_send
edb02f
l2cap_core.o: changed function: l2cap_global_fixed_chan
edb02f
l2cap_core.o: changed function: l2cap_handle_rej
edb02f
l2cap_core.o: changed function: l2cap_handle_srej
edb02f
l2cap_core.o: changed function: l2cap_logical_cfm
edb02f
l2cap_core.o: changed function: l2cap_monitor_timeout
edb02f
l2cap_core.o: changed function: l2cap_move_done
edb02f
l2cap_core.o: changed function: l2cap_move_setup
edb02f
l2cap_core.o: changed function: l2cap_parse_conf_rsp.constprop.36
edb02f
l2cap_core.o: changed function: l2cap_pass_to_tx
edb02f
l2cap_core.o: changed function: l2cap_process_reqseq
edb02f
l2cap_core.o: changed function: l2cap_recv_frame
edb02f
l2cap_core.o: changed function: l2cap_retrans_timeout
edb02f
l2cap_core.o: changed function: l2cap_retransmit_all
edb02f
l2cap_core.o: changed function: l2cap_rx
edb02f
l2cap_core.o: changed function: l2cap_rx_state_recv
edb02f
l2cap_core.o: changed function: l2cap_security_cfm
edb02f
l2cap_core.o: changed function: l2cap_send_ack
edb02f
l2cap_core.o: changed function: l2cap_send_efs_conf_rsp
edb02f
l2cap_core.o: changed function: l2cap_send_i_or_rr_or_rnr
edb02f
l2cap_core.o: changed function: l2cap_send_move_chan_cfm
edb02f
l2cap_core.o: changed function: l2cap_send_move_chan_cfm_icid
edb02f
l2cap_core.o: changed function: l2cap_send_move_chan_req
edb02f
l2cap_core.o: changed function: l2cap_send_rr_or_rnr
edb02f
l2cap_core.o: changed function: l2cap_send_sframe
edb02f
l2cap_core.o: changed function: l2cap_send_srej
edb02f
l2cap_core.o: changed function: l2cap_send_srej_tail
edb02f
l2cap_core.o: changed function: l2cap_start_connection
edb02f
l2cap_core.o: new function: l2cap_connect_req
edb02f
sch_atm.o: changed function: atm_tc_bind_filter
edb02f
sch_atm.o: changed function: atm_tc_change
edb02f
sch_atm.o: changed function: atm_tc_delete
edb02f
sch_atm.o: changed function: atm_tc_destroy
edb02f
sch_atm.o: changed function: atm_tc_enqueue
edb02f
sch_atm.o: changed function: atm_tc_find
edb02f
sch_atm.o: changed function: atm_tc_graft
edb02f
sch_atm.o: changed function: atm_tc_leaf
edb02f
sch_atm.o: changed function: atm_tc_peek
edb02f
sch_atm.o: changed function: atm_tc_put
edb02f
sch_atm.o: changed function: atm_tc_reset
edb02f
sch_atm.o: changed function: atm_tc_tcf_block
edb02f
sch_atm.o: changed function: sch_atm_dequeue
edb02f
sch_drr.o: changed function: drr_dequeue
edb02f
sch_dsmark.o: changed function: dsmark_bind_filter
edb02f
sch_dsmark.o: changed function: dsmark_change
edb02f
sch_dsmark.o: changed function: dsmark_destroy
edb02f
sch_dsmark.o: changed function: dsmark_dump_class
edb02f
sch_dsmark.o: changed function: dsmark_init
edb02f
sch_dsmark.o: changed function: dsmark_peek
edb02f
sch_dsmark.o: changed function: dsmark_reset
edb02f
sch_hfsc.o: changed function: hfsc_change_class
edb02f
sch_hfsc.o: changed function: hfsc_dequeue
edb02f
sch_hfsc.o: changed function: hfsc_enqueue
edb02f
sch_multiq.o: changed function: multiq_peek
edb02f
sch_prio.o: changed function: prio_peek
edb02f
sch_qfq.o: changed function: qfq_change_class
edb02f
sch_qfq.o: changed function: qfq_dequeue
edb02f
sch_red.o: changed function: red_peek
edb02f
sch_sfb.o: changed function: sfb_peek
edb02f
sch_tbf.o: changed function: tbf_dequeue
edb02f
edb02f
---------------------------
edb02f
edb02f
Modifications: none
edb02f
edb02f
commit de534cd6d39849339867a3d587c3c3b04776ef6e
edb02f
Author: Wander Lairson Costa <wander@redhat.com>
edb02f
Date:   Wed Jan 10 10:07:38 2024 -0300
edb02f
edb02f
    igb: set max size RX buffer when store bad packet is enabled
edb02f
edb02f
    JIRA: https://issues.redhat.com/browse/RHEL-15181
edb02f
    CVE: CVE-2023-45871
edb02f
edb02f
    commit bb5ed01cd2428cd25b1c88a3a9cba87055eb289f
edb02f
    Author: Radoslaw Tyl <radoslawx.tyl@intel.com>
edb02f
    Date:   Thu Aug 24 13:46:19 2023 -0700
edb02f
edb02f
        igb: set max size RX buffer when store bad packet is enabled
edb02f
edb02f
        Increase the RX buffer size to 3K when the SBP bit is on. The size of
edb02f
        the RX buffer determines the number of pages allocated which may not
edb02f
        be sufficient for receive frames larger than the set MTU size.
edb02f
edb02f
        Cc: stable@vger.kernel.org
edb02f
        Fixes: 89eaefb61dc9 ("igb: Support RX-ALL feature flag.")
edb02f
        Reported-by: Manfred Rudigier <manfred.rudigier@omicronenergy.com>
edb02f
        Signed-off-by: Radoslaw Tyl <radoslawx.tyl@intel.com>
edb02f
        Tested-by: Arpana Arland <arpanax.arland@intel.com> (A Contingent worker at Intel)
edb02f
        Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
edb02f
        Signed-off-by: David S. Miller <davem@davemloft.net>
edb02f
edb02f
    Signed-off-by: Wander Lairson Costa <wander@redhat.com>
edb02f
edb02f
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
edb02f
---
edb02f
 drivers/net/ethernet/intel/igb/igb_main.c | 11 +++++++----
edb02f
 1 file changed, 7 insertions(+), 4 deletions(-)
edb02f
edb02f
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
edb02f
index 58fa02b36285..44b23384123e 100644
edb02f
--- a/drivers/net/ethernet/intel/igb/igb_main.c
edb02f
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
edb02f
@@ -4576,6 +4576,10 @@ void igb_configure_rx_ring(struct igb_adapter *adapter,
edb02f
 static void igb_set_rx_buffer_len(struct igb_adapter *adapter,
edb02f
 				  struct igb_ring *rx_ring)
edb02f
 {
edb02f
+#if (PAGE_SIZE < 8192)
edb02f
+	struct e1000_hw *hw = &adapter->hw;
edb02f
+#endif
edb02f
+
edb02f
 	/* set build_skb and buffer size flags */
edb02f
 	clear_ring_build_skb_enabled(rx_ring);
edb02f
 	clear_ring_uses_large_buffer(rx_ring);
edb02f
@@ -4586,10 +4590,9 @@ static void igb_set_rx_buffer_len(struct igb_adapter *adapter,
edb02f
 	set_ring_build_skb_enabled(rx_ring);
edb02f
 
edb02f
 #if (PAGE_SIZE < 8192)
edb02f
-	if (adapter->max_frame_size <= IGB_MAX_FRAME_BUILD_SKB)
edb02f
-		return;
edb02f
-
edb02f
-	set_ring_uses_large_buffer(rx_ring);
edb02f
+	if (adapter->max_frame_size > IGB_MAX_FRAME_BUILD_SKB ||
edb02f
+	    rd32(E1000_RCTL) & E1000_RCTL_SBP)
edb02f
+		set_ring_uses_large_buffer(rx_ring);
edb02f
 #endif
edb02f
 }
edb02f
 
edb02f
-- 
edb02f
2.44.0
edb02f
edb02f