Blame SOURCES/CVE-2023-45871.patch

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